:root {
    --primary: #6C63FF;
    --secondary: #4A44C6;
    --accent: #FF6584;
    --dark: #2A2A3C;
    --light: #F5F5FA;
    --gray: #8A8AA3;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 101, 132, 0.15) 0%, transparent 20%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(42, 42, 60, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.4rem;
    cursor: pointer;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    position: relative;
    z-index: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    position: relative;
    z-index: 2;
}

.profile-card {
    width: 320px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-10deg);
    transition: var(--transition);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.profile-card:hover {
    transform: rotateX(0deg) rotateY(0deg);
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-card:hover img {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.tagline {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    margin-left: 1rem;
}

/* About / Journey Section */
section {
    padding: 3rem 0;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: flex-start;
}

.about-text {
    flex: 1 1 500px;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.about-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    transform: translateZ(0);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(108, 99, 255, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    transform: translateZ(0);
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--accent);
}

.skill-category h3 i {
    margin-right: 0.8rem;
    font-size: 1.8rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Experience Section */
.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.8rem;
    border-radius: 20px;
    transition: var(--transition);
    transform: translateZ(0);
    backdrop-filter: blur(10px);
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.experience-card h4 {
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.experience-card span {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.experience-card p {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    transform: translateZ(0);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    flex: 1;
}

.project-tech {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-details p, .contact-details a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-options {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-options h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.contact-options p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    font-weight: 500;
}

.contact-btn i {
    font-size: 1.5rem;
}

.contact-btn span {
    flex: 1;
}

.email-btn {
    background: linear-gradient(45deg, #6C63FF, #4A44C6);
}

.whatsapp-btn {
    background: linear-gradient(45deg, #0b8236, #033c36);
}

.linkedin-btn {
    background: linear-gradient(45deg, #0077B5, #00A0DC);
}

.github-btn {
    background: linear-gradient(45deg, #bed8e2, #6e62d8,);
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.availability {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 0.8rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
}

.availability i {
    color: #4ade80;
}

/* Footer */
footer {
    background: rgba(20, 20, 35, 0.8);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(20,20,35,0.95);
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 220px;
        padding: 1rem;
        border-radius: 10px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        margin-bottom: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .experience-container {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
}

/* Loader wrapper */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.7s ease;
}

/* Loader content */
.loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Spinning ring */
.ring {
    width:70px;
    height:70px;
    border: 6px solid rgba (255, 255, 255, 0.2);
    border-top: 6px solid #FF6584;
    border-radius: 50% ;
    animation: spin 1s linear infinite, glow 1.5s ease infinite;
}

/* Text under loader */
.loader-inner p {
    margin-top: 15px;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Spin animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Soft Glow animation */
@keyframes glow{
    0% {box-shadow: 0 0 5px #FF6584;}
    50% {box-shadow: 0 0 20px #6c63ff;}
    100% {box-shadow: 0 0 5px #FF6584;}
}

/* Contact Form wrapper */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: 100%;
    animation: fadeIn 0.8s ease forwards;
}

/*Form Title*/
.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-align: center;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
}

/* Form Labels */
.form-group label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/*Inputs + Textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08); 
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/*  Focus Effect */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 12px rgba(255, 101, 132, 0.3);
}

/* Textarea height */
.form-group textarea {
    min-height: 140px;
    resize: none;
}

/* Submit Button */
.contact-form button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.25);
}

/* Button Hover Effect */
.contact-form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 25px rgba(108, 99, 255, 0.35);
}

/* Fade In Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#customSpinner {
    display: none;
    text-align: center ;
    margin-top: 10px;
}