/* =========================================================
   HEMALATHA R - PROFESSIONAL PORTFOLIO
   ========================================================= */

/* ---------- ROOT ---------- */

:root {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --card: rgba(15, 29, 48, 0.82);
    --card-solid: #0e1b2d;

    --text: #f5f7fb;
    --text-soft: #aab7c8;
    --text-muted: #718096;

    --primary: #7c5cff;
    --primary-light: #9b86ff;
    --cyan: #22d3ee;

    --border: rgba(255, 255, 255, 0.09);

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);

    --radius: 18px;

    --container: 1180px;

    --transition: 0.3s ease;
}


/* ---------- LIGHT THEME ---------- */

body.light-theme {

    --bg: #f5f7fb;
    --bg-soft: #ffffff;

    --card: rgba(255, 255, 255, 0.86);
    --card-solid: #ffffff;

    --text: #111827;
    --text-soft: #4b5563;
    --text-muted: #6b7280;

    --border: rgba(15, 23, 42, 0.09);

    --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body,
button,
input,
textarea {
    font-family: "Inter", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    outline: none;
}

button {
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* ---------- GLOBAL ---------- */

.container {
    width: min(92%, var(--container));
    margin: auto;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-label {
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.section-heading h2 span {
    color: var(--primary-light);
}

.section-heading > p:last-child {
    color: var(--text-soft);
    max-width: 650px;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(7, 17, 31, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.82);
}

.nav-container {
    width: min(92%, var(--container));
    height: 76px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--cyan)
    );

    color: white;

    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;

    box-shadow: 0 8px 25px rgba(124, 92, 255, 0.25);
}

.logo span {
    opacity: 0.78;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;

    color: var(--text-soft);

    font-size: 0.88rem;
    font-weight: 600;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--cyan)
    );

    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn,
.menu-btn {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: var(--card);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 12px;

    transition: var(--transition);
}

.theme-btn:hover,
.menu-btn:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 140px 0 90px;

    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    top: -250px;
    right: -150px;

    background: rgba(124, 92, 255, 0.13);

    filter: blur(100px);

    border-radius: 50%;

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    bottom: -250px;
    left: -150px;

    background: rgba(34, 211, 238, 0.08);

    filter: blur(100px);

    border-radius: 50%;

    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 80px;

    position: relative;
    z-index: 2;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 13px;

    border: 1px solid var(--border);

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.03);

    color: var(--text-soft);

    font-size: 0.78rem;
    font-weight: 600;

    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1);
}

.hero-small {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 4px;

    color: var(--primary-light);

    margin-bottom: 10px;
}

.hero h1 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(3.4rem, 8vw, 6.5rem);

    line-height: 0.98;

    letter-spacing: -4px;

    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-light);
}

.hero h2 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(1.35rem, 3vw, 2rem);

    line-height: 1.4;

    margin-bottom: 22px;
}

.hero h2 span {
    color: var(--text-soft);
}

.hero-description {
    max-width: 650px;

    color: var(--text-soft);

    font-size: 1rem;

    margin-bottom: 32px;
}

.hero-description strong {
    color: var(--text);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-bottom: 28px;
}


/* ---------- BUTTONS ---------- */

.btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 21px;

    border-radius: 12px;

    font-size: 0.88rem;
    font-weight: 700;

    transition: var(--transition);
}

.primary-btn {
    color: white;

    background: linear-gradient(
        135deg,
        var(--primary),
        #6245e8
    );

    box-shadow: 0 12px 30px rgba(124, 92, 255, 0.25);
}

.primary-btn:hover {
    transform: translateY(-3px);

    box-shadow: 0 16px 35px rgba(124, 92, 255, 0.35);
}

.secondary-btn {
    color: var(--text);

    border: 1px solid var(--border);

    background: var(--card);
}

.secondary-btn:hover {
    border-color: var(--primary);

    color: var(--primary-light);

    transform: translateY(-3px);
}


/* ---------- SOCIAL ---------- */

.hero-social {
    display: flex;
    gap: 10px;
}

.hero-social a,
.footer-social a {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--card);

    color: var(--text-soft);

    transition: var(--transition);
}

.hero-social a:hover,
.footer-social a:hover {
    color: white;

    background: var(--primary);

    border-color: var(--primary);

    transform: translateY(-3px);
}


/* ---------- HERO CODE WINDOW ---------- */

.hero-visual {
    position: relative;

    min-height: 470px;

    display: grid;
    place-items: center;
}

.code-window {
    width: min(100%, 500px);

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;

    background: #091524;

    box-shadow: var(--shadow);

    transform: rotate(2deg);

    transition: 0.5s ease;
}

.code-window:hover {
    transform: rotate(0deg) translateY(-6px);
}

.window-header {
    height: 45px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 17px;

    background: #0d1b2c;

    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.window-header span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #475569;
}

.code-content {
    padding: 35px 30px;

    font-family: "Courier New", monospace;

    color: #cbd5e1;

    font-size: 0.84rem;

    line-height: 2;
}

.code-purple {
    color: #c084fc;
}

.code-green {
    color: #4ade80;
}

.code-blue {
    color: #38bdf8;
}

.indent {
    padding-left: 25px;
}

.floating-card {
    position: absolute;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 13px 16px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: rgba(14, 27, 45, 0.9);

    backdrop-filter: blur(15px);

    box-shadow: var(--shadow);

    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: white;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--cyan)
    );
}

.floating-card strong {
    display: block;

    font-size: 0.78rem;
}

.floating-card small {
    display: block;

    color: var(--text-muted);

    font-size: 0.67rem;

    margin-top: 2px;
}

.card-one {
    top: 45px;
    right: -5px;
}

.card-two {
    bottom: 35px;
    left: -15px;

    animation-delay: 1.2s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    background: var(--bg-soft);
}

.about-grid {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 70px;

    align-items: start;
}

.about-text h3 {
    font-family: "Poppins", sans-serif;

    font-size: 1.7rem;

    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-soft);

    margin-bottom: 17px;
}

.about-text strong {
    color: var(--text);
}

.about-info {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-top: 30px;
}

.about-info div {
    padding: 17px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: var(--card);
}

.about-info span {
    display: block;

    color: var(--text-muted);

    font-size: 0.72rem;

    margin-bottom: 5px;
}

.about-info strong {
    font-size: 0.84rem;
}

.about-stats {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.stat-card {
    min-height: 150px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 25px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--card);

    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);

    border-color: rgba(124, 92, 255, 0.4);
}

.stat-number {
    font-family: "Poppins", sans-serif;

    font-size: 2rem;

    font-weight: 800;

    color: var(--primary-light);

    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);

    font-size: 0.78rem;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.skill-card {
    padding: 26px 22px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--card);

    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-7px);

    border-color: rgba(124, 92, 255, 0.4);

    box-shadow: var(--shadow);
}

.skill-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    margin-bottom: 18px;

    color: white;

    font-size: 1.2rem;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--cyan)
    );
}

.skill-card h3 {
    font-family: "Poppins", sans-serif;

    font-size: 1rem;

    margin-bottom: 7px;
}

.skill-card p {
    min-height: 45px;

    color: var(--text-muted);

    font-size: 0.78rem;
}

.skill-bar {
    width: 100%;
    height: 5px;

    margin-top: 17px;

    border-radius: 10px;

    background: rgba(255,255,255,0.07);

    overflow: hidden;
}

.skill-bar span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--cyan)
    );
}


/* =========================================================
   EDUCATION
   ========================================================= */

.education-section {
    background: var(--bg-soft);
}

.timeline {
    max-width: 850px;

    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 15px;
    top: 0;
    bottom: 0;

    width: 1px;

    background: linear-gradient(
        to bottom,
        var(--primary),
        var(--cyan),
        transparent
    );
}

.timeline-item {
    position: relative;

    padding-left: 60px;

    margin-bottom: 45px;
}

.timeline-dot {
    position: absolute;

    left: 8px;
    top: 5px;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: var(--primary);

    border: 4px solid var(--bg-soft);

    box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.12);
}

.timeline-content {
    padding: 28px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--card);

    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(6px);

    border-color: rgba(124, 92, 255, 0.35);
}

.timeline-year {
    display: inline-block;

    color: var(--primary-light);

    font-size: 0.76rem;

    font-weight: 700;

    margin-bottom: 8px;
}

.timeline-content h3 {
    font-family: "Poppins", sans-serif;

    font-size: 1.2rem;

    margin-bottom: 4px;
}

.timeline-content h4 {
    color: var(--text-soft);

    font-size: 0.9rem;

    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-muted);

    font-size: 0.88rem;
}

.timeline-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 17px;
}

.timeline-tags span,
.project-tech span {
    padding: 6px 10px;

    border-radius: 7px;

    background: rgba(124, 92, 255, 0.1);

    color: var(--primary-light);

    font-size: 0.68rem;

    font-weight: 700;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.project-card {
    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: var(--card);

    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: rgba(124, 92, 255, 0.4);

    box-shadow: var(--shadow);
}

.project-visual {
    height: 245px;

    display: grid;

    place-items: center;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(124, 92, 255, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(34, 211, 238, 0.18),
            transparent 35%
        ),
        #091524;
}


/* ---------- PROJECT VISUAL 1 ---------- */

.project-window {
    width: 72%;

    border-radius: 13px;

    background: #101d2d;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 20px 40px rgba(0,0,0,0.35);

    overflow: hidden;
}

.project-window > span {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin: 11px 2px;

    border-radius: 50%;

    background: #64748b;
}

.project-window > span:first-child {
    margin-left: 13px;
}

.project-preview {
    padding: 20px;
}

.preview-line {
    width: 70%;
    height: 7px;

    margin-bottom: 8px;

    border-radius: 10px;

    background: #334155;
}

.preview-line.large {
    width: 90%;
    height: 14px;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--cyan)
    );
}

.preview-boxes {
    display: flex;

    gap: 8px;

    margin-top: 20px;
}

.preview-boxes div {
    height: 65px;

    flex: 1;

    border-radius: 7px;

    background: #1e3148;
}


/* ---------- TODO ---------- */

.task-ui {
    width: 70%;

    padding: 22px;

    border-radius: 15px;

    background: #0f1d2e;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.task-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 18px;
}

.task-header strong {
    font-size: 0.9rem;
}

.task-header i {
    color: #4ade80;
}

.task-item {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

    margin-top: 7px;

    border-radius: 7px;

    background: #18283b;

    color: #94a3b8;

    font-size: 0.7rem;
}

.task-item span {
    width: 10px;
    height: 10px;

    border-radius: 3px;

    border: 1px solid var(--primary);
}


/* ---------- FOOD ---------- */

.food-ui {
    display: flex;

    align-items: center;

    flex-direction: column;

    justify-content: center;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.1);

    background: rgba(255,255,255,0.04);

    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.food-circle {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    margin-bottom: 9px;

    border-radius: 50%;

    color: white;

    background: linear-gradient(
        135deg,
        #f97316,
        #ef4444
    );
}

.food-ui strong {
    font-family: "Poppins", sans-serif;

    letter-spacing: 2px;
}

.food-ui small {
    color: #94a3b8;

    font-size: 0.6rem;

    margin-top: 2px;
}

.food-bars {
    display: flex;

    gap: 4px;

    margin-top: 13px;
}

.food-bars span {
    width: 18px;
    height: 3px;

    border-radius: 10px;

    background: #475569;
}


/* ---------- SOCIAL ---------- */

.social-ui {
    width: 68%;

    padding: 22px;

    border-radius: 14px;

    background: #0f1d2e;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.social-top {
    display: flex;

    align-items: center;

    gap: 10px;
}

.avatar {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: white;

    font-weight: 700;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--cyan)
    );
}

.social-lines {
    flex: 1;
}

.social-lines span {
    display: block;

    width: 70%;
    height: 5px;

    margin: 4px 0;

    border-radius: 10px;

    background: #334155;
}

.social-lines span:last-child {
    width: 45%;
}

.post-line {
    width: 95%;
    height: 7px;

    margin-top: 20px;

    border-radius: 10px;

    background: #334155;
}

.post-line.short {
    width: 65%;

    margin-top: 8px;
}

.post-actions {
    display: flex;

    gap: 20px;

    margin-top: 20px;

    color: #64748b;

    font-size: 0.8rem;
}


/* ---------- MARKET ---------- */

.market-ui {
    text-align: center;

    padding: 25px;

    width: 200px;

    border-radius: 18px;

    background: #0f1d2e;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.market-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin: auto auto 12px;

    border-radius: 15px;

    color: white;

    background: linear-gradient(
        135deg,
        #10b981,
        #06b6d4
    );

    font-size: 1.4rem;
}

.market-ui strong {
    font-size: 0.8rem;

    letter-spacing: 2px;
}

.market-items {
    display: flex;

    gap: 6px;

    margin-top: 16px;
}

.market-items span {
    flex: 1;

    height: 35px;

    border-radius: 6px;

    background: #1e3148;
}


/* ---------- SURVEY ---------- */

.survey-ui {
    text-align: center;

    width: 210px;

    padding: 25px;

    border-radius: 18px;

    background: #0f1d2e;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.survey-logo {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    margin: auto auto 10px;

    border-radius: 15px;

    color: white;

    font-family: "Poppins", sans-serif;

    font-weight: 800;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--cyan)
    );
}

.survey-ui strong {
    display: block;

    font-family: "Poppins", sans-serif;

    font-size: 0.9rem;
}

.survey-ui small {
    color: #94a3b8;

    font-size: 0.62rem;
}

.survey-progress {
    height: 5px;

    margin-top: 18px;

    border-radius: 10px;

    background: #1e3148;
}

.survey-progress span {
    display: block;

    width: 65%;
    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--cyan)
    );
}


/* ---------- PROJECT CONTENT ---------- */

.project-content {
    padding: 27px;
}

.project-number {
    color: var(--primary-light);

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 1px;
}

.project-content h3 {
    font-family: "Poppins", sans-serif;

    font-size: 1.2rem;

    margin: 8px 0 10px;
}

.project-content p {
    color: var(--text-muted);

    font-size: 0.84rem;

    line-height: 1.7;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 18px;
}


/* =========================================================
   RESUME
   ========================================================= */

.resume-section {
    background: var(--bg-soft);
}

.resume-box {
    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 30px;

    padding: 45px;

    border: 1px solid var(--border);

    border-radius: 25px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(124, 92, 255, 0.12),
            transparent 35%
        ),
        var(--card);
}

.resume-icon {
    width: 75px;
    height: 75px;

    display: grid;
    place-items: center;

    border-radius: 20px;

    color: white;

    font-size: 1.8rem;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--cyan)
    );
}

.resume-content .section-label {
    margin-bottom: 7px;
}

.resume-content h2 {
    font-family: "Poppins", sans-serif;

    font-size: 1.7rem;

    margin-bottom: 8px;
}

.resume-content h2 span {
    color: var(--primary-light);
}

.resume-content p:last-child {
    color: var(--text-muted);

    font-size: 0.84rem;

    max-width: 600px;
}

.resume-buttons {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 50px;

    align-items: start;
}

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 14px;
}

.contact-card {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: var(--card);

    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(5px);

    border-color: rgba(124, 92, 255, 0.35);
}

.contact-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: white;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--cyan)
    );
}

.contact-card span {
    display: block;

    color: var(--text-muted);

    font-size: 0.7rem;

    margin-bottom: 3px;
}

.contact-card strong,
.contact-card a {
    font-size: 0.8rem;

    font-weight: 600;

    word-break: break-word;
}

.contact-card a:hover {
    color: var(--primary-light);
}


/* ---------- FORM ---------- */

.contact-form {
    padding: 30px;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: var(--card);
}

.form-row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-soft);

    font-size: 0.76rem;

    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: rgba(255,255,255,0.025);

    color: var(--text);

    font-size: 0.82rem;

    transition: var(--transition);

    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(124,92,255,0.08);
}

.submit-btn {
    width: 100%;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding-top: 55px;

    border-top: 1px solid var(--border);

    background: #050d18;
}

body.light-theme .footer {
    background: #eef1f6;
}

.footer-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 40px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 15px;
}

.footer-brand p {
    color: var(--text-muted);

    font-size: 0.76rem;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 22px;
}

.footer-links a {
    color: var(--text-muted);

    font-size: 0.76rem;

    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;

    gap: 8px;
}

.footer-social a {
    width: 37px;
    height: 37px;
}

.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 4%;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 0.68rem;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: white;

    background: var(--primary);

    box-shadow: 0 10px 25px rgba(124,92,255,0.3);

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: var(--transition);

    z-index: 900;
}

.back-to-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .hero-container {
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resume-box {
        grid-template-columns: auto 1fr;

        padding: 35px;
    }

    .resume-buttons {
        grid-column: 1 / -1;

        flex-direction: row;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;

        top: 76px;
        left: 0;

        width: 100%;

        padding: 25px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        background: var(--card-solid);

        border-bottom: 1px solid var(--border);

        transform: translateY(-130%);

        transition: var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .menu-btn {
        display: grid;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-content {
        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-visual {
        min-height: 400px;

        margin-top: 20px;
    }

    .code-window {
        width: 90%;
    }

    .card-one {
        right: 0;
    }

    .card-two {
        left: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-container {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .nav-container {
        height: 68px;
    }

    .nav-menu {
        top: 68px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.88rem;
    }

    .hero-buttons {
        width: 100%;

        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 350px;
    }

    .code-content {
        padding: 25px 18px;

        font-size: 0.68rem;
    }

    .floating-card {
        padding: 10px;

        transform: scale(0.85);
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline::before {
        left: 9px;
    }

    .timeline-dot {
        left: 2px;
    }

    .timeline-content {
        padding: 20px;
    }

    .project-visual {
        height: 220px;
    }

    .resume-box {
        grid-template-columns: 1fr;

        padding: 28px;

        text-align: center;
    }

    .resume-icon {
        margin: auto;
    }

    .resume-buttons {
        flex-direction: column;
    }

    .resume-buttons .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 22px;
    }

    .footer-links {
        gap: 14px;
    }

}


/* =========================================================
   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;
    }

}