/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 44px;
}

.nav-logo svg {
    height: 18px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0071e3;
}

.nav-search svg {
    height: 16px;
    width: auto;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-search:hover svg {
    opacity: 1;
}

/* Hero Section */
.hero {
    margin-top: 44px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 400;
    font-size: 17px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.btn-primary {
    background-color: #0071e3;
    color: white;
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-image {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Products Section */
.products {
    padding: 100px 0;
    background-color: #f5f5f7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card.large {
    grid-column: span 2;
    flex-direction: row;
    min-height: 500px;
}

.product-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card.large .product-content {
    flex: 1;
    padding: 60px;
}

.product-content h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.product-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.product-content p {
    font-size: 21px;
    color: #86868b;
    margin-bottom: 30px;
    line-height: 1.4;
}

.product-actions {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.link {
    color: #0071e3;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.link:hover {
    color: #0077ed;
    text-decoration: underline;
}

.product-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Product Mockups */
.macbook-mockup {
    width: 200px;
    height: 140px;
    background: linear-gradient(135deg, #1d1d1f 0%, #333 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.macbook-mockup::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 8px;
    background-color: #1d1d1f;
    border-radius: 0 0 8px 8px;
}

.ipad-mockup {
    width: 150px;
    height: 200px;
    background: linear-gradient(135deg, #1d1d1f 0%, #333 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.watch-mockup {
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #1d1d1f 0%, #333 100%);
    border-radius: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.watch-mockup::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 3px solid #1d1d1f;
    border-radius: 50%;
}

.airpods-mockup {
    width: 100px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.airpods-mockup::before,
.airpods-mockup::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 60px;
    background-color: white;
    border-radius: 10px;
    top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.airpods-mockup::before {
    left: 20px;
}

.airpods-mockup::after {
    right: 20px;
}

/* Featured Section */
.featured {
    padding: 100px 0;
    background-color: #000;
    color: white;
}

.featured-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-item {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 500px;
}

.featured-content {
    flex: 1;
    padding: 0 20px;
}

.featured-content h2 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.featured-content p {
    font-size: 24px;
    color: #a1a1a6;
    margin-bottom: 40px;
    line-height: 1.4;
}

.featured-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vision-mockup {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-radius: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

.vision-mockup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 100px;
    background: linear-gradient(45deg, #0071e3, #667eea);
    border-radius: 20px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #f5f5f7;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #424245;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0071e3;
}

.footer-bottom {
    border-top: 1px solid #d2d2d7;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 12px;
    color: #86868b;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #424245;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0071e3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .product-card.large {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .product-content {
        padding: 30px;
    }
    
    .product-content h2 {
        font-size: 32px;
    }
    
    .product-content h3 {
        font-size: 24px;
    }
    
    .featured-item {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .featured-content h2 {
        font-size: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 200px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.3s;
}