:root {
    --bg-color: #F8FAFC; /* Modern clean light slate */
    --bg-darker: #F1F5F9;
    --primary-color: #2563EB; /* Official UA Infinity Brand Blue */
    --primary-glow: rgba(37, 99, 235, 0.25);
    --secondary-color: #7C3AED; /* Vibrant Purple Accent */
    --secondary-glow: rgba(124, 58, 237, 0.25);
    --accent-color: #10B981; /* Emerald Green */
    --accent-glow: rgba(16, 185, 129, 0.25);
    --text-main: #0F172A;
    --text-muted: #64748B;
    --glass-bg: #FFFFFF;
    --glass-border: #E2E8F0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

p, .about-text p, .project-info p, .stat-box p {
    text-align: justify;
}

button, .btn, .filter-btn, .nav-links a {
    border-radius: 50px !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Background Gradients */
.bg-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.25;
}

.bg-top-left {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

.bg-bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 span, h2 span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Slow & Professional Glow/Shine Animation for Header Logo */
.animated-logo {
    background: linear-gradient(90deg, #f8fafc, var(--primary-color), var(--secondary-color), #f8fafc);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slowShine 8s linear infinite;
}

@keyframes slowShine {
    to {
        background-position: 300% center;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }

.section-padding {
    padding: 6rem 0;
    scroll-margin-top: 85px;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.9rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   OFFICIAL UA INFINITY LEFT-TO-RIGHT BORDER-MATCHING BUTTON SYSTEM
   100% Consistent with Main Website (src/index.css)
   ========================================================================== */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-whatsapp,
.btn-submit,
button[type="submit"] {
    --btn-color: #2563EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 28px;
    border-radius: 9999px !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;

    /* Idle State: Clean white background, border and text match --btn-color */
    background-color: #FFFFFF !important;
    background-image: linear-gradient(to right, var(--btn-color), var(--btn-color)) !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 0% 100% !important;

    border: 1.5px solid var(--btn-color) !important;
    color: var(--btn-color) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);

    transition: background-size 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease !important;
}

/* Ensure all child icons and text inherit crisp text color and never disappear */
.btn > *,
.btn span,
.btn svg,
.btn i,
.btn-primary > *,
.btn-primary span,
.btn-primary svg,
.btn-primary i,
.btn-secondary > *,
.btn-secondary span,
.btn-secondary svg,
.btn-secondary i,
.btn-outline > *,
.btn-outline span,
.btn-outline svg,
.btn-outline i,
.btn-whatsapp > *,
.btn-whatsapp span,
.btn-whatsapp svg,
.btn-whatsapp i,
button[type="submit"] > *,
button[type="submit"] span,
button[type="submit"] i {
    color: inherit !important;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

/* Hover State: Background fills from Left to Right with EXACT border color */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-whatsapp:hover,
.btn-submit:hover,
button[type="submit"]:hover {
    background-size: 100% 100% !important;
    color: #FFFFFF !important;
    border-color: var(--btn-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28) !important;
}

.btn:hover > *,
.btn:hover span,
.btn:hover svg,
.btn:hover i,
.btn-primary:hover > *,
.btn-primary:hover span,
.btn-primary:hover svg,
.btn-primary:hover i,
.btn-secondary:hover > *,
.btn-secondary:hover span,
.btn-secondary:hover svg,
.btn-secondary:hover i,
.btn-outline:hover > *,
.btn-outline:hover span,
.btn-outline:hover svg,
.btn-outline:hover i,
.btn-whatsapp:hover > *,
.btn-whatsapp:hover span,
.btn-whatsapp:hover svg,
.btn-whatsapp:hover i,
button[type="submit"]:hover > *,
button[type="submit"]:hover span,
button[type="submit"]:hover i {
    color: #FFFFFF !important;
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-outline:active,
.btn-whatsapp:active,
button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
}

/* Button Color Variants */
.btn-primary {
    --btn-color: #2563EB;
}

.btn-secondary {
    --btn-color: #7C3AED;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}
.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.32) !important;
}

.btn-outline {
    --btn-color: #2563EB;
}

.btn-whatsapp {
    --btn-color: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}
.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 2rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.04);
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 130px;
    padding-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- TRENDING HERO AVAILABILITY STATUS PILL --- */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    background: #FFFFFF;
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
    margin-bottom: 1.2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.hero-status-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22);
}

.pulse-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #10B981;
    position: relative;
    box-shadow: 0 0 10px #10B981;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.45);
    animation: pulseRing 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.3); opacity: 0; }
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 860px;
    margin: 1.2rem auto 0;
    padding: 0 1rem;
}

.greeting {
    font-size: 1.4rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.wave-emoji {
    display: inline-block;
    animation: waveHand 2.2s infinite;
    transform-origin: 70% 70%;
}

@keyframes waveHand {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
}

.name {
    font-size: clamp(2.3rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0.5rem 0 0.8rem;
    letter-spacing: -0.5px;
}

/* --- DYNAMIC ROLE TICKER / TYPING EFFECT --- */
.hero-role-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
    min-height: 38px;
}

.ticker-prefix {
    color: var(--text-muted);
    font-weight: 500;
}

.typed-text {
    background: linear-gradient(90deg, #2563EB 0%, #7C3AED 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.ticker-cursor {
    color: #2563EB;
    font-weight: 300;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    text-align: center !important;
    line-height: 1.8;
}

/* --- ORBIT ANIMATION (Moving Icons around Image, Clockwise & Anti-Clockwise) --- */
.hero-image-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    pointer-events: none;
}

/* Outer Ring (Clockwise) */
.outer-ring {
    animation: spinClockwise 25s linear infinite;
    z-index: 6;
}

/* Inner Ring (Anti-Clockwise) */
.inner-ring {
    animation: spinAntiClockwise 20s linear infinite;
    z-index: 7;
}

/* Position for individual icons */
.orbit-item {
    position: absolute;
    width: 46px;
    height: 46px;
    pointer-events: auto;
    cursor: pointer;
}

.icon-wrapper {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28), 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
}

.icon-wrapper i {
    color: var(--primary-color);
    transition: transform 0.25s ease, color 0.25s ease;
}

.icon-wrapper:hover,
.icon-wrapper:focus {
    transform: scale(1.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.icon-wrapper:hover i,
.icon-wrapper:focus i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Active / Selected state for interactive icons */
.icon-wrapper.selected {
    transform: scale(1.24) !important;
    border-color: #2563EB !important;
    border-width: 2.5px !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 26px rgba(37, 99, 235, 0.65), 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.icon-wrapper.selected i {
    color: #2563EB !important;
    transform: scale(1.15) !important;
}

/* Counter-rotations to keep icons perfectly upright as they orbit */
.outer-ring .icon-wrapper {
    animation: spinAntiClockwise 25s linear infinite;
}

.inner-ring .icon-wrapper {
    animation: spinClockwise 20s linear infinite;
}

@keyframes spinClockwise {
    100% { transform: rotate(360deg); }
}

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

/* Center Profile Image Container (Clean & Static, No 3D Mouse Tilt) */
.profile-img-container {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at center, #FFFFFF 0%, #F1F5F9 70%, #F8FAFC 100%);
    border: 4px solid #FFFFFF;
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img-container:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.25), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.03) contrast(1.05);
}

/* --- ABOUT SECTION --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.stat-box h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.about-text { flex: 1; }
.about-visual { flex: 0.8; }

.experience-card {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

.icon-large {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--secondary-glow));
}

/* --- SERVICES SECTION (Core Technical Disciplines) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    text-align: center;
    padding: 3.2rem 2.2rem;
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transition: transform 0.35s ease;
}

.service-card:hover .icon-circle {
    transform: scale(1.1) translateZ(15px);
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.custom-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* --- PORTFOLIO SECTION --- */
.portfolio-filters {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    --btn-color: #2563EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 24px;
    border-radius: 9999px !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;

    background-color: #FFFFFF !important;
    background-image: linear-gradient(to right, var(--btn-color), var(--btn-color)) !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 0% 100% !important;

    border: 1.5px solid #CBD5E1 !important;
    color: #475569 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);

    transition: background-size 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                transform 0.2s ease,
                box-shadow 0.25s ease !important;
}

.filter-btn > *,
.filter-btn span {
    color: inherit !important;
    transition: color 0.25s ease;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.filter-btn:hover {
    background-size: 100% 100% !important;
    border-color: var(--btn-color) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22) !important;
}

.filter-btn:hover > *,
.filter-btn:hover span {
    color: #FFFFFF !important;
}

.filter-btn.active {
    background-size: 100% 100% !important;
    background-color: var(--btn-color) !important;
    border-color: var(--btn-color) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28) !important;
}

.filter-btn.active > *,
.filter-btn.active span {
    color: #FFFFFF !important;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* App & Unity Images layout */
.project-images-row {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

.project-images-row::-webkit-scrollbar {
    height: 8px;
}

.project-images-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.project-images-row::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.project-images-row::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.app-mockup {
    flex: 0 0 auto;
    width: 250px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.app-mockup:hover {
    transform: translateY(-10px) scale(1.02);
}

.app-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.unity-mockup {
    flex: 0 0 auto;
    width: 45%;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.unity-mockup:hover {
    transform: translateY(-10px) scale(1.02);
}

.unity-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- CONTACT SECTION --- */
.contact-card {
    max-width: 500px;
    padding: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 1.2rem;
}

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

/* --- ANIMATIONS (Scroll Effects) --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.appear,
.fade-in-left.appear,
.fade-in-right.appear {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 992px) {
    .flex-row {
        flex-direction: column;
        text-align: center;
    }
    .about-text, .about-visual {
        width: 100%;
    }
    .name {
        font-size: 3.5rem;
    }
    .orbit-container {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    .nav-links .btn-outline {
        padding: 0.6rem 2rem;
        font-size: 1rem;
        margin: 0 auto;
        display: block;
        width: max-content;
    }

    .hero {
        padding-top: 140px;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .greeting {
        font-size: 1.2rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-image-wrapper {
        width: 100%;
        max-width: 100vw;
        height: 350px;
        overflow: hidden;
        margin: 1rem auto;
    }
    
    .orbit-container {
        transform: scale(0.5);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-box h3 {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .project-header h3 {
        font-size: 1.5rem;
    }
    
    .app-mockup {
        width: 200px;
    }

    .unity-mockup {
        min-width: 250px;
        width: 100%;
    }
    
    .contact-card {
        padding: 2rem 1rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }
    
    /* Crucial: Shrink background gradients on mobile so they don't break layout width */
    .bg-gradient {
        width: 300px;
        height: 300px;
    }

    /* Remove horizontal scrolling for mobile and stack images vertically */
    .project-images-row {
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
        gap: 2rem;
    }

    .project-images-row > div {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }
    .greeting {
        font-size: 1rem;
    }
    .tagline {
        font-size: 0.9rem;
    }
    .orbit-container {
        transform: scale(0.35);
    }
    .hero-image-wrapper {
        height: 220px;
    }
    .app-mockup {
        width: 130px;
    }
    .unity-mockup {
        min-width: 180px;
    }
    .btn, .btn-primary, .btn-secondary, .btn-whatsapp {
        padding: 0.65rem 1.4rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 8px;
    }
    .profile-showcase {
        transform: scale(0.82);
    }
    .badge-unity { left: -15px; top: -5px; font-size: 0.72rem; padding: 4px 10px; }
    .badge-code { right: -15px; top: 25px; font-size: 0.72rem; padding: 4px 10px; }
    .badge-mobile { right: -5px; bottom: -15px; font-size: 0.72rem; padding: 4px 10px; }
}

/* ===== CONTACT / LET'S BUILD SECTION ===== */
.contact {
    position: relative;
    z-index: 2;
}

.contact-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.12);
}

.contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center !important;
}

.contact-item a {
    color: var(--text-main);
    transition: color 0.25s ease;
}

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

/* ===== FOOTER (Main Website Style) ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    text-align: left;
}

.footer-newsletter {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05));
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter-input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}

.newsletter-input-wrapper input {
    padding: 14px 18px 14px 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 0.9rem;
    width: 280px;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 30px 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-brand-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.footer-brand > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
    text-align: left !important;
}

.footer-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.social-name {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover .social-name {
    opacity: 1;
    max-width: 100px;
    margin-left: 4px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-links a {
    display: block;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    .newsletter-input-wrapper input {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- INTERACTIVE TECH PARTICLE CANVAS --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particles canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- PAGE OPEN ENTRANCE ANIMATION SEQUENCE --- */
body.page-loaded .hero-status-pill {
    animation: heroSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-loaded .profile-showcase {
    animation: heroImageEntrance 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

body.page-loaded .hero-text-block {
    animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

body.page-loaded .hero-actions {
    animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes heroSlideDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImageEntrance {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

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