:root {
            color-scheme: dark;
            --bg: #06070a;
            --surface: #10131a;
            --surface-2: #171b24;
            --text: #f5f7fb;
            --muted: #a7b0bf;
            --border: rgba(255, 255, 255, 0.1);
            --accent: #7fb4ff;
            --accent-muted: #667891;
            --accent-soft: rgba(127, 180, 255, 0.16);
            --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
            background: linear-gradient(180deg, #0d1118 0%, var(--bg) 100%);
            color: var(--text);
            line-height: 1.6;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        img {
            display: block;
            width: 100%;
            height: auto;
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 10;
            padding: 1.2rem 1.5rem;
            backdrop-filter: blur(18px);
            background: rgba(10, 12, 16, 0.82);
            border-bottom: 1px solid var(--border);
        }

        .site-header .inner {
            max-width: 1180px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .brand {
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        nav {
            display: flex;
            gap: 1.2rem;
            color: var(--muted);
            font-size: 0.95rem;
        }

        main {
            position: relative;
            padding: 0 1.5rem 4rem;
            overflow: hidden;
        }

        .main-background {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
            inset: 0;
            width: 100%;
            background-image: url("./assets/Index/homescreen_background.png");
            background-attachment: fixed;
            background-size: cover;
            background-position: center center;
        }

        .section,
        .hero,
        .footer {
            position: relative;
            z-index: 1;
            max-width: 1180px;
            margin: 0 auto;
        }

        .hero {
            height: 80vh;
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 2rem;
            padding: 4.5rem 0 3rem;
            align-items: center;
            background-image: url("./assets/Index/homescreen_subject.png");
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center center;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0.7rem;
            margin-bottom: 1rem;
            border-radius: 999px;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        h1,
        h2,
        h3,
        p {
            margin: 0;
        }

        .hero h1 {
            font-size: clamp(2.3rem, 4vw, 3.8rem);
            line-height: 1.04;
            letter-spacing: -0.03em;
            margin-bottom: 1rem;
        }

        .hero p.lead {
            font-size: 1.05rem;
            color: var(--muted);
            max-width: 620px;
            margin-bottom: 1.5rem;
        }

        .hero-actions {
            display: flex;
            gap: 0.9rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.9rem 1.2rem;
            border-radius: 999px;
            font-weight: 600;
            transition: transform 180ms ease, box-shadow 180ms ease;
        }

        .btn:hover {
            transform: translateY(-1px);
        }

        .btn-primary,
        .primary-btn {
            background: var(--text);
            color: var(--surface);
            box-shadow: var(--shadow);
        }

        .btn-secondary {
            background: var(--surface);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .hero-stats {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .hero-stats .stat {
            padding: 0.85rem 1rem;
            border: 1px solid var(--border);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.06);
            min-width: 130px;
        }

        .hero-stats strong {
            display: block;
            font-size: 1.05rem;
            margin-bottom: 0.2rem;
        }

        section {
            padding: 2rem 0 1.5rem;
        }

        .section-heading {
            display: flex;
            justify-content: space-between;
            align-items: end;
            gap: 1rem;
            margin-bottom: 1.2rem;
        }

        .section-heading h2 {
            font-size: clamp(1.35rem, 2.1vw, 1.8rem);
            letter-spacing: -0.02em;
        }

        .section-heading p {
            color: var(--muted);
            max-width: 560px;
        }

        .experience-list,
        .services-grid,
        .portfolio-grid,
        .about-grid {
            display: grid;
            gap: 1rem;
        }

        .experience-list {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 22px;
            padding: 1.2rem;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(17, 17, 17, 0.045);
        }

        .card .thumbnail {
            width: calc(100% + 2.4rem);
            height: 240px;
            object-fit: cover;
            margin: -1.2rem -1.2rem 1rem;
            border-radius: 0;
        }

        .card .year {
            color: var(--accent);
            font-size: 0.84rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            margin-bottom: 0.6rem;
        }

        .card h3 {
            margin-bottom: 0.4rem;
            font-size: 1.05rem;
        }

        .card p {
            color: var(--muted);
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }

        .card .software-desc{
            font-weight: 600;
            color: var(--accent-muted);
        }

        .services-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .service-card h3 {
            margin-bottom: 0.6rem;
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1rem;
            align-items: stretch;
        }

        .portfolio-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(17, 17, 17, 0.045);
            width: 100%;
            height: 100%;
            position: relative;
            transition: transform 180ms ease, box-shadow 180ms ease;
        }

        .portfolio-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
        }

        .portfolio-card > div {
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            z-index: 1;
        }

        .portfolio-card.featured {
            background: linear-gradient(135deg, #485885 0%, #1a2230 100%);
        }

        .portfolio-card .meta {
            color: var(--accent);
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 0.5rem;
        }

        .portfolio-card h3 {
            margin-bottom: 0.4rem;
            font-size: 1.1rem;
        }

        .portfolio-card p {
            color: var(--muted);
            font-size: 0.95rem;
        }

        .portfolio-card img {
            width: calc(100% + 2rem);
            height: 240px;
            object-fit: cover;
            border-radius: 0;
            margin: -1rem -1rem 1rem;
        }

        .portfolio-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(6, 7, 10, 0.45);
            backdrop-filter: blur(8px);
            opacity: 0;
            transition: opacity 180ms ease;
            z-index: 0;
        }

        .portfolio-card:hover::before {
            opacity: 1;
        }

        .portfolio-btn-div {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            left: 50%;
            bottom: 2rem;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 180ms ease, transform 180ms ease;
            z-index: 2;
            pointer-events: none;
        }

        .portfolio-btn-div .btn {
            pointer-events: auto;
        }

        .portfolio-card:hover .portfolio-btn-div {
            opacity: 1;
            transform: translateX(-50%);
        }

        .about-grid {
            grid-template-columns: 1fr 1fr;
            gap: 1.3rem;
        }

        .about-card {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: row;
            gap: 1rem;
        }

        .about-card img {
            display: block;
            width: 340px;
            height: 100% + 1.2rem;
            object-fit: cover;
            object-position: center;
            margin-top: -1.2rem;
            margin-bottom: -1.2rem;
            margin-left: -1.2rem;
            margin-right: 1rem;
            border-radius: 0;
            flex-shrink: 0;
        }

        .about-list {
            list-style: none;
            padding: 0;
            display: grid;
            gap: 0.5rem;
            margin-top: 1rem;
            color: var(--muted);
        }

        .about-list li::before {
            content: "•";
            color: var(--accent);
            margin-right: 0.5rem;
        }

        .footer {
            max-width: 1180px;
            margin: 2rem auto 0;
            padding: 1.2rem 0 2rem;
            color: var(--muted);
            text-align: center;
            font-size: 0.95rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .scroll-top {
            padding: 0.9rem 1.3rem;
            border-radius: 999px;
            background: var(--text);
            color: var(--surface);
            box-shadow: var(--shadow);
            transition: transform 180ms ease, background 180ms ease;
        }

        .scroll-top:hover {
            transform: translateY(-1px);
            background: #f1f3f8;
        }

        .contact-card {
            display: flex;
            gap: 1.2rem;
            align-items: stretch;
            min-height: auto;
            border-radius: 28px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(8, 10, 15, 0.4);
            overflow: hidden;
            box-shadow: 0 26px 68px rgba(0, 0, 0, 0.23);
        }

        .contact-card-media {
            position: relative;
            width: 50%;
            border-radius: 24px;
        }

        .contact-card-media img {
            display: block;
            width: 100%;
            height: calc(100% + 2.4rem);
            object-fit: cover;
            object-position: center;
            margin-top: -1.2rem;
            margin-bottom: -1.2rem;
            margin-left: -1.2rem;
        }

        .contact-card-body {
            position: relative;
            flex-direction: column;
            display: flex;
            gap: 1rem;
            align-items: stretch;
            flex: 1;
            width: 30%;
        }

        .contact-card-body a{
            animation: all 300ms ease-in-out;
        }

        .contact-card-body a:hover {
            color: var(--accent);
        }

        @media (max-width: 900px) {
            .contact-card-body {
                justify-content: space-between;
            }

            .contact-card-body .btn {
                flex: 1 1 calc(50% - 0.5rem);
            }
        }

        @media (max-width: 640px) {
            .contact-card-body {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 900px) {
            .hero,
            .about-grid,
            .portfolio-grid {
                grid-template-columns: 1fr;
            }

            .experience-list,
            .services-grid {
                grid-template-columns: 1fr;
            }

            .portfolio-card.featured {
                min-height: 280px;
            }
        }

        @media (max-width: 640px) {
            .site-header .inner {
                flex-direction: column;
                gap: 0.7rem;
            }

            nav {
                flex-wrap: wrap;
                justify-content: center;
            }

            main {
                padding: 0 1rem 3rem;
            }

            .hero {
                padding-top: 2.5rem;
            }
        }