@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Global Styles - Apple Mac Aesthetic */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --apple-white: #ffffff;
    --apple-black: #000000;
    --apple-gray: #86868b;
    --apple-off-white: #f5f5f7;
    --apple-glass: rgba(255, 255, 255, 0.72);
    --apple-border: rgba(0, 0, 0, 0.1);
    --transition-standard: all 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
    --transition-quick: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--apple-white);
    color: var(--apple-black);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.abstract-bg {
    background: url('../assets/image/watch_tech_bg.png') no-repeat center center fixed;
    background-size: cover;
}

body.abstract-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45); /* Lightened to let the technical grid shine through */
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--apple-black);
}

/* Navigation - Glassmorphism */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px; /* Classic Apple Nav height */
    background: var(--apple-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 0.5px solid var(--apple-border);
    transition: var(--transition-standard);
}

nav .container {
    max-width: 980px; /* Standard Apple content width */
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.logo {
    font-size: 1.1rem;
    color: var(--apple-black);
    font-weight: 600;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--apple-black);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active {
    opacity: 1;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--apple-black);
    font-size: 24px;
    cursor: pointer;
    z-index: 10001; /* Above nav links */
}

/* Mobile Nav Logic (Apple Mac Style Full Screen Overlay) */
@media (max-width: 734px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--apple-white); /* Pure white overlay or glass */
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        padding-left: 40px;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition-standard);
        z-index: 10000;
        backdrop-filter: saturate(180%) blur(20px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    nav.nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 24px;
        font-weight: 500;
    }

    body.nav-open {
        overflow: hidden; /* Prevent scrolling when open */
    }
}

footer {
    background: var(--apple-off-white);
    padding: 4.5rem 0 2rem;
    border-top: 1px solid var(--apple-border);
}

footer .container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.footer-column h4 {
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--apple-black);
    text-transform: none;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--apple-gray);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--apple-black);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--apple-border);
    color: var(--apple-black) !important;
    text-decoration: none !important;
    transition: var(--transition-quick);
}

.social-icon:hover {
    background: var(--apple-black);
    color: var(--apple-white) !important;
    transform: translateY(-2px);
}

.social-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0); /* Make default black */
    transition: filter var(--transition-quick);
}

.social-icon:hover img {
    filter: brightness(0) invert(1); /* Turns white on hover */
}

.copyright {
    border-top: 1px solid var(--apple-border);
    padding-top: 20px;
    font-size: 11px;
    color: var(--apple-gray);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    text-align: center;
    margin-bottom: 0.4em;
    color: var(--apple-black);
}

.section-subtitle {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 400;
    letter-spacing: .009em;
    text-align: center;
    color: var(--apple-gray);
    margin-bottom: 2.5rem;
    font-style: normal;
}

/* Premium Animations */

@keyframes appleFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Apple-style Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 22px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    border-radius: 980px;
    background: var(--apple-black);
    color: var(--apple-white);
    text-decoration: none;
    transition: var(--transition-quick);
    border: none;
}

.cta-button:hover {
    background: #333333;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    .section-subtitle {
        font-size: 19px;
    }
    footer .container {
        padding: 0 16px;
    }
    .social-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    nav .logo {
        font-size: 1rem;
    }
}