:root {
            --bg: #0f172a;
            --card-bg: #1e293b;
            --accent: #38bdf8;
            --text-main: #f8fafc;
            --text-dim: #94a3b8;
        }

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

        body {
            font-family: 'Inter', -apple-system, sans-serif;
            background-color: var(--bg);
            color: var(--text-main);
            line-height: 1.6;
            scroll-behavior: smooth;
        }

        header {
            height: 60vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: radial-gradient(circle at top right, #1e293b, #0f172a);
        }

        h1 { font-size: 3.5rem; margin-bottom: 1rem; }
        .badge { color: var(--accent); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }

        section { padding: 5rem 10%; }
        h2 { font-size: 2rem; margin-bottom: 2rem; border-left: 4px solid var(--accent); padding-left: 1rem; }

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

        .card {
            background: var(--card-bg);
            padding: 2.5rem;
            border-radius: 12px;
            border: 1px solid #334155;
            transition: transform 0.3s ease;
            height: 100%;
        }

        .card:hover { transform: translateY(-5px); border-color: var(--accent); }

        /* Updated Profile Styling: Image Above Text */
        .profile-stack {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .profile-img {
            width: 180px;
            height: 180px;
            background: #334155;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent);
            margin-bottom: 1.5rem;
        }

        .academic-info {
            margin: 1rem 0;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            align-items: center;
        }

        .info-item {
            font-size: 0.9rem;
            color: var(--text-dim);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .info-item b { color: var(--accent); }

        .team-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .tech-stack { display: flex; flex-wrap: wrap; gap: 10px; }
        .tech-item {
            background: #334155;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            color: var(--accent);
        }

        .video-container {
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #000;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 1rem;
            border: 1px dashed var(--text-dim);
        }

        .social-links {
            display: flex;
            gap: 1.5rem;
            margin-top: 1.5rem;
            justify-content: center;
        }

        .social-links a {
            color: var(--text-dim);
            font-size: 1.5rem;
            transition: 0.3s;
        }

        .social-links a:hover { color: var(--accent); transform: translateY(-3px); }

        footer { text-align: center; padding: 4rem 2rem; color: var(--text-dim); font-size: 0.8rem; }

        @media (max-width: 768px) {
            h1 { font-size: 2.5rem; }
            section { padding: 3rem 5%; }
            .team-container { grid-template-columns: 1fr; }
        }

    .stack-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .stack-category {
        background: rgba(51, 65, 85, 0.3);
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid #334155;
    }

    .stack-category h3 {
        color: var(--accent);
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .tech-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tech-tag {
        background: var(--card-bg);
        border: 1px solid var(--accent);
        color: var(--text-main);
        padding: 4px 12px;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .stack-category {
        background: rgba(30, 41, 59, 0.7);
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid #334155;
        display: flex;
        flex-direction: column;
    }

    .stack-category h3 {
        color: var(--accent);
        font-size: 1rem;
        margin-bottom: 1.2rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .tech-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: auto;
    }

    .tech-tag {
        background: #0f172a;
        border: 1px solid #334155;
        color: var(--text-main);
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.8rem;
        transition: 0.3s;
    }

    .tech-tag:hover {
        border-color: var(--accent);
        background: rgba(56, 189, 248, 0.1);
    }

    .justify-text {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    }

    .ethics-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--accent);
    padding: 3rem;
    border-radius: 12px;
    }

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

    .ethics-item h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    }

    .ethics-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    }

    .ui-showcase {
        display: flex;
        gap: 2rem;
        overflow-x: auto;
        padding-bottom: 2rem;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) var(--card-bg);
    }
    
    .ui-showcase::-webkit-scrollbar { height: 8px; }
    .ui-showcase::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

    .mobile-frame {
        min-width: 250px;
        max-width: 280px;
        border: 8px solid #334155;
        border-radius: 30px;
        overflow: hidden;
        background: #000;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }

    .mobile-frame img {
        width: 100%;
        display: block;
        transition: transform 0.5s ease;
    }