/* 
   Core Variables & Setup 
*/
:root {
    --primary-color: #0d1b2a;
    --accent-color: #0077b6;
    --accent-glow: rgba(0, 119, 182, 0.4);
    --bg-light: #f8f9fa;
    --text-main: #1b263b;
    --text-muted: #415a77;
    --white: #ffffff;
    
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 30px 60px rgba(0, 119, 182, 0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

body {
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* 
   Typography 
*/
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

/* 
   Buttons 
*/
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #0096c7);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 119, 182, 0.6);
}

.btn-text {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-text:hover {
    gap: 5px;
    color: #0096c7;
}

/* 
   Header / Navigation 
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* 
   Hero Section 
*/
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--bg-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 65%);
    z-index: -1;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 1;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 2rem 0;
    text-align: left;
}

.hero-visual {
    flex: 1;
    max-width: 500px;
    position: relative;
    aspect-ratio: 4 / 3;
}

.hero-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 119, 182, 0.15);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #0077b6;
    overflow: hidden;
}

.hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: inherit;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--text-main);
}

/* 
   About Section 
*/
.about {
    padding: 8rem 0;
    background-color: transparent;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.15rem;
}

/* 
   Products Section 
*/
.products {
    padding: 8rem 0;
    background-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    transition: var(--transition);
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* 
   Contact Section 
*/
.contact {
    padding: 6rem 0 8rem;
    background-color: transparent;
}

.contact-card {
    background: var(--primary-color);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,119,182,0.2) 0%, transparent 60%);
    z-index: 0;
}

.contact-card h2, .contact-card p, .contact-form {
    position: relative;
    z-index: 1;
}

.contact-card h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.contact-form .btn-primary {
    background: var(--accent-color);
    box-shadow: none;
}

.contact-form .btn-primary:hover {
    background: #0096c7;
}

/* 
   Footer 
*/
.footer {
    background: var(--bg-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* 
   Animations & Utilities 
*/
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 
   Responsive Design 
*/
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-content {
        margin: 0 auto;
        text-align: center;
        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(5px);
        border-radius: 20px;
    }
    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 100%);
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .contact-form {
        flex-direction: column;
    }
    .contact-card {
        padding: 3rem 1.5rem;
    }
    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-content {
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }
    .hero-visual {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* 
   Product Detail Pages 
*/
.product-detail-hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    background-color: transparent;
    text-align: center;
}

.product-detail-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.product-detail-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.product-detail-content {
    padding: 6rem 0;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.product-detail-image {
    flex: 1;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-detail-text {
    flex: 1;
}

.product-detail-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-detail-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.product-features-list {
    list-style: none;
    margin-top: 2rem;
}

.product-features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.product-features-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .product-detail-content {
        flex-direction: column;
        gap: 2rem;
    }
}
