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

:root {
    --primary: #4361ee;
    --primary-light: #4cc9f0;
    --primary-dark: #3a0ca3;
    --secondary: #7209b7;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --dark-gray: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

* {
    -webkit-user-drag: none;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

a, button, input, textarea, select, .btn, .nav-link, .filter-btn {
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.inline-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.inline-link:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.filter-btn:focus-visible,
.social-link:focus-visible,
.dropdown-item:focus-visible,
.modal-close:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

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

section {
    scroll-margin-top: 110px;
}

.education,
.skills,
.services,
.projects,
.faq,
.footer {
    content-visibility: auto;
}

.education {
    contain-intrinsic-size: 1px 1400px;
}

.skills {
    contain-intrinsic-size: 1px 1200px;
}

.services {
    contain-intrinsic-size: 1px 700px;
}

.projects {
    contain-intrinsic-size: 1px 1500px;
}

.faq {
    contain-intrinsic-size: 1px 900px;
}

.footer {
    contain-intrinsic-size: 1px 800px;
}

.service-grid,
.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card,
.faq-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(67, 97, 238, 0.12);
    border-radius: var(--border-radius);
    padding: 22px 24px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.service-card h3,
.faq-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.08rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card p,
.faq-item p,
.footer-summary {
    color: var(--gray);
    font-size: 0.98rem;
}

.footer-summary {
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 700px;
    height: 700px;
    top: -300px;
    right: -150px;
    animation-delay: 0s;
    background: rgba(67, 97, 238, 0.05);
}

.circle-2 {
    width: 550px;
    height: 550px;
    bottom: -200px;
    left: -150px;
    animation-delay: 5s;
    background: rgba(114, 9, 183, 0.04);
}

.circle-3 {
    width: 380px;
    height: 380px;
    top: 45%;
    left: 6%;
    animation-delay: 10s;
    background: rgba(247, 37, 133, 0.04);
}

/* Flutter Logo Animation */
.flutter-logo-bg {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 0.16;
    animation: rotate-logo 45s infinite linear;
    z-index: -1;
    filter: drop-shadow(0 0 20px rgba(67, 97, 238, 0.12));
}

.flutter-logo-bg-1 {
    top: 5%;
    right: 3%;
    animation-delay: 0s;
}

.flutter-logo-bg-2 {
    bottom: 5%;
    left: 3%;
    animation-direction: reverse;
    animation-duration: 50s;
    animation-delay: 5s;
}

.flutter-logo-bg-3 {
    top: 5%;
    left: 3%;
    animation-duration: 48s;
    animation-delay: 10s;
}

.flutter-logo-bg-4 {
    bottom: 5%;
    right: 3%;
    animation-direction: reverse;
    animation-duration: 52s;
    animation-delay: 15s;
}

/* Dart Logo Animation */
.dart-logo-bg {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 0.16;
    animation: rotate-logo 45s infinite linear;
    z-index: -1;
    filter: drop-shadow(0 0 20px rgba(114, 9, 183, 0.12));
}

.dart-logo-bg-1 {
    top: 5%;
    left: 25%;
    animation-direction: reverse;
    animation-delay: 3s;
}

.dart-logo-bg-2 {
    bottom: 5%;
    right: 25%;
    animation-duration: 50s;
    animation-delay: 8s;
}

.dart-logo-bg-3 {
    top: 5%;
    right: 25%;
    animation-direction: reverse;
    animation-duration: 48s;
    animation-delay: 12s;
}

.dart-logo-bg-4 {
    bottom: 5%;
    left: 25%;
    animation-duration: 52s;
    animation-delay: 18s;
}

/* Logo SVG Styles */
.logo-svg {
    width: 100%;
    height: 100%;
}

.dart-logo-svg {
    fill: #0175C2;
}

.flutter-logo-svg {
    fill: #02569B;
}

/* Ensure raster images used for logos fit correctly */
.flutter-logo-bg img,
.dart-logo-bg img,
.duke-logo-bg img,
.java-logo-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dash background element */
.dash-bg {
    position: absolute;
    width: 420px;
    height: 420px;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    z-index: -1;
    background-image: url('assets/dash.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 28s infinite ease-in-out;
    pointer-events: none;
}

/* Duke Logo Animation */
.duke-logo-bg {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 0.12;
    animation: rotate-logo 48s infinite linear;
    z-index: -1;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.08));
}

.duke-logo-bg-1 {
    top: 25%;
    left: 50%;
    transform: translate(-10%, -10%);
    animation-delay: 6s;
}

/* Java Logo Animation */
.java-logo-bg {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 0.12;
    animation: rotate-logo 46s infinite linear;
    z-index: -1;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.08));
}

.java-logo-bg-1 {
    bottom: 22%;
    right: 45%;
    transform: translate(10%, 10%);
    animation-delay: 9s;
}

@keyframes rotate-logo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    gap: 10px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border-color: #e0e0e0;
}

.btn-secondary:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-resume {
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 50px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 18px 0;
    transition: var(--transition);
}

.nav-link,
.filter-btn,
.social-link,
.dropdown-toggle,
.menu-toggle,
.modal-close {
    min-height: 44px;
    min-width: 44px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text {
    color: var(--dark);
}

.brand-highlight {
    color: var(--primary);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

.dropdown-toggle {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.dropdown-toggle:hover,
.dropdown-toggle[aria-expanded="true"] {
    color: var(--primary);
}

.dropdown-toggle:hover::after,
.dropdown-toggle[aria-expanded="true"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background-color: var(--light-gray);
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow);
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 8px;
    z-index: 999;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* ===== INTRO SECTION ===== */
.intro {
    padding: 60px 0 40px;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.intro-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(67, 97, 238, 0.08);
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.flutter-logo {
    width: 20px;
    height: 20px;
}

.badge-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.intro-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.intro-subtitle {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.intro-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
}

.intro-cta {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.intro-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    min-width: 2ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.stat-plus {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
    margin-top: 5px;
}

/* Profile Image */
.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container picture {
    display: block;
}

.profile-img {
    width: 330px;
    height: 330px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
    position: relative;
    z-index: 3;
    animation: float-img 6s infinite ease-in-out;
}

@keyframes float-img {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.profile-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.decoration-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(67, 97, 238, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 440px;
    height: 440px;
    animation: spin 25s linear infinite;
}

.ring-2 {
    width: 400px;
    height: 400px;
    border-color: rgba(114, 9, 183, 0.1);
    animation: spin 30s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.decoration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
}

.dot-1 {
    top: 15%;
    left: 20%;
    animation: pulse 2s infinite;
}

.dot-2 {
    top: 70%;
    left: 10%;
    animation: pulse 2s infinite 0.5s;
}

.dot-3 {
    top: 40%;
    right: 15%;
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Tech Stack Icons */
.tech-stack {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.tech-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1.6rem;
    color: var(--primary);
    animation: bounce 3s infinite;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.tech-icon-img img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tech-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator a {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    color: var(--primary);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ===== SKILL AND PROJECT ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== EDUCATION SECTION ===== */
.education {
    padding: 80px 0;
    min-height: 100vh;
}

.education-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.edu-item {
    position: relative;
    margin-bottom: 60px;
    width: calc(50% - 50px);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.edu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 70px;
}

.edu-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.edu-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 0;
    border: 4px solid var(--primary);
    z-index: 2;
}

.edu-item:nth-child(odd)::before {
    right: -10px;
}

.edu-item:nth-child(even)::before {
    left: -10px;
}

.edu-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.edu-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: #e0e0e0;
}

.edu-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.edu-item:nth-child(odd) .edu-header {
    flex-direction: row-reverse;
    text-align: right;
}

.edu-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background-color: var(--light);
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.edu-header h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.institution {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.degree {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.year {
    display: inline-block;
    padding: 8px 20px;
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    font-size: 0.9rem;
}

.project-context-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-context-link:hover {
    color: var(--accent);
}
    background: rgba(67, 97, 238, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.skills {
    padding: 80px 0;
    min-height: 100vh;
    background-color: transparent;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.skill-item {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(67, 97, 238, 0.12);
    color: var(--dark);
}

.skill-item:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-item:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-item:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-item:nth-child(4) {
    animation-delay: 0.4s;
}

.skill-item:nth-child(5) {
    animation-delay: 0.5s;
}

.skill-item:nth-child(6) {
    animation-delay: 0.6s;
}

.skill-item:nth-child(n+7) {
    animation-delay: calc(0.1s * (var(--item-index, 1) + 6));
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #e8e8e8;
}

.skill-item i {
    font-size: 2.8rem;
    color: var(--primary);
}

.skill-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skill-item p {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

.skills-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 80px 0;
    min-height: 100vh;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid #f0f0f0;
    animation: slideInUp 0.7s ease-out forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(n+5) {
    animation-delay: calc(0.1s * (var(--item-index, 1) + 4));
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.project-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-link {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.95rem;
    padding: 10px 20px;
}

.projects-cta {
    text-align: center;
    margin-top: 60px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 120px 0;
    background: var(--dark);
    color: white;
    position: relative;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: var(--primary-light);
}

.contact-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 35px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4rem;
    transition: var(--transition);
}

.contact-email:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.email-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.email-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.email-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.email-address {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    min-width: 140px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover .social-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.footer {
    background-color: transparent;
    color: var(--dark);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

/* Flutter/Dart Animation in Footer */
.footer::before,
.footer::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.08;
    animation: float 25s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.footer::before {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, #4361ee, transparent);
    animation-delay: 0s;
}

.footer::after {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, #7209b7, transparent);
    animation-delay: 5s;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.contact-item:hover {
    background: #ffffff;
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-value:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.footer-social .social-link {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary);
    padding: 0;
    flex-shrink: 0;
}

.footer-social .social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

/* ===== Responsive / Performance Tweaks ===== */
/* Reduce heavy background elements on small screens to improve performance */
@media (max-width: 900px) {
    .bg-elements {
        display: none;
        pointer-events: none;
    }
    .dash-bg, .flutter-logo-bg, .dart-logo-bg, .duke-logo-bg, .java-logo-bg {
        display: none !important;
    }
}

/* Mobile navigation: show menu toggle and use vertical nav */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 260px;
        height: calc(100% - 70px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        transition: right 0.35s ease;
        align-items: flex-start;
        overflow-y: auto;
        z-index: 1001;
    }
    .nav-links.active { right: 0; }
    .nav-links .nav-link { padding: 12px 8px; width: 100%; }
    .dropdown-menu { position: relative; box-shadow: none; background: transparent; padding: 0; }
}

/* Stack intro columns on small screens and improve readability */
@media (max-width: 700px) {
    .intro-content { grid-template-columns: 1fr; gap: 2rem; }
    .intro-title { font-size: 2.4rem; }
    .intro-subtitle { font-size: 1.1rem; }
    .intro-description { font-size: 1rem; max-width: 100%; }
    .profile-img { width: 220px; height: 220px; }
    .profile-container { justify-content: center; }
    .section-title { font-size: 2rem; }
}

/* Ensure buttons and interactive elements meet touch target sizes */
@media (max-width: 600px) {
    .btn, .nav-link, .filter-btn, .dropdown-item { min-height: 48px; padding: 14px 18px; }
}

/* Respect reduced motion and reduce CPU work for animations when requested */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Accessibility: ensure focus outlines remain visible on mobile */
@media (max-width: 600px) {
    a:focus-visible, button:focus-visible { outline-width: 3px; }
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-credits {
    margin-top: 10px;
    font-size: 0.85rem;
}

/* Flutter/Dart Logos Animation in Footer */
.footer-flutter-logo,
.footer-dart-logo {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.1;
    animation: float 30s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.footer-flutter-logo {
    animation: rotate-logo 40s infinite linear;
}

.footer-dart-logo {
    animation: rotate-logo 40s infinite linear reverse;
}

.footer-flutter-logo-1 {
    top: 20px;
    left: 5%;
    animation-delay: 0s;
}

.footer-flutter-logo-2 {
    bottom: 30px;
    right: 5%;
    animation-delay: 3s;
}

.footer-dart-logo-1 {
    top: 50%;
    left: 3%;
    animation-delay: 2s;
}

.footer-dart-logo-2 {
    top: 40%;
    right: 3%;
    animation-delay: 5s;
}

.footer-logo-svg {
    width: 100%;
    height: 100%;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .footer-social .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 50px 0 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .contact-value {
        font-size: 1rem;
    }
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modal-appear 0.4s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--light-gray);
    background: #fafafa;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--light-gray);
    color: var(--dark);
}

.modal-body {
    padding: 30px;
}

.resume-preview {
    background-color: white;
    border-radius: var(--border-radius-sm);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.resume-header h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.resume-header p {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.resume-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.resume-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.95rem;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-section h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-section h3 i {
    color: var(--primary);
}

.resume-item {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-light);
}

.resume-item h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.resume-meta {
    color: var(--gray);
    font-size: 0.95rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    border: 1px solid #e9ecef;
}

.resume-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

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

.contact-form button[type="submit"] {
    margin-top: 10px;
    padding: 12px 24px;
    font-weight: 600;
}

.form-message {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1100px) {
    .intro-title {
        font-size: 3rem;
    }
    
    .profile-img {
        width: 320px;
        height: 320px;
    }
    
    .ring-1 {
        width: 360px;
        height: 360px;
    }
    
    .ring-2 {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .intro-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .intro-cta {
        justify-content: center;
    }
    
    .intro-stats {
        justify-content: center;
    }
    
    .profile-img {
        width: 300px;
        height: 300px;
    }
    
    .education-timeline::before {
        left: 30px;
    }
    
    .edu-item {
        width: calc(100% - 80px);
        left: 80px !important;
        text-align: left !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
    }
    
    .edu-item:nth-child(odd) .edu-header {
        flex-direction: row;
        text-align: left;
    }
    
    .edu-item:nth-child(odd)::before,
    .edu-item:nth-child(even)::before {
        left: -40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
        gap: 0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-link {
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 15px;
        border-bottom: 1px solid var(--light-gray);
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        background-color: var(--light-gray);
        box-shadow: none;
        margin: 0;
        border-radius: 0;
        transition: var(--transition);
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }

    .dropdown-item {
        padding: 12px 16px;
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .btn-resume {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .intro {
        padding: 140px 0 80px;
    }
    
    .intro-title {
        font-size: 2.5rem;
    }
    
    .intro-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 20px;
    }
    
    .contact-email {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .email-details {
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        min-width: 120px;
        padding: 20px;
    }
    
    .resume-actions {
        flex-direction: column;
    }
    
    .flutter-logo-bg,
    .dart-logo-bg,
    .duke-logo-bg,
    .java-logo-bg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .intro-title {
        font-size: 2.2rem;
    }
    
    .intro-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .profile-img {
        width: 260px;
        height: 260px;
    }
    
    .intro-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        align-items: center;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .edu-content {
        padding: 20px;
    }
    
    .edu-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .edu-item:nth-child(odd) .edu-header {
        flex-direction: column;
        text-align: center;
    }
    
    .education-timeline::before {
        left: 20px;
    }
    
    .edu-item {
        width: calc(100% - 60px);
        left: 60px !important;
        padding-left: 50px !important;
    }
    
    .edu-item:nth-child(odd)::before,
    .edu-item:nth-child(even)::before {
        left: -30px;
    }
}

.fa-flutter:before {
    content: "F";
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #02569B;
}

.fa-dart:before {
    content: "D";
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #0175C2;
}
/* Play Games Section */
.play-games {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(68, 97, 238, 0.05) 0%, rgba(114, 9, 183, 0.05) 100%);
    border-top: 1px solid var(--light-gray);
}

.games-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.game-selector {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 500px;
    width: 100%;
}

.game-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.game-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    background-color: white;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.game-dropdown:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.game-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.game-dropdown option {
    background-color: white;
    color: var(--dark);
    padding: 10px;
}

#playGameBtn {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.game-iframe-container {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    animation: slideUp 0.5s ease-out;
}

.game-iframe {
    display: block;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .play-games {
        padding: 60px 0;
    }

    .game-selector {
        padding: 30px 20px;
        max-width: 100%;
    }

    .game-iframe-container {
        padding: 20px;
        max-width: 100%;
    }

    .game-iframe-container iframe {
        height: 500px !important;
    }
}

@media (max-width: 480px) {
    .play-games {
        padding: 50px 0;
    }

    .game-selector {
        padding: 20px;
    }

    .game-label {
        font-size: 1rem;
    }

    .game-dropdown {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .game-iframe-container {
        padding: 15px;
    }

    .game-iframe-container iframe {
        height: 400px !important;
    }
}

.section-line{
    margin-bottom: 15px;
}