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

:root {
    --bg-primary: #020408;
    --bg-secondary: #060d18;
    --bg-card: #0d1a2e;
    --bg-card-hover: #122240;
    --text-primary: #e8f0fe;
    --text-secondary: #8ba4c7;
    --text-tertiary: #4a6580;
    --border-color: #1a2d4a;
    --border-hover: #2a4a7a;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-glow: rgba(59, 130, 246, 0.3);
    --purple: #8b5cf6;
    --green: #10b981;
    --font-mono: 'Space Mono', monospace;
    --font-body: 'DM Sans', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.light-mode {
    --bg-primary: #f0f4ff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #e8f0ff;
    --text-primary: #0a1628;
    --text-secondary: #3a5278;
    --text-tertiary: #7a95b8;
    --border-color: #d0dff0;
    --border-hover: #a0bfe0;
    --accent-soft: rgba(59, 130, 246, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
    line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::selection { background: var(--accent-soft); color: var(--text-primary); }

.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 1450px;
    padding: 16px clamp(16px, 4vw, 50px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.04);

    backdrop-filter: saturate(180%);
    -webkit-backdrop-filter: saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.12);

    border-radius: 24px;

    transition: all var(--transition);
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.02)
        );

    pointer-events: none;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.16);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.22),
        0 10px 40px rgba(0, 0, 0, 0.18);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.35);

    border: 1px solid rgba(255, 255, 255, 0.45);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.7),
        0 8px 30px rgba(0, 0, 0, 0.06);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.42);
}

.logo {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo-dot { color: var(--accent); }
.logo:hover { opacity: 0.8; }

.nav-center {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.nav-center a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.nav-center a:hover,
.nav-center a.active {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.nav-right-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    width: 56px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    border-radius: 50%;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

body.light-mode .theme-toggle-slider {
    transform: translateX(28px);
    background: #f59e0b;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 6px;
    flex-shrink: 0;
}

.hamburger .line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}


.hamburger.open .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-close-btn {
    display: none;
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 32px;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    z-index: 1101;
}

#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;

    background-image: linear-gradient(rgba(10, 15, 30, 0.75), rgba(10, 15, 30, 0.80)), 
                      url('image/ChatGPT Image May 2, 2026, 04_42_44 AM.png');
    background-size: cover;
    background-position: center top;   
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    max-width: 100vw;
}


.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


#home::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 60%);
    animation: orbFloat 12s ease-in-out infinite;
    pointer-events: none;
}

#home::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 60%);
    animation: orbFloat 15s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0; }
}

#home h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 68px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 60%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

.hero-sub {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    min-height: 34px;
}

.hero-tagline {
    font-size: 16px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 64px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-soft);
    opacity: 0;
    transition: opacity var(--transition);
}

.cta-button:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
    color: var(--text-primary);
}

.cta-button:hover::before { opacity: 1; }

.primary-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.primary-btn::before { background: rgba(255,255,255,0.1); }
.primary-btn:hover { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,0.4); }

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    padding: 32px 40px;
    background: var(--accent-soft);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

section {
    padding: 80px clamp(16px, 5vw, 50px);
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#about { background: var(--bg-secondary); }

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.about-image {
    width: 280px;
    height: 340px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: block;
    position: relative;
    z-index: 1;
}

.about-img-glow {
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    z-index: 0;
    filter: blur(20px);
    opacity: 0.3;
}

.about-content { flex: 1; }

.about-content h2 {
    font-family: var(--sans-serif);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content h3 {
    font-size: 18px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    font-weight: 400;
}

.about-content p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.badge {
    padding: 6px 16px;
    background: var(--accent-soft);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

#skills { background: var(--bg-primary); }

.skills-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

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

.skill-card {
    background: var(--bg-card);
    padding: 36px 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-glow);
}

.skill-card:hover::after { transform: scaleX(1); }

body.light-mode .skill-card { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
body.light-mode .skill-card:hover { box-shadow: 0 20px 40px rgba(59,130,246,0.1); }

.skill-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.skill-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.skill-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

#projects { background: var(--bg-secondary); }

.projects-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-glow);
}

body.light-mode .project-card { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
body.light-mode .project-card:hover { box-shadow: 0 24px 48px rgba(59,130,246,0.12); }

.project-card > img,
.carousel img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ptag {
    padding: 3px 10px;
    background: var(--accent-soft);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.project-info {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.tech-stack {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    align-self: flex-start;
    margin-top: auto;
}

.project-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    transform: translateX(4px);
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track img { flex-shrink: 0; width: 100%; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

#feedback { background: var(--bg-primary); }

.feedback-outer {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feedback-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition);
    position: relative;
}

.feedback-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 80px;
    color: var(--accent);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
}

.feedback-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

body.light-mode .feedback-card { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.feedback-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.feedback-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.avatar-blue { background: rgba(59,130,246,0.2); color: #60a5fa; }
.avatar-green { background: rgba(16,185,129,0.2); color: #34d399; }
.avatar-purple { background: rgba(139,92,246,0.2); color: #a78bfa; }
.avatar-orange { background: rgba(249,115,22,0.2); color: #fb923c; }

.feedback-author-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.feedback-author-info p { font-size: 12px; color: var(--text-tertiary); }

.feedback-stars {
    color: #fbbf24;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.feedback-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

#certificates {
    padding: 60px 20px;
    width: 100%;
}

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

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ye fix 3 columns banayega */
    gap: 25px;
    margin-top: 30px;
}

.certificate-card {
    background-color: #0d1424; /* Screenshot ke hisab se dark background */
    border-radius: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.certificate-image {
    width: 100%;
    height: 240px; 
    object-fit: contain; 
    background-color: #ffffff; 
    padding: 10px; 
}

.certificate-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.certificate-info h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.certificate-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.certificate-info ul li {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.certificate-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1e293b;
    color: #60a5fa;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
}

.certificate-link:hover {
    background-color: #2dd4bf;
    color: #0f172a;
}

@media (max-width: 1024px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr; 
    }
    
    .certificate-image {
        height: auto; 
        max-height: 250px;
    }
}

#contact-section { background: var(--bg-primary); }

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.contact-sub {
    text-align: center;
    font-size: 15px;
    color: var(--text-tertiary);
    margin-top: -40px;
    margin-bottom: 48px;
    font-family: var(--font-mono);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all var(--transition);
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-tertiary); }

.contact-form textarea {
    height: 150px;
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.contact-form button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.contact-direct {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.contact-direct a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition);
}

.contact-direct a:hover { opacity: 0.7; }

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px clamp(16px, 5vw, 50px) 28px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.footer-nav {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all var(--transition);
}

.footer-nav a:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    color: var(--text-secondary, #4b5563);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition, 0.3s ease);
}

/* Hover State */
.social-link:hover {
    border-color: var(--accent, #3b82f6);
    color: var(--accent, #3b82f6);
    transform: translateY(-3px); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
}



[data-theme="dark"] .social-link:hover,
.dark-mode .social-link:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08); 
}



.footer-layout-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
    width: 100%;
    gap: 20px;
}


.footer-left {
    justify-self: start; 
}

.footer-nav {
    display: flex;
    flex-direction: column; 
    gap: 12px; 
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; 
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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


.footer-center {
    justify-self: center; 
    text-align: center;
}

.footer-brand .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.footer-brand .logo-dot {
    color: var(--accent);
}


.footer-right {
    justify-self: end;
}

.footer-social {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .footer-layout-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .footer-left, .footer-center, .footer-right {
        justify-self: center; 
    }
    
    .footer-nav {
        align-items: center;
        text-align: center;
    }
}


.footer-bottom {
    width: 100%;
    max-width: 1200px;          
    margin: 60px auto 0;        
    padding-top: 24px;         
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)); /* Yeh rahi aapki ek line */
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;            
    font-weight: 300;           
    color: var(--text-tertiary, #9ca3af); 
    letter-spacing: 0.5px;      
    margin: 0;
}


@media (max-width: 768px) {
    .footer-bottom {
        margin-top: 40px;
        padding-top: 20px;
    }
    .footer-bottom p {
        font-size: 12px; 
        line-height: 1.6; 
    }
}





html, body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 900px) {

   
    .hamburger { display: flex; }


    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 80vw);
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 1050;
        transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
        list-style: none;
        padding: 70px 20px 40px;
    }

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

   
    .nav-close-btn { display: block; }

   
    .nav-center a {
        font-size: 16px;
        padding: 10px 24px;
        display: block;
        text-align: center;
        width: 100%;
    }

    #home {
        padding: 110px 20px 60px;
        background-position: 70% center;   
        min-height: 100svh;
    }

    #home h1 {
        font-size: clamp(32px, 9vw, 56px);
        letter-spacing: -0.5px;
    }

    .hero-sub { font-size: clamp(16px, 4.5vw, 20px); }
    .hero-tagline { font-size: 14px; }

    .availability-badge {
        font-size: 11px;
        padding: 6px 14px;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
        padding: 24px 20px;
        flex-wrap: wrap;
    }

    .stat-item { flex: 1 1 120px; }
    .stat-num { font-size: 28px; }

    .button-group { gap: 12px; }
    .cta-button { padding: 12px 22px; font-size: 14px; }


    .about-container {
        flex-direction: column;
        gap: 36px;
        text-align: center;
    }

    .about-img-wrap { width: 100%; display: flex; justify-content: center; }
    .about-image { width: 220px; height: 270px; }
    .about-badges { justify-content: center; }

  
    .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .skill-card { padding: 24px 20px; }


    .projects-grid { grid-template-columns: 1fr; }

    
    .feedback-grid { grid-template-columns: 1fr; }

    
    .section-title { font-size: clamp(28px, 7vw, 38px); margin-bottom: 40px; }

   
    .footer-layout-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .footer-left, .footer-center, .footer-right { justify-self: center; }

    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-social { justify-content: center; }
}

@media (max-width: 480px) {

    #home {
        padding: 100px 16px 50px;
        background-position: 70% center;   /* Mobile pe bhi person visible rahe */
    }

    #home h1 { font-size: clamp(28px, 10vw, 40px); }

    .hero-stats { gap: 16px; padding: 18px 14px; }
    .stat-num { font-size: 24px; }
    .stat-label { font-size: 11px; }

    .skills-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .about-image { width: 180px; height: 220px; }

    .certificates-grid { grid-template-columns: 1fr; }
    
    .footer-bottom p { font-size: 11px; }

    .cta-button { width: 100%; justify-content: center; }
    .button-group { flex-direction: column; align-items: center; }
}
