/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Exact Project Colors */
    --primary: #4F46E5; 
    --primary-hover: #4338CA;
    --bg-dark: #1E293B; 
    --bg-body: #F8FAFC;
    --success: #10B981;
    --warning: #F59E0B;
    
    /* Apple Cinematic Palette */
    --apple-black: #000000;
    --apple-dark-gray: #1d1d1f;
    --apple-gray: #f5f5f7;
    --apple-white: #ffffff;
    --apple-text-light: #86868b;
    
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--apple-black);
}

body {
    color: var(--apple-dark-gray);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Fluid Typography & Text Alignment
   ========================================================================== */
.headline-massive {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-align: center;
    margin-bottom: 24px;
}

.headline-medium {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--apple-dark-gray);
    margin-bottom: 24px;
    text-align: center;
}

.section-black .headline-medium {
    color: var(--apple-white);
}

.copy-hero {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 500;
    color: var(--apple-text-light);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 16px auto;
    letter-spacing: -0.01em;
}

.copy-large {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Cinematic Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }

/* ==========================================================================
   Layout & Sections
   ========================================================================== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section-black { background-color: var(--apple-black); color: var(--apple-white); }
.section-white { background-color: var(--apple-white); }
.section-gray { background-color: var(--apple-gray); }

/* ==========================================================================
   Global & Local Nav
   ========================================================================== */
.global-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 48px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1001;
}

.global-nav .nav-container {
    max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 100%;
    display: flex; justify-content: space-between; align-items: center;
}

.global-nav .logo { display: flex; align-items: center; opacity: 0.9; transition: 0.3s ease; }
.global-nav .logo:hover { opacity: 1; transform: scale(1.05); }

.global-nav .nav-links { display: none; gap: 32px; }
.global-nav .nav-links a { font-size: 0.75rem; color: #f5f5f7; opacity: 0.8; transition: 0.3s ease; }
.global-nav .nav-links a:hover { opacity: 1; color: var(--apple-white); }

.mobile-menu-btn { color: #f5f5f7; font-size: 1.2rem; display: block; }

.local-nav {
    position: fixed; top: 48px; left: 0; width: 100%; height: 52px;
    background: rgba(29, 29, 31, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000; transition: background 0.3s ease;
}

.local-nav.scrolled { background: rgba(29, 29, 31, 0.95); }

.local-nav-container {
    max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 100%;
    display: flex; justify-content: space-between; align-items: center;
}

.local-title { font-size: 1.25rem; font-weight: 600; color: var(--apple-white); letter-spacing: -0.01em; }
.local-actions { display: flex; align-items: center; gap: 16px; }
.local-price { font-size: 0.85rem; color: #f5f5f7; display: none; }

.btn-buy {
    background: var(--apple-white); color: var(--apple-black);
    padding: 6px 14px; border-radius: 980px; font-size: 0.75rem; font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-buy:hover { transform: scale(1.05); background: var(--apple-gray); box-shadow: 0 4px 10px rgba(255,255,255,0.2); }

/* ==========================================================================
   Hero Section & iPad Mockup
   ========================================================================== */
.hero-dark {
    background-color: var(--apple-black);
    padding-top: 180px; padding-bottom: 0;
    position: relative; overflow: hidden;
}

.hero-content { position: relative; z-index: 2; margin-bottom: 40px; }

.hero-image-wrapper {
    max-width: 1000px; margin: 0 auto; position: relative;
    transform: translateY(40px); z-index: 1;
}

.device-glow {
    position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
    width: 80%; height: 50%; background: var(--primary);
    filter: blur(100px); opacity: 0.2; z-index: 0; border-radius: 50%;
    transition: opacity 0.5s ease;
}
.hero-image-wrapper:hover .device-glow { opacity: 0.35; }

.ipad-mockup {
    position: relative; z-index: 1; background: var(--apple-black);
    border: clamp(8px, 2vw, 12px) solid #222; border-radius: clamp(16px, 4vw, 36px) clamp(16px, 4vw, 36px) 0 0;
    border-bottom: none; box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
    aspect-ratio: 1.43 / 1; overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ipad-camera {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; background: #111; border-radius: 50%; z-index: 10;
}

.ipad-screen {
    flex: 1; background: var(--apple-gray); border-radius: clamp(8px, 2vw, 20px) clamp(8px, 2vw, 20px) 0 0;
    overflow: hidden; display: flex; flex-direction: column;
}

/* ==========================================================================
   Real Dashboard Clone CSS (Interactive)
   ========================================================================== */
.mac-header {
    background: var(--apple-white); padding: 12px 16px; display: flex; gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mac-dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; transition: transform 0.2s; }
.mac-header:hover .mac-dot { transform: scale(1.2); }
.mac-dot.red { background: #FF5F56; }
.mac-dot.yellow { background: #FFBD2E; }
.mac-dot.green { background: #27C93F; }

.mac-body { display: flex; flex: 1; font-family: 'Inter', sans-serif; overflow: hidden; }

.mac-sidebar {
    width: 200px; background: var(--bg-dark); padding: 20px 16px; color: #fff;
    display: none; 
}

.sidebar-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 2rem; display: flex; gap: 8px; align-items: center; }

.sidebar-item {
    padding: 10px 12px; font-size: 0.85rem; font-weight: 500; border-radius: 8px; margin-bottom: 8px;
    display: flex; gap: 8px; align-items: center; color: #94A3B8;
    transition: all 0.3s ease; cursor: pointer;
}
.sidebar-item:not(.active):hover { background: rgba(255,255,255,0.05); color: white; transform: translateX(4px); }
.sidebar-item.active { background: var(--primary); color: white; }

.mac-main {
    flex: 1; background: var(--bg-body); padding: 16px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
}

.main-top-header {
    display: flex; justify-content: space-between; align-items: center;
    background: white; padding: 8px 16px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease; cursor: pointer;
}
.main-top-header:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.menu-icon { color: #94a3b8; }
.user-profile { display: flex; gap: 12px; align-items: center; }
.user-info { text-align: right; line-height: 1.2; }
.user-name { font-weight: 600; font-size: 0.85rem; color: #1e293b; }
.user-status { font-size: 0.7rem; color: var(--success); display: flex; align-items: center; gap: 4px; }
.status-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
.user-avatar { width: 32px; height: 32px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: bold; }

.dashboard-stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stat-card { 
    background: white; padding: 12px; border-radius: 12px; display: flex; gap: 12px; align-items: center; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
.stat-card.primary-card { border-bottom: 4px solid var(--primary); }
.stat-card.success-card { border-bottom: 4px solid var(--success); }
.stat-card.warning-card { border-bottom: 4px solid var(--warning); }

.stat-icon-wrapper { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: transform 0.3s; }
.stat-card:hover .stat-icon-wrapper { transform: scale(1.1); }
.primary-bg { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.success-bg { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.warning-bg { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 0.6rem; text-transform: uppercase; color: #64748b; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 2px; }
.stat-value { font-size: 1.25rem; font-weight: 700; color: #0f172a; line-height: 1; }

.smart-controls { display: none; } 
.control-header { font-weight: 700; font-size: 1rem; color: #1e293b; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.control-box { 
    border: 1px solid #eef2f6; border-radius: 12px; padding: 16px; text-align: center; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.control-box:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 16px rgba(79, 70, 229, 0.1); }
.c-icon { width: 40px; height: 40px; background: rgba(79, 70, 229, 0.1); color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px auto; font-size: 1.1rem; transition: transform 0.3s; }
.control-box:hover .c-icon { transform: scale(1.15) rotate(5deg); }
.c-title { font-weight: 600; font-size: 0.85rem; color: #1e293b; }
.c-sub { font-size: 0.7rem; color: #64748b; margin-top: 4px; }

/* ==========================================================================
   Under the Hood (Backend Tech Specs)
   ========================================================================== */
.tech-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.spec-item {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    transition: all 0.3s ease;
    cursor: default;
}

.spec-item:hover {
    border-top: 1px solid var(--primary);
    transform: translateY(-2px);
}

.spec-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--apple-white);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.spec-item:hover h3 { color: var(--primary); }

.spec-item p {
    font-size: 1rem;
    color: #86868b;
    line-height: 1.5;
}

/* ==========================================================================
   Bento Grid (Apple Style Interactive)
   ========================================================================== */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.bento-card {
    background: var(--apple-white); border-radius: 32px; padding: clamp(24px, 5vw, 48px);
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow-soft); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
}
.bento-card:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }

.bento-card.dark { background: var(--apple-dark-gray); color: var(--apple-white); }

.bento-title { font-size: clamp(1.5rem, 4vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--apple-dark-gray); transition: color 0.3s ease; }
.bento-card:hover .bento-title { color: var(--primary); }
.bento-card.dark:hover .bento-title { color: #f5f5f7; }
.bento-card.dark .bento-title { color: var(--apple-white); }
.bento-copy { font-size: 1.05rem; color: var(--apple-text-light); max-width: 400px; }

.bento-image {
    margin-top: 40px; flex: 1; background: var(--apple-gray); border-radius: 20px;
    min-height: 200px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; transition: transform 0.4s ease;
}
.bento-card:hover .bento-image { transform: scale(1.03); }
.bento-card.dark .bento-image.no-bg { background: transparent; }

/* Live Tracking Lens */
.lens-container { position: relative; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.camera-lens { font-size: 4rem; color: var(--primary); position: relative; z-index: 2; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-card:hover .camera-lens { transform: scale(1.2); }
.lens-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; background: var(--primary); filter: blur(40px); opacity: 0.2; z-index: 1; transition: opacity 0.4s; }
.bento-card:hover .lens-glow { opacity: 0.4; filter: blur(50px); }
.live-badge { position: absolute; top: -30px; right: -40px; background: #EF4444; color: white; font-size: 0.7rem; font-weight: bold; padding: 4px 8px; border-radius: 4px; animation: pulse 2s infinite; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Registration Wireframe */
.ui-wireframe { background: white; border: 1px solid #e2e8f0; display: flex; flex-direction: column; padding: 20px; justify-content: center; align-items: stretch; width: 80%; margin: 0 auto; transition: border-color 0.3s; }
.bento-card:hover .ui-wireframe { border-color: var(--primary); }
.wire-header { font-weight: 600; color: #1e293b; font-size: 1rem; margin-bottom: 12px; }
.wire-label { font-size: 0.75rem; color: #64748b; font-weight: 500; margin-bottom: 6px; }
.wire-input { height: 32px; width: 100%; border: 1px solid #D1D5DB; border-radius: 6px; margin-bottom: 12px; background: #fff; transition: border-color 0.3s; }
.bento-card:hover .wire-input { border-color: var(--primary); }
.wire-btn { height: 36px; width: 100%; background: var(--primary); border-radius: 6px; color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; margin-top: 8px; transition: opacity 0.3s; }
.bento-card:hover .wire-btn { opacity: 0.9; }

/* Dual Storage */
.db-showcase { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.db-item { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; transition: transform 0.4s; }
.bento-card.dark:hover .db-item { transform: translateY(-5px); }
.db-item.mongo { color: #47A248; }
.db-item.excel { color: #217346; }
.db-item i { font-size: 3.5rem; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-card.dark:hover .db-item i { transform: scale(1.15); }

/* ==========================================================================
   Tech Stack
   ========================================================================== */
.stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.stack-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--apple-gray);
    padding: 24px;
    border-radius: 24px;
    width: calc(50% - 8px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-icon:hover {
    transform: translateY(-8px) scale(1.05);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stack-icon i { font-size: 2.5rem; transition: transform 0.4s; }
.stack-icon:hover i { transform: scale(1.1); }
.stack-icon span { font-weight: 600; color: var(--apple-dark-gray); font-size: 0.85rem; transition: color 0.3s; }

/* ==========================================================================
   Project Team
   ========================================================================== */
.team-header {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: center;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto 56px;
}

.team-header .headline-medium,
.team-header .copy-large {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.team-header .copy-large {
    color: #64748B;
}

.university-logo {
    width: 88px;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.12));
}

.credits-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.credits-panel {
    background: var(--apple-white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-soft);
}

.credits-panel h3 {
    font-size: 1.4rem;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 24px;
}

.members-table {
    display: grid;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.95rem;
    align-items: center;
}

.table-row:last-child {
    border-bottom: 0;
}

.table-row span:last-child {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.table-head {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table-head span:last-child {
    color: #64748b;
}

.supervisor-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.supervisor-list li {
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 650;
    border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Video Container
   ========================================================================== */
.video-container {
    max-width: 1000px; margin: 0 auto; background: var(--apple-black); border-radius: clamp(16px, 4vw, 32px);
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    position: relative; border: 1px solid rgba(255,255,255,0.05); cursor: pointer;
    overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.video-container:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
}

.demo-video {
    width: 100%; height: 100%; display: block;
    border-radius: clamp(16px, 4vw, 32px);
}

.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3); z-index: 10;
    transition: opacity 0.5s ease, background 0.5s ease;
}

.video-container:hover .video-overlay { background: rgba(0,0,0,0.1); }

.play-circle {
    width: clamp(64px, 10vw, 96px); height: clamp(64px, 10vw, 96px); background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--apple-white); font-size: clamp(1.5rem, 4vw, 2rem); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); z-index: 2;
}

.video-container:hover .play-circle { 
    transform: scale(1.15); 
    background: rgba(79, 70, 229, 0.9); /* Primary color */
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.6);
    color: #fff;
}

.video-label { position: absolute; bottom: 30px; font-weight: 600; font-size: 0.95rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); letter-spacing: 0.5px; transition: opacity 0.3s, transform 0.3s; }
.video-container:hover .video-label { opacity: 0; transform: translateY(10px); }

/* Class added when video is playing */
.video-container.is-playing .video-overlay { opacity: 0; pointer-events: none; }
.video-container.is-playing:hover { transform: none; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }

/* Custom Video Controls */
.custom-controls {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex; flex-direction: column; gap: 16px;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 5;
}

.video-container.is-playing:hover .custom-controls, .custom-controls.active { opacity: 1; pointer-events: auto; }

.progress-bar {
    width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 4px;
    cursor: pointer; position: relative; overflow: hidden; transition: height 0.2s;
}
.progress-bar:hover { height: 8px; }

.progress-filled {
    height: 100%; background: var(--primary); width: 0%; border-radius: 4px; pointer-events: none;
    transition: width 0.1s linear;
}

.controls-main { display: flex; justify-content: space-between; align-items: center; }
.controls-left, .controls-right { display: flex; align-items: center; gap: 20px; }

.control-btn {
    background: none; border: none; color: white; font-size: 1.15rem; cursor: pointer;
    transition: transform 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; opacity: 0.85;
}
.control-btn:hover { color: var(--primary); transform: scale(1.1); opacity: 1; }

.volume-container { display: flex; align-items: center; gap: 8px; }
.volume-slider {
    width: 0; height: 4px; -webkit-appearance: none; background: rgba(255,255,255,0.2);
    border-radius: 2px; outline: none; cursor: pointer; transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0; pointer-events: none;
}
.volume-container:hover .volume-slider { width: 80px; opacity: 1; pointer-events: auto; }

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px; background: white; border-radius: 50%; cursor: pointer;
}

.time-display { color: white; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px; user-select: none; opacity: 0.9; }

/* Hide default controls completely */
.demo-video::-webkit-media-controls { display: none !important; }

/* ==========================================================================
   Contact / Links
   ========================================================================== */
.contact-box { background: var(--apple-white); border-radius: 32px; padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px); box-shadow: var(--shadow-soft); text-align: center; }
.contact-links { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.btn-contact {
    width: 100%; max-width: 320px; padding: 16px; border-radius: 16px;
    background: var(--apple-gray); color: var(--apple-dark-gray);
    font-size: 1rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-contact:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); background: #fff; }
.btn-contact.linkedin { background: #0077B5; color: white; }
.btn-contact.linkedin:hover { background: #006097; box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { background: var(--apple-gray); padding: 40px 24px; font-size: 0.85rem; color: var(--apple-text-light); }
.footer-content { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--apple-dark-gray); }

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }
.delay-1 { transition-delay: 0.2s; }

@media (min-width: 768px) {
    .global-nav .nav-links, .local-price { display: flex; }
    .mobile-menu-btn { display: none; }
    
    .mac-sidebar { display: block; }
    .mac-main { padding: 32px; gap: 24px; }
    .dashboard-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .smart-controls { display: block; background: white; padding: 20px; border-radius: 12px; border: 1px solid rgba(226, 232, 240, 0.6); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    
    .tech-specs-grid { grid-template-columns: repeat(3, 1fr); }
    
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 60px; text-align: left; }
    .bento-large .bento-text { flex: 1; }
    .bento-large .bento-image { margin-top: 0; width: 45%; min-height: 350px; }
    
    .db-showcase { flex-direction: row; justify-content: center; gap: 40px; }
    .stack-icon { width: 140px; padding: 32px; }
    .stack-icon i { font-size: 3rem; }
    
    .contact-links { flex-direction: row; justify-content: center; }
    .btn-contact { width: auto; padding: 16px 32px; }
    
    .footer-content { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (max-width: 767px) {
    .team-header,
    .credits-layout {
        grid-template-columns: 1fr;
    }

    .team-header {
        justify-items: center;
        text-align: center;
        margin-bottom: 36px;
    }

    .team-header .headline-medium,
    .team-header .copy-large {
        text-align: center;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .table-row span:last-child {
        text-align: left;
    }

    .table-head {
        display: none;
    }
}
