/* --- Master Variables (Dark Mode Default) --- */
:root {
    --bg-color: #000000; 
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent: #2997ff;
    --surface: #151516; 
    --nav-bg: rgba(0, 0, 0, 0.75);
    --border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
    --bg-color: #f2f2f7; 
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --accent: #0071e3; 
    --surface: #ffffff; 
    --nav-bg: rgba(242, 242, 247, 0.75);
    --border-color: rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); transition: background-color 0.5s, color 0.5s; overflow-x: hidden; }

/* --- Fixed Header --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 9999;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5vw; background-color: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--border-color);
}
.logo { font-size: 22px; font-weight: 700; color: var(--text-main); text-decoration: none; text-shadow: 0 0 15px rgba(255,255,255,0.1); }
nav ul { list-style: none; display: flex; gap: 30px; align-items: center; }
nav ul li a { color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.3s; }
nav ul li a:hover { color: var(--accent); }
.theme-btn { background: none; border: none; font-size: 20px; cursor: pointer; transition: transform 0.3s; }
.theme-btn:hover { transform: scale(1.2); }

/* --- TRUE CIRCULAR HERO SLIDER --- */
.hero-slider-container { padding-top: 100px; width: 100%; display: flex; justify-content: center; margin-bottom: 50px; }
.hero-slider { 
    position: relative; width: 90vw; max-width: 1600px; height: 75vh; 
    border-radius: 30px; overflow: hidden; border: 1px solid var(--border-color); background: #000; 
}
.slider-track { display: flex; width: 100%; height: 100%; }

.slide { 
    flex: 0 0 100%; height: 100%; 
    background-size: cover; background-position: center; position: relative; 
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.slide::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 1; }
.slide-content { position: relative; z-index: 2; padding: 0 20px; color: #fff; }
.slide-content h1 { font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -2px; margin-bottom: 10px; text-shadow: 0 0 30px rgba(255,255,255,0.2); }
.slide-content p { font-size: clamp(18px, 2vw, 24px); color: #f5f5f7; }

/* Arrows */
.slider-btn { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: white; 
    width: 50px; height: 80px; border-radius: 20px; cursor: pointer; z-index: 10; 
    backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.slider-btn svg { width: 24px; height: 24px; pointer-events: none; }
.slider-btn:hover { background: rgba(255,255,255,0.3); width: 60px; }
.prev-btn { left: 2vw; } .next-btn { right: 2vw; }

/* --- SECTIONS & TYPOGRAPHY --- */
.content-section { padding: 80px 5vw; text-align: center; max-width: 1600px; margin: 0 auto; }
.surface-panel { background-color: var(--surface); border-radius: 30px; padding: 60px 5vw; border: 1px solid var(--border-color); margin: 0 5vw 50px 5vw; transition: 0.5s; }
.apple-heading { font-size: clamp(32px, 4vw, 56px); font-weight: 700; margin-bottom: 15px; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
.apple-subtext { font-size: clamp(18px, 2vw, 24px); color: var(--text-muted); margin-bottom: 40px; }
.large-text { font-size: clamp(16px, 1.5vw, 20px); color: var(--text-muted); text-align: left; margin-bottom: 20px; line-height: 1.6; }
.apple-link { color: var(--accent); font-size: 18px; text-decoration: none; font-weight: 600; }
[data-theme="light"] .apple-heading { text-shadow: none; }

/* --- FEATURE ROWS --- */
.feature-row { display: flex; align-items: center; gap: 60px; padding: 80px 5vw; max-width: 1600px; margin: 0 auto; overflow: hidden; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-image { flex: 1; border-radius: 24px; overflow: hidden; height: 450px; width: 100%; border: 1px solid var(--border-color); position: relative; }
.feature-text { flex: 1; text-align: left; }
.mini-slider { width: 100%; height: 100%; position: relative; }
.mini-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mini-slider .top-img { animation: crossfade 8s infinite alternate; z-index: 2; }
@keyframes crossfade { 0%, 30% { opacity: 1; } 70%, 100% { opacity: 0; } }

/* --- 3D INFO ALIGNMENT --- */
.info-3d-container { display: flex; align-items: center; justify-content: center; gap: 8vw; text-align: left; }
.image-3d { flex: 0.35; max-width: 350px; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-color); }
.image-3d img { width: 100%; display: block; }
.info-points { flex: 0.65; max-width: 600px; display: flex; flex-direction: column; gap: 30px; }
.point h3 { font-size: 24px; margin-bottom: 10px; color: var(--text-main); }
.point p { color: var(--text-muted); font-size: 18px; }

/* Buttons & Grids */
.apple-btn { display: inline-block; background: var(--text-main); color: var(--bg-color); padding: 15px 30px; border-radius: 30px; text-decoration: none; font-size: 16px; font-weight: 600; transition: 0.3s; }
.apple-btn:hover { transform: scale(1.03); opacity: 0.9; }
.category-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3vw; margin-top: 40px; }
.category-card, .portfolio-item { background: var(--surface); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: 0.3s; text-decoration: none; display: block; }
.category-card:hover, .portfolio-item:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.category-card img, .portfolio-item img { width: 100%; height: 250px; object-fit: cover; }
.category-card h3, .portfolio-info { padding: 20px; color: var(--text-main); text-align: center; font-size: 18px; }
.portfolio-info { text-align: left; border-top: 1px solid var(--border-color); }

/* --- PREMIUM FOOTER --- */
.site-footer { background-color: var(--surface); border-top: 1px solid var(--border-color); padding: 60px 5vw 20px; margin-top: 80px; transition: background-color 0.5s; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; text-align: left; max-width: 1600px; margin-left: auto; margin-right: auto; }
.footer-section h3 { color: var(--text-main); margin-bottom: 20px; font-size: 18px; }
.footer-section p, .footer-section a { color: var(--text-muted); text-decoration: none; line-height: 1.8; transition: color 0.3s; display: block; }
.footer-section a:hover { color: var(--accent); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 14px; max-width: 1600px; margin: 0 auto; }

/* --- UPGRADED BLUR ANIMATIONS --- */
.fade-up { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.fade-left { opacity: 0; transform: translateX(-40px); filter: blur(10px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.fade-right { opacity: 0; transform: translateX(40px); filter: blur(10px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.show { opacity: 1; transform: translate(0, 0); filter: blur(0); }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    header { padding: 15px 5vw; flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    .hero-slider-container { padding-top: 140px; }
    .hero-slider { height: 50vh; width: 95vw; border-radius: 20px; }
    
    .feature-row, .feature-row.reverse, .info-3d-container { 
        flex-direction: column; text-align: center; gap: 30px; padding: 60px 5vw; 
    }
    .feature-image { height: 300px; width: 100%; max-width: 100%; }
    .image-3d { width: 100%; max-width: 100%; }
    .feature-text, .info-points, .large-text { text-align: center; }
    .footer-content { text-align: center; }
}