/* ==========================================
   MODERN PREMIUM UI DESIGN SYSTEM 
   ========================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00f2ea;
    --primary-dark: #00c4bd;
    --accent-pink: #ff4df8;
    --accent-purple: #9d4edd;
    --background: #030305; /* Deeper OLED Black */
    --surface-glass: rgba(255, 255, 255, 0.02);
    --surface-glass-hover: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 242, 234, 0.3);
    --foreground: #f8f9fa;
    --muted: #a1a1aa;
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.15); /* Physics-based animation */
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    /* 2026 typography trend: Plus Jakarta Sans for titles, Poppins for body */
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background Canvas */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    mix-blend-mode: screen;
}

/* Background Ambient Mesh Glows */
.ambient-mesh {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 15% 50%, rgba(0, 242, 234, 0.04), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(255, 77, 248, 0.04), transparent 50%);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

.orb-1 { width: 400px; height: 400px; background: rgba(0, 242, 234, 0.15); left: 20%; top: 20%; }
.orb-2 { width: 350px; height: 350px; background: rgba(255, 77, 248, 0.12); right: 20%; top: 40%; animation-direction: reverse; animation-duration: 12s;}
.orb-3 { width: 300px; height: 300px; background: rgba(157, 78, 221, 0.1); bottom: 15%; left: 40%; animation-duration: 15s;}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s var(--ease-out) forwards;
    margin-bottom: 2rem;
    width: 100%;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Profile Frame - Premium Glass Version */
.profile-frame-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 3.5rem;
}

.profile-border-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary), var(--accent-pink), var(--accent-purple), var(--primary));
    opacity: 0.6;
    filter: blur(12px);
    animation: spin 6s linear infinite;
}

.profile-frame {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255,255,255,0.2);
    transition: transform 0.6s var(--spring);
}

.profile-frame:hover {
    transform: scale(1.04) translateY(-5px);
}

.profile-image-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out), filter 0.8s;
    filter: contrast(1.1) brightness(1.05);
}

.profile-frame:hover .profile-image {
    transform: scale(1.08);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Typography */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* 2026 Fluid Aurora Text */
.aurora-text {
    background: linear-gradient(to right, var(--primary), #fff, var(--accent-pink), var(--primary));
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: auroraShift 8s linear infinite;
}

@keyframes auroraShift {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-description {
    max-width: 44rem;
    margin: 0 auto 3rem;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--muted);
    font-weight: 400;
    line-height: 1.7;
}

/* Premium Buttons - iOS Glass Style */
.cta-buttons {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    flex: 1;
    min-width: 220px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    background: rgba(25, 25, 32, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    text-decoration: none;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: all 0.4s var(--spring);
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.cta-button:hover {
    transform: translateY(-4px);
    background: rgba(45, 45, 55, 0.55);
    border-color: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
}

.cta-button:active {
    transform: scale(0.96);
    background: rgba(15, 15, 20, 0.6);
    transition: all 0.1s ease-out;
}

.button-text {
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }

.scroll-mouse {
    width: 26px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mousePulse 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes mousePulse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================
   PORTFOLIO SECTIONS (BENTO GRID)
   ========================================== */
.portfolio-section {
    position: relative;
    padding: 8rem 1.5rem;
    z-index: 5;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    position: relative;
    letter-spacing: -0.02em;
}

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

/* Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
}

/* Spatial Glass Card */
.portfolio-card {
    position: relative;
    background: var(--surface-glass);
    border: 1px solid var(--border-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 12px;
    cursor: pointer;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.5s var(--spring);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--surface-glass-hover);
    border-color: rgba(0, 242, 234, 0.3);
    box-shadow: 0 30px 60px -15px rgba(0, 242, 234, 0.15), 
                inset 0 0 0 1px rgba(0, 242, 234, 0.1);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out), filter 0.4s;
}

.portfolio-card:hover .card-image {
    transform: scale(1.06);
    filter: brightness(0.7);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .play-overlay {
    opacity: 1;
}

.play-glass-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    transform: scale(0.8);
    transition: transform 0.5s var(--spring);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.portfolio-card:hover .play-glass-button {
    transform: scale(1);
}

.play-icon {
    width: 30px;
    height: 30px;
    color: #fff;
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.card-content {
    padding: 1.25rem 0.5rem 0.5rem;
}

.card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.card-client {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

/* View More Button */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

.view-more-btn {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border-light);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s var(--spring);
}

.view-more-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.15);
    transform: translateY(-2px);
}

.view-more-btn .btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--spring);
}

.view-more-btn:hover .btn-arrow {
    transform: translateY(3px);
}

/* ==========================================
   CONTACT & FOOTER
   ========================================== */
.contact-section {
    padding: 8rem 1.5rem;
    text-align: center;
    position: relative;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 4rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--muted);
    transition: all 0.3s ease;
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: var(--surface-glass);
    border: 1px solid var(--border-light);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s var(--spring);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.contact-link:hover {
    color: #fff;
    transform: translateY(-8px);
}

.contact-link:hover .contact-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Hover glows for specific brands */
.gmail-link:hover .contact-icon { border-color: rgba(234, 67, 53, 0.5); box-shadow: 0 15px 30px rgba(234, 67, 53, 0.2); }
.whatsapp-link:hover .contact-icon { border-color: rgba(37, 211, 102, 0.5); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.2); }
.discord-link:hover .contact-icon { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 15px 30px rgba(88, 101, 242, 0.2); }
.linkedin-link:hover .contact-icon { border-color: rgba(10, 102, 194, 0.5); box-shadow: 0 15px 30px rgba(10, 102, 194, 0.2); }

.icon { width: 32px; height: 32px; color: #fff; }

/* ==========================================
   SPATIAL VIDEO MODAL
   ========================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
}

.modal-overlay { position: absolute; inset: 0; cursor: pointer; }

.modal-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    border-radius: 28px;
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s var(--spring);
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,1);
}

.video-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-button {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--spring);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.close-button:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1) rotate(90deg);
}

.close-icon { width: 20px; height: 20px; }

.video-wrapper {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

#videoIframe { width: 100%; height: 100%; border: none; }

.video-info { padding: 1.5rem 0.5rem 0.5rem; text-align: center; }

.video-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.video-client { color: var(--muted); font-size: 0.95rem; }

/* Floating WhatsApp Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all 0.4s var(--spring);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================== */
@media (max-width: 768px) {
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-description { padding: 0 1rem; }
    .profile-frame { width: 180px; height: 180px; }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .cta-button {
        width: 100%;
        max-width: 320px;
        flex: none;
    }

    .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; padding: 0 0.5rem; }
    .portfolio-card { border-radius: 18px; padding: 8px; }
    .card-image-wrapper { border-radius: 12px; }
    .contact-links { gap: 1.5rem; }
    .contact-icon { width: 64px; height: 64px; border-radius: 18px; }
    .modal-content { width: 95%; max-width: 400px; margin: 0; border-radius: 20px;}
    .close-button { top: 10px; right: 10px; background: rgba(0,0,0,0.5); border:none; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .profile-frame { width: 140px; height: 140px; }
    .profile-frame-wrapper { margin-bottom: 2rem; }
    
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 0; }
    
    .contact-links { flex-direction: column; align-items: center; gap: 1rem; }
    .contact-link { 
        flex-direction: row; 
        align-items: center; 
        width: 100%;
        max-width: 280px; 
        justify-content: flex-start; 
        padding: 12px 20px; 
        background: rgba(255,255,255,0.03); 
        border-radius: 20px; 
        border: 1px solid var(--border-light); 
        backdrop-filter: blur(12px);
    }
    .contact-icon { width: 40px; height: 40px; border-radius: 12px; box-shadow: none; border: none; background: transparent; }
    .contact-link:hover .contact-icon { background: transparent; box-shadow: none; }
    .contact-label { font-size: 1rem; font-weight: 500; margin-left: 10px;}
    .icon { width: 24px; height: 24px; }
}