/* ============================================
   iPhone 17 Pro Max - Premium Showcase
   Custom CSS for Apple-style minimal design
   ============================================ */

/* Root Variables for Consistent Theming */
:root {
    --primary-color: #0071e3;
    --dark-bg: #000000;
    --dark-secondary: #1d1d1f;
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --spacing-unit: 1rem;
}

/* Base Styles - Mobile First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography - Large, Bold, Premium */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Hero Section - Dark Theme, Full Screen */
.hero-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 113, 227, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 113, 227, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Button Styles - Premium Apple-style */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4);
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.5);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-light {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: #f5f5f7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features-section {
    background-color: #ffffff;
    color: #000000;
    padding: 6rem 0;
}

.features-section h2 {
    color: #000000;
}

.feature-card {
    background-color: #f5f5f7;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 113, 227, 0.2);
}

.feature-icon {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    color: #000000;
    font-weight: 600;
}

.feature-card p {
    color: #6e6e73;
    font-size: 0.95rem;
}

/* Highlight Sections */
.highlight-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.highlight-section.bg-light {
    background-color: #f5f5f7;
}

.highlight-section h2 {
    color: #000000;
    font-weight: 700;
}

.highlight-section .lead {
    color: #6e6e73;
    font-weight: 400;
}

.highlight-section ul li {
    color: #1d1d1f;
    font-size: 1.1rem;
    padding-left: 1.5rem;
    position: relative;
}

.highlight-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.highlight-section img {
    transition: transform 0.3s ease;
}

.highlight-section img:hover {
    transform: scale(1.02);
}

/* Specifications Table */
.specs-section {
    background-color: #ffffff;
    padding: 6rem 0;
}

.specs-section h2 {
    color: #000000;
}

.table {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background-color: #f5f5f7;
}

.table thead th {
    color: #000000;
    font-weight: 600;
    border-bottom: 2px solid #d2d2d7;
    padding: 1.25rem;
}

.table tbody td {
    color: #1d1d1f;
    padding: 1.25rem;
    border-bottom: 1px solid #f5f5f7;
}

.table tbody tr:hover {
    background-color: #f5f5f7;
    transition: background-color 0.2s ease;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Call-to-Action Section */
.cta-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--text-primary);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.cta-section .lead {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Footer */
.footer-section {
    background-color: #000000;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
/* Tablet and below */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .features-section,
    .highlight-section,
    .specs-section {
        padding: 4rem 0;
    }
    
    .cta-section {
        padding: 5rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
