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

/* Light & Dark Mode Variables */
:root {
    --primary: #c084fc;
    --primary-dark: #a855f7;
    --primary-glow: rgba(192, 132, 252, 0.25);
    --shadow-lg: 0 25px 45px -12px rgba(0, 0, 0, 0.3);
}

/* Dark Mode (default) */
[data-theme="dark"] {
    --bg-body: #0a0a0f;
    --bg-card: rgba(18, 18, 28, 0.9);
    --text-primary: #ededee;
    --text-secondary: #9ca3af;
    --border-color: rgba(192, 132, 252, 0.2);
    --nav-bg: rgba(10, 10, 15, 0.92);
    --input-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(30, 30, 45, 0.9);
    --stat-bg: rgba(18, 18, 28, 0.9);
    --btn-primary-bg: linear-gradient(95deg, #c084fc, #a855f7);
    --btn-primary-hover: #a855f7;
    --logo-gradient: linear-gradient(135deg, #e879f9, #a78bfa, #6b21a8, #db2777);
    --nav-hover-bg: rgba(192, 132, 252, 0.1);
}

/* Light Mode */
[data-theme="light"] {
    --bg-body: #f8f9ff;
    --bg-card: #ffffff;
    --text-primary: #1e1e2f;
    --text-secondary: #5a5a72;
    --border-color: rgba(111, 44, 255, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --input-bg: #f1f3f8;
    --card-hover: #f5f3ff;
    --stat-bg: #f0ebff;
    --btn-primary-bg: linear-gradient(95deg, #6f2cff, #8b4dff);
    --btn-primary-hover: #6f2cff;
    --logo-gradient: linear-gradient(135deg, #6f2cff, #a855f7, #1e1e2f);
    --nav-hover-bg: rgba(111, 44, 255, 0.08);
}

body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.2s ease;
}

section {
    padding: 100px 8%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 47px;
    font-weight: 800;
    margin-bottom: 20px;
    /* background: linear-gradient(135deg, var(--text-primary), var(--primary)); */
    background: linear-gradient(135deg, #2c1654, #bc3cd8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    letter-spacing: -1px;
    font-family: 'Syne', 'Poppins', sans-serif;
    
}

/*  IMPROVED NAVIGATION BAR  */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: var(--logo-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    z-index: 1001;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-family: 'Syne', 'Playfair Display', serif;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
    transition: all 0.4s ease;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: 0.3s;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

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

/* Improved User Greeting Style */
.user-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.15), rgba(192, 132, 252, 0.05));
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(192, 132, 252, 0.3);
    backdrop-filter: blur(4px);
}

.user-greeting:hover {
    background: rgba(192, 132, 252, 0.25);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.user-greeting i {
    font-size: 18px;
}

.logout-icon {
    background: rgba(255, 100, 100, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    margin-left: 8px;
    color: #ff8888;
    transition: 0.3s;
}

.user-greeting:hover .logout-icon {
    background: rgba(255, 100, 100, 0.3);
}

/* Login Button Style */
.auth-login-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: 0.3s;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.3);
}

.auth-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 132, 252, 0.4);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: 0.3s;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.02);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    margin: 4.5px 0;
    transition: 0.4s;
    border-radius: 4px;
}

@media (max-width: 950px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        border-left: 1px solid var(--border-color);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 20px;
        font-weight: 600;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 44px;
    }

    section {
        padding: 80px 5%;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 120px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(192, 132, 252, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-radius: 40px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 70px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-gradient {

    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    letter-spacing: 2px;
    /* Royal fonts me hamesha spacing badha kar rakhte hain */
    background: linear-gradient(135deg, #8b5cf6, #6f2cff, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;

}

.hero-typing {
    font-size: 28px;
    color: var(--text-secondary);
    margin: 20px 0;
    height: 55px;
    font-weight: 500;

    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    min-height: 60px;
    display: inline-block;
    position: relative;

    /* --- Naya Purple-Gold Mix Gradient --- */

    background: linear-gradient(135deg, #622db2 10%, #7c3aed 50%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}

/* Cursor blinking animation */
@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


.hero-typing {
    font-size: 1.6rem;
    /* Tablets par scale down */
    min-height: 50px;
}


@media (max-width: 480px) {
    .hero-typing {
        font-size: 1.25rem;
        /* Mobile screen par text fold hone par ekdam stable rahega */
        min-height: 45px;
    }
}



.hero-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 17px;
    font-family: 'poppins', 'playfair display', serif;
    font-weight: 600;
}

.btn-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--btn-primary-bg);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(192, 132, 252, 0.4);
}

.btn-outline-light {
    background: transparent;
    border: 1.5px solid var(--primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: rgba(192, 132, 252, 0.1);
    transform: translateY(-3px);
}

.hero-image img {
    width: 380px;
    border-radius: 40px;
    box-shadow: 0 30px 50px var(--primary-glow);
    border: 2px solid rgba(192, 132, 252, 0.3);
    animation: floatSoft 5s ease-in-out infinite;
}

@keyframes floatSoft {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* About, Skills, Services */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.stat-card {
    background: var(--stat-bg);
    padding: 20px 28px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
}

.skills-grid,
.services-grid,
.projects-grid,
.testimonials-grid,
.achievements-grid {
    display: grid;
    gap: 30px;
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.skill-card,
.service-card,
.project-card,
.testimonial-card,
.achievement-card {
    background: var(--bg-card);
    padding: 35px 20px;
    border-radius: 32px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.skill-card:hover,
.service-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.skill-card i,
.service-card i,
.achievement-icon {
    font-size: 52px;
    color: var(--primary);
    margin-bottom: 18px;
}

.project-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
}

.project-info {
    padding: 25px;
}

/* GALLERY SECTION - FULL 19 IMAGES */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: var(--bg-card);
    border-radius: 48px;
    padding: 50px;
    border: 1px solid var(--border-color);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 25px 0;
}

.contact-detail i {
    width: 48px;
    height: 48px;
    background: rgba(192, 132, 252, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    font-size: 22px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(192, 132, 252, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 22px;
    transition: 0.3s;
    text-decoration: none;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    font-size: 15px;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

.contact-form button {
    background: linear-gradient(95deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(192, 132, 252, 0.4);
}

footer {
    text-align: center;
    padding: 35px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 60px;
    z-index: 9999;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 950px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        width: 280px;
    }

    .hero-content h1 {
        font-size: 44px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 48px;
    width: 90%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 28px;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
}

.modal-content button {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: var(--primary);
    border: none;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    transition: 0.3s;
    font-size: 16px;
}

.modal-content button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.switch-auth {
    margin-top: 20px;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.switch-auth:hover {
    text-decoration: underline;
}


/* Sajjad Ali name */
.hero-gradient {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    letter-spacing: 2px;
    /* Royal fonts me hamesha spacing badha kar rakhte hain */
    background: linear-gradient(135deg, #8b5cf6, #6f2cff, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;

}