/* =========================================================
   MVS THAMIZHARASU PORTFOLIO
   Premium Dark / Glassmorphism / AI & Data Science
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* =========================================================
   ROOT
   ========================================================= */

:root {
    --bg: #030712;
    --bg-2: #050b18;
    --surface: rgba(10, 20, 40, 0.72);
    --surface-2: rgba(15, 27, 52, 0.78);

    --border: rgba(96, 165, 250, 0.18);
    --border-hover: rgba(59, 130, 246, 0.55);

    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;

    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --cyan: #22d3ee;
    --purple: #8b5cf6;
    --pink: #a855f7;

    --gradient:
        linear-gradient(
            135deg,
            #22d3ee 0%,
            #3b82f6 45%,
            #8b5cf6 100%
        );

    --glass:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.018)
        );

    --shadow:
        0 25px 80px rgba(0, 0, 0, 0.45);

    --glow:
        0 0 35px rgba(59, 130, 246, 0.20);

    --radius: 22px;
    --max-width: 1380px;
}

/* =========================================================
   LIGHT THEME
   ========================================================= */

body.light-theme {
    --bg: #f4f7fb;
    --bg-2: #eaf0f8;
    --surface: rgba(255,255,255,0.82);
    --surface-2: rgba(255,255,255,0.94);

    --border: rgba(15, 23, 42, 0.10);
    --border-hover: rgba(37, 99, 235, 0.35);

    --text: #0f172a;
    --text-soft: #334155;
    --text-muted: #64748b;

    --shadow:
        0 25px 60px rgba(15, 23, 42, 0.10);
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(37, 99, 235, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(139, 92, 246, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(34, 211, 238, 0.07),
            transparent 25%
        ),
        var(--bg);

    color: var(--text);

    font-family: "Inter", sans-serif;
    line-height: 1.6;

    transition:
        background 0.35s ease,
        color 0.35s ease;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );

    z-index: -5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   BACKGROUND BLURS
   ========================================================= */

.bg-blur {
    position: fixed;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.14;

    pointer-events: none;

    z-index: -2;

    animation: floatBlob 12s ease-in-out infinite;
}

.blur1 {
    top: 8%;
    left: -180px;
    background: #2563eb;
}

.blur2 {
    right: -180px;
    top: 50%;
    background: #8b5cf6;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0%,100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-35px) scale(1.08);
    }
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */

.scroll-progress {
    position: fixed;

    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: var(--gradient);

    box-shadow:
        0 0 15px rgba(59,130,246,0.8);

    z-index: 9999;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 16px 22px;
}

.navbar {
    max-width: var(--max-width);

    margin: auto;

    min-height: 66px;

    display: flex;
    align-items: center;

    padding: 10px 14px;

    background:
        rgba(4, 10, 24, 0.70);

    border: 1px solid var(--border);

    border-radius: 18px;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 15px 50px rgba(0,0,0,0.25);

    transition:
        0.35s ease;
}

.navbar-scrolled {
    background:
        rgba(3, 7, 18, 0.90);

    border-color:
        rgba(59,130,246,0.30);

    box-shadow:
        0 18px 60px rgba(0,0,0,0.45);
}

/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-right: auto;

    font-family: "Poppins", sans-serif;
    font-weight: 700;
}

.logo img {
    width: 43px;
    height: 43px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 10px rgba(59,130,246,0.55)
        );
}

.logo-text {
    font-size: 18px;

    background: var(--gradient);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 4px;

    list-style: none;
}

.nav-links a {
    position: relative;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 10px 12px;

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 600;

    border-radius: 10px;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.nav-links a i {
    font-size: 12px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;

    background:
        rgba(59,130,246,0.10);
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 4px;

    width: 18px;
    height: 2px;

    transform: translateX(-50%);

    border-radius: 20px;

    background: var(--gradient);
}

/* =========================================================
   THEME TOGGLE
   ========================================================= */

.theme-toggle {
    width: 42px;
    height: 42px;

    margin-left: 10px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--text);

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

    border: 1px solid var(--border);

    cursor: pointer;

    transition: 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(12deg);

    border-color: var(--blue);

    color: var(--blue-light);

    box-shadow:
        0 0 20px rgba(59,130,246,0.20);
}

/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    place-items: center;

    border-radius: 12px;

    color: var(--text);

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

    border: 1px solid var(--border);

    cursor: pointer;
}

/* =========================================================
   MAIN
   ========================================================= */

main {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: auto;
}

/* =========================================================
   SECTION
   ========================================================= */

section {
    position: relative;

    padding: 110px 0 50px;

    scroll-margin-top: 90px;
}

section.hidden {
    opacity: 0;

    transform: translateY(45px);
}

section.show {
    opacity: 1;

    transform: translateY(0);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.section-label {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    color: var(--blue-light);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.section-label::before {
    content: "";

    width: 24px;
    height: 2px;

    background: var(--gradient);

    border-radius: 5px;
}

section h2 {
    margin-top: 8px;

    font-family: "Poppins", sans-serif;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.line {
    width: 75px;
    height: 4px;

    margin: 17px 0 35px;

    border-radius: 20px;

    background: var(--gradient);

    box-shadow:
        0 0 18px rgba(59,130,246,0.45);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 100vh;

    padding-top: 150px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(360px, 0.85fr);

    align-items: center;

    gap: 60px;
}

/* cinematic background */

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 65% 50%,
            rgba(37,99,235,0.15),
            transparent 30%
        );

    pointer-events: none;

    z-index: -1;
}

.hero-left {
    position: relative;

    z-index: 2;
}

.hero-label {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    padding: 8px 13px;

    border-radius: 50px;

    background:
        rgba(34,211,238,0.055);

    border:
        1px solid rgba(34,211,238,0.20);

    color: #67e8f9;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.hero-label i {
    font-size: 7px;

    color: #22d3ee;

    animation: pulseDot 1.7s infinite;
}

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

    50% {
        opacity: 0.3;
        transform: scale(1.7);
    }
}

.hero h1 {
    margin-top: 25px;

    font-family: "Poppins", sans-serif;

    font-size:
        clamp(48px, 7vw, 92px);

    line-height: 0.98;

    letter-spacing: -4px;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #fff,
            #60a5fa 50%,
            #a78bfa
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero h2 {
    min-height: 40px;

    margin-top: 20px;

    font-size:
        clamp(18px, 2.5vw, 28px);

    font-weight: 600;

    color: var(--blue-light);
}

#typed::after {
    content: "|";

    margin-left: 4px;

    color: var(--cyan);

    animation:
        cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
    50% {
        opacity: 0;
    }
}

.hero p {
    max-width: 680px;

    margin-top: 18px;

    color: var(--text-soft);

    font-size: 16px;

    line-height: 1.85;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 13px;

    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 46px;

    padding: 0 20px;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border 0.25s ease;
}

.btn-primary {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    border: 1px solid
        rgba(96,165,250,0.45);

    box-shadow:
        0 10px 30px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 40px rgba(37,99,235,0.40);
}

.btn-secondary {
    color: var(--text);

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

    border:
        1px solid var(--border);

    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    transform: translateY(-3px);

    border-color:
        rgba(96,165,250,0.5);

    box-shadow:
        0 12px 35px rgba(0,0,0,0.25);
}

/* =========================================================
   SOCIAL
   ========================================================= */

.social-icons {
    display: flex;

    gap: 10px;

    margin-top: 25px;
}

.social-icons a {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--text-muted);

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

    border:
        1px solid var(--border);

    transition: 0.3s ease;
}

.social-icons a:hover {
    color: #fff;

    transform:
        translateY(-4px);

    border-color:
        var(--blue);

    background:
        rgba(59,130,246,0.12);

    box-shadow:
        0 10px 25px rgba(37,99,235,0.20);
}

/* =========================================================
   HERO PROFILE
   ========================================================= */

.hero-right {
    display: flex;

    justify-content: center;

    position: relative;
}

.profile-card {
    position: relative;

    width: min(100%, 440px);

    aspect-ratio: 0.82;

    padding: 9px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(34,211,238,0.55),
            rgba(59,130,246,0.35),
            rgba(139,92,246,0.55)
        );

    box-shadow:
        0 0 70px rgba(37,99,235,0.22);

    animation:
        profileFloat 6s ease-in-out infinite;
}

.profile-card::before {
    content: "";

    position: absolute;

    inset: 18px;

    border-radius: 22px;

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

    pointer-events: none;

    z-index: 2;
}

.profile-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -65px;
    bottom: -60px;

    border-radius: 50%;

    background:
        rgba(139,92,246,0.35);

    filter: blur(50px);

    z-index: -1;
}

.profile-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 23px;

    filter:
        contrast(1.04)
        saturate(0.92);

    background: #07111f;
}

@keyframes profileFloat {
    0%,100% {
        transform: translateY(0);
    }

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

/* =========================================================
   ABOUT
   ========================================================= */

.about {
    padding-top: 100px;
}

.about > p {
    max-width: 850px;

    color: var(--text-soft);

    font-size: 16px;

    line-height: 1.9;
}

.about-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 35px;
}

.stat-card {
    position: relative;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--glass);

    backdrop-filter: blur(18px);

    overflow: hidden;

    transition:
        0.3s ease;
}

.stat-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(59,130,246,0.14),
            transparent 45%
        );
}

.stat-card:hover {
    transform: translateY(-6px);

    border-color:
        var(--border-hover);

    box-shadow:
        var(--glow);
}

.stat-card i {
    position: relative;

    font-size: 24px;

    color: var(--blue-light);

    margin-bottom: 15px;
}

.stat-card strong,
.stat-card span {
    position: relative;

    display: block;
}

.stat-card strong {
    font-size: 18px;
}

.stat-card span {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 13px;
}

/* =========================================================
   EDUCATION
   ========================================================= */

.education-heading p {
    max-width: 650px;

    color: var(--text-muted);
}

.education-container {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;
}

.edu-card {
    position: relative;

    display: flex;

    gap: 20px;

    padding: 30px;

    border-radius: var(--radius);

    border:
        1px solid var(--border);

    background:
        var(--glass);

    backdrop-filter: blur(18px);

    overflow: hidden;

    transition:
        border 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;

    opacity: 0;
    transform: translateY(25px);
}

.edu-card.edu-show {
    opacity: 1;

    transform: translateY(0);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        border 0.3s ease,
        box-shadow 0.3s ease;
}

.edu-card:hover {
    border-color:
        var(--border-hover);

    box-shadow:
        var(--glow);
}

.edu-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: #fff;

    background:
        var(--gradient);

    box-shadow:
        0 10px 25px rgba(59,130,246,0.25);
}

.edu-content {
    flex: 1;
}

.edu-content h3 {
    font-family: "Poppins", sans-serif;

    font-size: 24px;
}

.edu-content h4 {
    margin-top: 3px;

    color: var(--blue-light);

    font-size: 15px;
}

.college {
    margin-top: 12px;

    color: var(--text-soft);

    font-size: 14px;
}

.edu-details {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 16px;

    color: var(--text-muted);

    font-size: 12px;
}

.edu-details span {
    display: flex;

    align-items: center;

    gap: 6px;
}

.edu-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 17px;

    padding: 5px 10px;

    border-radius: 30px;

    font-size: 11px;
    font-weight: 700;
}

.edu-status i {
    font-size: 6px;
}

.edu-status.pursuing {
    color: #67e8f9;

    background:
        rgba(34,211,238,0.08);

    border:
        1px solid rgba(34,211,238,0.20);
}

.edu-status.completed {
    color: #86efac;

    background:
        rgba(34,197,94,0.08);

    border:
        1px solid rgba(34,197,94,0.20);
}

.edu-tags,
.project-tech,
.github-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 16px;
}

.edu-tags span,
.project-tech span,
.github-tags span {
    padding: 5px 9px;

    border-radius: 8px;

    color: var(--text-muted);

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

    border:
        1px solid var(--border);

    font-size: 10px;
}

/* =========================================================
   SKILLS
   ========================================================= */

.skills-grid-3d {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 15px;
}

.card-3d {
    min-height: 150px;

    perspective: 900px;
}

.card-3d-inner {
    position: relative;

    height: 100%;

    min-height: 150px;

    padding: 25px 18px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 18px;

    border:
        1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.015)
        );

    backdrop-filter: blur(16px);

    overflow: hidden;

    transition:
        border 0.3s ease,
        box-shadow 0.3s ease;
}

.card-3d-inner::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    top: var(--shine-y, -100px);
    left: var(--shine-x, -100px);

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(96,165,250,0.20),
            transparent 70%
        );

    pointer-events: none;
}

.card-3d-inner:hover {
    border-color:
        rgba(96,165,250,0.45);

    box-shadow:
        0 15px 40px rgba(37,99,235,0.14);
}

.card-3d-inner i {
    font-size: 30px;

    margin-bottom: 12px;

    color: var(--blue-light);
}

.card-3d-inner h3 {
    font-size: 14px;
}

.card-3d-inner p {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.project-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 28px;
}

.filter-btn {
    padding: 9px 15px;

    border-radius: 10px;

    color: var(--text-muted);

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

    border:
        1px solid var(--border);

    cursor: pointer;

    font-size: 12px;
    font-weight: 600;

    transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #fff;

    border-color:
        rgba(59,130,246,0.55);

    background:
        rgba(59,130,246,0.14);
}

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.project-card {
    position: relative;

    display: flex;

    flex-direction: column;

    padding: 26px;

    min-height: 360px;

    border-radius: var(--radius);

    border:
        1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(12,25,48,0.82),
            rgba(5,12,25,0.78)
        );

    backdrop-filter: blur(20px);

    overflow: hidden;

    transition:
        border 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    right: -80px;

    border-radius: 50%;

    background:
        rgba(59,130,246,0.12);

    filter: blur(20px);
}

.project-card:hover {
    border-color:
        rgba(59,130,246,0.48);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.30),
        0 0 35px rgba(37,99,235,0.10);
}

.project-card > i {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--blue-light);

    background:
        rgba(59,130,246,0.10);

    border:
        1px solid rgba(59,130,246,0.20);

    font-size: 20px;
}

.project-card h3 {
    margin-top: 20px;

    font-family: "Poppins", sans-serif;

    font-size: 19px;

    line-height: 1.35;
}

.project-card > p {
    margin-top: 12px;

    color: var(--text-muted);

    font-size: 13px;

    line-height: 1.75;
}

.project-tech {
    margin-top: auto;
}

.project-status {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 17px;

    color: var(--text-muted);

    font-size: 11px;
}

.project-status i {
    color: var(--cyan);
}

.project-card .btn-primary {
    width: fit-content;

    margin-top: 18px;

    min-height: 40px;

    padding: 0 14px;

    font-size: 11px;
}

.filter-show {
    animation:
        projectShow 0.35s ease;
}

@keyframes projectShow {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================================
   CERTIFICATIONS
   ========================================================= */

.certifications-grid-3d {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.cert-card-3d-inner {
    position: relative;

    min-height: 260px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 24px;

    border-radius: 20px;

    border:
        1px solid var(--border);

    background:
        var(--glass);

    backdrop-filter: blur(16px);

    overflow: hidden;

    transition:
        0.3s ease;
}

.cert-card-3d-inner:hover {
    border-color:
        rgba(139,92,246,0.50);

    box-shadow:
        0 15px 45px rgba(139,92,246,0.12);
}

.cert-card-3d-inner > i {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    color: #c4b5fd;

    background:
        rgba(139,92,246,0.10);

    border:
        1px solid rgba(139,92,246,0.20);

    font-size: 25px;
}

.cert-card-3d-inner h3 {
    margin-top: 17px;

    font-size: 15px;

    line-height: 1.4;
}

.cert-card-3d-inner p {
    margin-top: 7px;

    color: var(--text-muted);

    font-size: 11px;
}

.cert-card-3d-inner .btn-primary {
    margin-top: 18px;

    min-height: 37px;

    font-size: 11px;
}

.all-certifications {
    display: flex;

    justify-content: center;

    margin-top: 30px;
}

/* =========================================================
   JOURNEY
   ========================================================= */

.journey-timeline {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;

    padding-top: 30px;
}

.journey-timeline::before {
    content: "";

    position: absolute;

    top: 57px;
    left: 8%;
    right: 8%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            #22d3ee,
            #3b82f6,
            #8b5cf6,
            transparent
        );
}

.journey-item {
    position: relative;

    z-index: 2;

    padding: 0 5px;
}

.journey-icon {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    border:
        4px solid var(--bg);

    box-shadow:
        0 0 25px rgba(59,130,246,0.25);
}

.journey-content span {
    color: var(--blue-light);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.journey-content h3 {
    margin-top: 7px;

    font-size: 15px;
}

.journey-content p {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.7;
}

/* =========================================================
   GITHUB
   ========================================================= */

.github-profile-card {
    display: flex;

    align-items: center;

    gap: 22px;

    padding: 28px;

    border-radius: var(--radius);

    border:
        1px solid var(--border);

    background:
        var(--glass);

    backdrop-filter: blur(18px);
}

.github-icon {
    width: 65px;
    height: 65px;

    flex: 0 0 65px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #111827,
            #334155
        );

    font-size: 30px;
}

.github-info {
    flex: 1;
}

.github-info h3 {
    font-family: "Poppins", sans-serif;

    font-size: 20px;
}

.github-info p {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 13px;
}

.github-repositories {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 20px;
}

.repo-card {
    min-height: 190px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 23px;

    border-radius: 18px;

    border:
        1px solid var(--border);

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

    transition: 0.3s ease;
}

.repo-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(59,130,246,0.4);
}

.repo-card > div > i {
    color: var(--blue-light);

    font-size: 22px;
}

.repo-card h3 {
    margin-top: 12px;

    font-size: 16px;
}

.repo-card p {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 12px;
}

.repo-card > a {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 20px;

    color: var(--blue-light);

    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    padding-bottom: 100px;
}

.contact-text p {
    max-width: 700px;

    color: var(--text-muted);

    font-size: 14px;
}

.contact-box {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}

.contact-box a {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 11px 15px;

    border-radius: 12px;

    color: var(--text-soft);

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

    border:
        1px solid var(--border);

    font-size: 12px;

    transition: 0.25s ease;
}

.contact-box a:hover {
    color: #fff;

    border-color:
        var(--blue);

    transform: translateY(-3px);
}

.contact-box i {
    color: var(--blue-light);
}

.contact-form {
    max-width: 850px;

    margin-top: 30px;

    padding: 25px;

    border-radius: var(--radius);

    border:
        1px solid var(--border);

    background:
        var(--glass);

    backdrop-filter: blur(18px);
}

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    margin-bottom: 12px;

    padding: 14px 16px;

    color: var(--text);

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

    border:
        1px solid var(--border);

    border-radius: 12px;

    outline: none;

    resize: vertical;

    transition: 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color:
        rgba(59,130,246,0.60);

    box-shadow:
        0 0 0 3px rgba(59,130,246,0.08);
}

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

.contact-form .btn-primary {
    border: none;
}

/* =========================================================
   TOP BUTTON
   ========================================================= */

#topBtn {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    display: none;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    box-shadow:
        0 12px 30px rgba(37,99,235,0.30);

    cursor: pointer;

    z-index: 900;

    transition: 0.3s ease;
}

#topBtn:hover {
    transform: translateY(-4px);
}

#topBtn.show-top {
    display: flex;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    max-width: var(--max-width);

    margin: auto;

    padding: 30px 20px 40px;

    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    gap: 12px;

    color: var(--text-muted);

    border-top:
        1px solid var(--border);

    font-size: 11px;
}

.footer strong {
    color: var(--text-soft);
}

/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */

.mobile-bottom-nav {
    display: none;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 9px 8px;

        font-size: 11px;
    }

    .hero {
        grid-template-columns:
            1fr 0.75fr;

        gap: 35px;
    }

    .skills-grid-3d {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .project-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .certifications-grid-3d {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .journey-timeline {
        grid-template-columns:
            repeat(2, 1fr);

        row-gap: 45px;
    }

    .journey-timeline::before {
        display: none;
    }

    .github-repositories {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 768px) {

    header {
        padding: 10px 12px;
    }

    .navbar {
        min-height: 58px;

        padding: 8px 10px;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 15px;
    }

    .menu-toggle {
        display: grid;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;

        margin-left: 6px;
    }

    .nav-links {
        position: fixed;

        top: 78px;
        left: 12px;
        right: 12px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        padding: 10px;

        background:
            rgba(4,10,24,0.96);

        border:
            1px solid var(--border);

        border-radius: 18px;

        backdrop-filter: blur(25px);

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(-10px);

        transition:
            0.3s ease;
    }

    .nav-links.active {
        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }

    .nav-links a {
        padding: 13px;

        font-size: 12px;
    }

    .nav-links a.active::after {
        display: none;
    }

    main {
        width:
            calc(100% - 28px);
    }

    section {
        padding:
            85px 0 35px;
    }

    .hero {
        min-height: auto;

        padding-top: 125px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 45px;
    }

    .hero h1 {
        font-size:
            clamp(43px, 13vw, 65px);

        letter-spacing: -3px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero p {
        font-size: 14px;

        line-height: 1.75;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .hero-right {
        width: 100%;
    }

    .profile-card {
        width: min(100%, 350px);

        margin: auto;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .education-container {
        grid-template-columns: 1fr;
    }

    .edu-card {
        padding: 22px;
    }

    .skills-grid-3d {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .card-3d-inner {
        min-height: 135px;

        padding: 18px 10px;
    }

    .card-3d-inner i {
        font-size: 25px;
    }

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

    .project-card {
        min-height: 340px;
    }

    .certifications-grid-3d {
        grid-template-columns: 1fr;
    }

    .journey-timeline {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .journey-item {
        display: grid;

        grid-template-columns:
            55px 1fr;

        gap: 15px;
    }

    .journey-icon {
        grid-row: span 2;
    }

    .github-profile-card {
        flex-direction: column;

        align-items: flex-start;
    }

    .github-repositories {
        grid-template-columns: 1fr;
    }

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

    .contact-form {
        padding: 18px;
    }

    .footer {
        padding-bottom: 100px;

        flex-direction: column;

        text-align: center;

        align-items: center;
    }

    #topBtn {
        right: 15px;
        bottom: 82px;
    }

    /* Mobile bottom navigation */

    .mobile-bottom-nav {
        position: fixed;

        left: 10px;
        right: 10px;
        bottom: 10px;

        height: 62px;

        display: flex;

        align-items: center;

        justify-content: space-around;

        padding: 5px;

        background:
            rgba(3,8,20,0.90);

        border:
            1px solid rgba(96,165,250,0.20);

        border-radius: 19px;

        backdrop-filter: blur(25px);

        box-shadow:
            0 15px 50px rgba(0,0,0,0.45);

        z-index: 1200;
    }

    .mobile-bottom-nav a {
        min-width: 50px;

        height: 50px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 3px;

        color: var(--text-muted);

        border-radius: 13px;

        font-size: 9px;

        transition: 0.25s ease;
    }

    .mobile-bottom-nav a i {
        font-size: 16px;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        color: #fff;

        background:
            rgba(59,130,246,0.16);
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 16px;
    }

    .hero-label {
        font-size: 9px;

        letter-spacing: 0.8px;
    }

    section h2 {
        font-size: 32px;
    }

    .line {
        margin-bottom: 25px;
    }

    .skills-grid-3d {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .card-3d-inner {
        min-height: 125px;
    }

    .card-3d-inner h3 {
        font-size: 12px;
    }

    .edu-card {
        flex-direction: column;
    }

    .edu-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }

    .project-card {
        padding: 21px;
    }

    .contact-box {
        flex-direction: column;
    }

    .contact-box a {
        width: 100%;
    }

    .mobile-bottom-nav a {
        min-width: 43px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

    .profile-card {
        animation: none;
    }

    section.hidden {
        opacity: 1;

        transform: none;
    }
}
/* =========================================================
   FINAL DARK THEME TEXT FIX
   ========================================================= */

body:not(.light-theme) main h1,
body:not(.light-theme) main h2,
body:not(.light-theme) main h3,
body:not(.light-theme) main h4,
body:not(.light-theme) main h5,
body:not(.light-theme) main h6 {
    color: #f8fafc !important;
}

body:not(.light-theme) main p {
    color: #cbd5e1 !important;
}

body:not(.light-theme) main .section-label,
body:not(.light-theme) main .journey-content span,
body:not(.light-theme) main .edu-content h4 {
    color: #60a5fa !important;
}

body:not(.light-theme) main .college,
body:not(.light-theme) main .edu-details,
body:not(.light-theme) main .journey-content p,
body:not(.light-theme) main .project-card > p,
body:not(.light-theme) main .card-3d-inner p,
body:not(.light-theme) main .cert-card-3d-inner p,
body:not(.light-theme) main .github-info p,
body:not(.light-theme) main .repo-card p,
body:not(.light-theme) main .contact-text p {
    color: #94a3b8 !important;
}

body:not(.light-theme) main .edu-tags span,
body:not(.light-theme) main .project-tech span,
body:not(.light-theme) main .github-tags span {
    color: #cbd5e1 !important;
}

body:not(.light-theme) main .btn-primary,
body:not(.light-theme) main .btn-secondary,
body:not(.light-theme) main .filter-btn {
    color: #ffffff !important;
}

/* Keep icons and accent elements visible */
body:not(.light-theme) main i {
    color: inherit;
}

/* Preserve gradient text */
body:not(.light-theme) .logo-text,
body:not(.light-theme) .hero h1 span {
    color: transparent !important;
}
