/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f4fafe;
    color: #1a1a1a;
    min-height: 100vh;
}

/* --- PERFORMANCE BOOSTERS --- */
.glass-nav, .bento-card, .tv-glass-frame, .step-card, .cta-glass-island, .modal-content {
    transform: translateZ(0);
    backface-visibility: hidden;
}
.blob {
    will-change: transform;
    transform: translateZ(0);
}

/* --- NAVIGATION --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 50px;
    width: 90%;
    max-width: 1200px;
    margin: 24px auto;
    padding: 12px 24px;
    position: sticky;
    top: 20px;
    z-index: 9999;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.nav-brand span { color: #3b82f6; }

.nav-links-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}
.nav-item:hover { color: #3b82f6; }

.nav-indicator {
    position: absolute;
    background-color: rgba(59, 130, 246, 0.15);
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
}

.cta-btn {
    text-decoration: none;
    background-color: #0f172a;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}
.cta-btn:hover { background-color: #3b82f6; transform: translateY(-2px); }

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: moveBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 { width: 40vw; height: 40vw; background: rgba(59, 130, 246, 0.25); top: -10%; left: -10%; }
.blob-2 { width: 30vw; height: 30vw; background: rgba(147, 51, 234, 0.15); bottom: -20%; right: -10%; animation-delay: -10s; }

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2);}
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.availability-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.3s; }
.hero-buttons { animation-delay: 0.4s; }

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    to { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #475569;
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-direction: row !important;
    gap: 16px;
    justify-content: center;
    width: auto !important;
}

.btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary { background-color: #0f172a; color: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3); background-color: #3b82f6; }

.btn-secondary { background-color: rgba(255, 255, 255, 0.8); color: #0f172a; backdrop-filter: blur(10px); border: 1px solid rgba(15, 23, 42, 0.1); }
.btn-secondary:hover { transform: translateY(-4px); background-color: #fff; border-color: rgba(15, 23, 42, 0.2); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05); }

.flip-wrapper {
    display: inline-grid;
    grid-template-areas: "stack";
    vertical-align: bottom;
    perspective: 1000px;
    color: #3b82f6;
    margin-left: 8px;
}

.flip-front, .flip-back { position: absolute; left: 0; white-space: nowrap; backface-visibility: hidden; width: 100%; }
.flip-item { grid-area: stack; backface-visibility: hidden; white-space: nowrap; }
.flip-sizer { grid-area: stack; visibility: hidden; pointer-events: none; white-space: nowrap; }

.flip-front { animation: flipFront 6s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.flip-back { color: #9333ee; transform: rotateX(180deg); animation: flipBack 6s infinite cubic-bezier(0.4, 0, 0.2, 1); }

@keyframes flipFront { 0%, 40% { transform: rotateX(0deg); } 50%, 90% { transform: rotateX(-180deg); } 100% { transform: rotateX(-360deg); } }
@keyframes flipBack { 0%, 40% { transform: rotateX(180deg); } 50%, 90% { transform: rotateX(0deg); } 100% { transform: rotateX(-180deg); } }


/* --- GLOBAL HEADERS --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: #0f172a; font-weight: 800; margin-bottom: 12px; }
.section-subtitle { color: #475569; font-size: 1.1rem; }


/* --- EXPERTISE SECTION --- */
.expertise-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 90px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08); border-color: #3b82f6; }

.bento-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 24px;
    background: rgba(59, 130, 246, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.bento-title { font-size: 1.5rem; color: #0f172a; font-weight: 700; margin-bottom: 16px; }
.bento-desc { color: #475569; font-size: 1.05rem; line-height: 1.6; margin-bottom: 32px; flex-grow: 1; }

.skill-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-pills span {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.bento-card:hover .skill-pills span { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05); }


/* --- PROCESS TIMELINE SECTION --- */
.process-section {
    padding: 100px 24px;
    max-width: 900px;
    margin: 0 auto;
    scroll-margin-top: 90px;
}

.timeline-container {
    position: relative;
    padding-left: 50px; 
    margin-top: 40px;
}

.timeline-line {
    position: absolute;
    left: 24px; 
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.1));
    border-radius: 10px;
}

.process-step { position: relative; margin-bottom: 60px; display: flex; flex-direction: column; }
.process-step:last-child { margin-bottom: 0; }

.step-marker {
    position: absolute;
    left: -50px; 
    top: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    border: 4px solid #f4fafe; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.4;
    transform: scale(0.95) translateX(-10px);
}

.step-title { font-size: 1.4rem; color: #0f172a; margin-bottom: 12px; font-weight: 700; }
.step-desc { color: #475569; font-size: 1.05rem; line-height: 1.6; }

.process-step.active .step-card {
    opacity: 1;
    transform: scale(1) translateX(0);
    background: rgba(255, 255, 255, 0.7);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12);
}
.process-step.active .step-marker { background: #3b82f6; transform: scale(1.2); box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }

.ghost-cursor {
    position: absolute;
    left: -20px; 
    font-size: 2.2rem;
    color: #1e293b;
    z-index: 100;
    pointer-events: none; 
    transition: top 1s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s ease;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.3));
}

.ghost-cursor.clicking { transform: scale(0.85) rotate(-10deg); color: #3b82f6; }


/* --- PROJECTS SECTION (TV Dashboard) --- */
.projects-section {
    scroll-margin-top: 90px; 
    height: calc(100vh - 100px); 
    min-height: 700px;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.tv-glass-frame {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    overflow: hidden; 
}

.tv-glass-frame .section-header { margin-bottom: 24px; flex-shrink: 0; }

.projects-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent);
    mask-image: linear-gradient(to bottom, black 95%, transparent);
}

.projects-wrapper.grid-view .projects-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 16px;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 40px;
    padding-right: 8px;
}

.projects-wrapper.split-view { display: grid; grid-template-columns: 320px 1fr; gap: 24px; height: 100%; }
.projects-wrapper.split-view .projects-list { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; height: 100%; padding-right: 8px; padding-bottom: 40px; }

.projects-list::-webkit-scrollbar { width: 6px; }
.projects-list::-webkit-scrollbar-track { background: transparent; }
.projects-list::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.2); border-radius: 10px; }

/* MINI CARDS */
.mini-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mini-card:hover, .mini-card.active { background: rgba(255, 255, 255, 0.7); border-color: #3b82f6; transform: translateY(-4px); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1); }
.card-icon { font-size: 2rem; color: #3b82f6; margin-bottom: 16px; }
.mini-title { font-size: 1.25rem; color: #0f172a; font-weight: 700; margin-bottom: 24px; }

.btn-view-details {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}
.btn-view-details:hover { background: #3b82f6; }

/* DETAIL VIEWPORT */
.project-viewport {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    height: 100%;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    overflow-y: auto;
    position: relative;
}

.project-viewport.mobile-accordion {
    grid-column: 1 / -1; 
    height: 500px; 
    margin: 8px 0 24px 0;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.05);
}

.close-viewport-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.close-viewport-btn:hover { background: #ef4444; color: white; }

.viewport-state { display: none; }
.viewport-state.active { display: block; animation: fadeIn 0.4s ease forwards; }

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

#viewport-empty { text-align: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #64748b; }
.empty-animation { font-size: 3rem; color: #cbd5e1; margin-bottom: 16px; }

/* Skeleton Loader */
.skeleton-img { width: 100%; height: 300px; background: #e2e8f0; border-radius: 16px; margin-bottom: 24px; }
.skeleton-text { width: 100%; height: 20px; background: #e2e8f0; border-radius: 4px; margin-bottom: 12px; }
.skeleton-text.title { width: 60%; height: 40px; margin-bottom: 32px; }
.skeleton-text.short { width: 80%; }
.skeleton-img, .skeleton-text {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}
@keyframes skeletonLoading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Viewport Typography */
.vp-image { width: 100%; height: 350px; object-fit: cover; border-radius: 16px; margin-bottom: 32px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.vp-title { font-size: 2.5rem; color: #0f172a; margin-bottom: 24px; }
.vp-section { margin-bottom: 32px; padding-left: 16px; border-left: 3px solid #cbd5e1; }
.vp-section.success { border-left-color: #22c55e; }
.vp-section h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 8px; }
.vp-section p { font-size: 1.1rem; color: #1e293b; line-height: 1.6; }

/* Tech Stack inside Viewport */
.vp-tech-stack { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.1); }
.tech-item { display: flex; align-items: center; gap: 8px; background: rgba(15, 23, 42, 0.05); padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; color: #1e293b; transition: transform 0.2s; }
.tech-item i { font-size: 1.4rem; }
.tech-item:hover { transform: translateY(-2px); background: rgba(15, 23, 42, 0.1); }


/* --- CTA SECTION --- */
.cta-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cta-glass-island {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.cta-title i { color: #3b82f6; margin-right: 10px; }
.cta-subtitle { color: #475569; font-size: 1.2rem; margin: 20px 0 40px; }

.cta-perks {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.perk-item { display: flex; align-items: center; gap: 10px; color: #1e293b; font-weight: 600; }
.perk-item i {
    color: #3b82f6; background: white; width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* --- CONCIERGE & SUCCESS MODALS --- */
.contact-glass { max-width: 500px !important; text-align: left; }
.modal-header { margin-bottom: 30px; }
.live-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase; color: #22c55e;
    background: rgba(34, 197, 94, 0.1); padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
}

.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #94a3b8; transition: color 0.3s; }
.input-group textarea + i { top: 25px; transform: none; }
.input-group input, .input-group textarea {
    width: 100%; padding: 15px 15px 15px 50px; border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.1); background: white; font-size: 1rem; outline: none; transition: all 0.3s;
}
.input-group input:focus, .input-group textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
.input-group input:focus + i, .input-group textarea:focus + i { color: #3b82f6; }

/* --- UI FIX: MODAL HEADER ORGANIZATION --- */
.modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; /* Perfect spacing between items */
    margin-bottom: 30px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
}

#modal-heading {
    font-size: 1.8rem;
    color: #0f172a;
    line-height: 1.2;
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header p {
    color: #475569;
    font-size: 1.05rem;
    margin: 0;
}

/* --- CORE MODAL FOUNDATION (The Pop-up Effect) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
}

/* --- ADVENTURE MODAL EFFECTS --- */
.adventure-modal { 
    position: relative; 
    overflow-x: hidden; 
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.4); 
    background: rgba(255, 255, 255, 0.7) !important; 
}
.modal-waves { position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; z-index: -1; opacity: 0.3; }
/* --- NETWORK FIX: INLINE SVG WAVES (No External Links) --- */
.wave {
    position: absolute; 
    bottom: 0; 
    width: 200%; 
    height: 100%;
    /* This replaces the GitHub link. It is code, so it loads in 0.001 seconds */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 100'%3E%3Cpath d='M0,50 C150,100 250,0 400,50 C550,100 650,0 800,50 L800,100 L0,100 Z' fill='%233b82f6' /%3E%3C/svg%3E");
    background-size: 50% 100px; 
    animation: waveMove 10s linear infinite;
}
.wave:nth-child(2) { opacity: 0.5; animation-duration: 7s; bottom: 5px; }

@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stardust-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.star { position: absolute; background: #3b82f6; border-radius: 50%; opacity: 0.2; animation: floatUp 5s infinite ease-in; }

@keyframes floatUp {
    0% { transform: translateY(110%) scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-10%) scale(1.2); opacity: 0; }
}

.calendar-preview { background: rgba(59, 130, 246, 0.05); border-radius: 12px; padding: 15px; margin-bottom: 20px; border: 1px dashed rgba(59, 130, 246, 0.3); }
.calendar-preview p { color: #0f172a; font-weight: 600; margin-bottom: 4px; }
.calendly-link { color: #3b82f6; font-weight: 700; text-decoration: none; font-size: 0.9rem; }

/* GLOBAL BUTTON ACTION PULSE */
.btn:hover, .cta-btn:hover, .btn-view-details:hover { animation: buttonPulse 1.5s infinite; }
@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}


/* --- FOOTER --- */
.minimal-footer { padding: 40px 24px 20px; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 10px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: #64748b; }
.minimal-footer p { font-size: 0.85rem; font-weight: 500; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { 
    color: #64748b; 
    font-size: 1rem; 
    font-weight: 500;
    transition: color 0.3s; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-socials a:hover { color: #3b82f6; }

/* Responsive Media Queries */
@media (max-width: 1200px) { .projects-wrapper.grid-view .projects-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
    .projects-section { height: auto; min-height: 100vh; padding: 40px 16px; }
    .tv-glass-frame { height: auto; padding: 20px; }
    .projects-wrapper.grid-view .projects-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-buttons, .cta-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .timeline-container { padding-left: 40px; }
    .timeline-line { left: 19px; }
    .step-marker { left: -40px; width: 40px; height: 40px; font-size: 1rem; }
    .step-card { padding: 24px; }
    .footer-content { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 600px) { .projects-wrapper.grid-view .projects-list { grid-template-columns: 1fr; } }

/* --- CALENDAR IFRAME --- */
.calendar-iframe {
    width: 100%;
    flex-grow: 1; /* Makes it fill the available vertical space */
    border: none;
    border-radius: 12px;
    background: #ffffff; /* Calendly looks best with a solid white background */
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

/* --- MOBILE MENU OVERLAY STYLES --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0f172a;
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(244, 250, 254, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu-overlay.active { right: 0; }

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #0f172a;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-links a { text-decoration: none; color: #0f172a; transition: color 0.3s; }
.mobile-links a:hover { color: #3b82f6; }
.mobile-cta { font-size: 1.2rem; margin-top: 20px; }

/* --- RESPONSIVE DIET & PERFECT MOBILE PROPORTIONS (Screens under 768px) --- */
@media (max-width: 768px) {
    /* Navigation Fix */
    .desktop-only { display: none !important; }
    .mobile-menu-btn { display: block; }
    
    .glass-nav {
        width: 90%;
        padding: 15px 24px;
        border-radius: 20px;
    }

    /* PERFORMANCE DIET: Stop animations and reduce blur */
    .blob {
        animation-play-state: paused !important; 
        filter: blur(40px); 
    }
    
    .bento-card, .tv-glass-frame, .step-card, .cta-glass-island, .contact-glass {
        backdrop-filter: blur(10px) !important; 
        -webkit-backdrop-filter: blur(10px) !important;
        background: rgba(255, 255, 255, 0.85) !important; 
        box-shadow: none !important; 
        transform: none !important; 
    }

    /* PREVENT STRETCHING: Force cards to respect their content size */
    .bento-grid {
        grid-template-columns: 1fr; /* Stack in a single column */
        gap: 20px; /* Reduce gap between cards */
    }
    
    .bento-card, .mini-card {
        align-self: start; /* Prevents vertical stretching */
        padding: 24px; /* Reduced padding prevents "tall and thin" distortion */
    }

    /* Layout & Spacing Resets for perfect proportions */
    .hero-section { min-height: 80vh; padding-top: 80px; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.5rem); } /* Fluid scaling */
    .hero-description { font-size: 1rem; padding: 0 10px; }
    
    .expertise-section, .process-section, .cta-section { padding: 60px 16px; }
    .section-header { margin-bottom: 30px; }
    
    /* Project TV Frame specific mobile fixes */
    .tv-glass-frame {
        padding: 16px;
        border-radius: 20px;
    }
    
    /* Process Timeline mobile fixes */
    .timeline-container { padding-left: 30px; } /* Tighter left margin */
    .timeline-line { left: 14px; }
    .step-marker { 
        left: -30px; 
        width: 32px; 
        height: 32px; 
        font-size: 0.9rem; 
        border-width: 2px;
    }
    .step-card { padding: 20px; }
    .step-title { font-size: 1.2rem; }
    
    /* CTA Island mobile fixes */
    .cta-glass-island { padding: 40px 20px; border-radius: 24px; }
    .cta-title { font-size: 1.5rem; }
    .cta-subtitle { font-size: 1rem; }
    
    /* Make buttons full width and neatly stacked */
    .hero-buttons, .cta-actions { 
        flex-direction: column; 
        width: 100%; 
        padding: 0; 
        gap: 12px;
    }
    .btn { width: 100%; justify-content: center; }

    /* Footer stacking */
    .footer-content { 
        flex-direction: column; 
        gap: 16px; 
        text-align: center; 
    }
}