@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #0f172a;
    --secondary: #475569;
    --accent-start: #0ea5e9;
    --accent-end: #6366f1;
    --accent-grad: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    --bg-color: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 24px 50px -12px rgba(15, 23, 42, 0.08);
    --hero-overlay: rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, #ffffff 0px, transparent 50%), 
        radial-gradient(at 100% 100%, #e0e7ff 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--primary);
    line-height: 1.7;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; font-size: 16px; }

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.03em;
}
p { margin-bottom: 16px; font-size: 15px; color: var(--secondary); line-height: 1.8; }

/* Logo Design */
.logo-wrapper { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 4px 0; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);}
.logo-wrapper:hover { transform: scale(1.03); }
.logo-icon { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-brand { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; letter-spacing: 0.15em; color: var(--primary); line-height: 1; }
.logo-postfix { font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 0.3em; font-weight: 600; color: var(--secondary); margin-top: 4px; text-transform: uppercase; }

/* Navigation */
.navbar {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 1200px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: 8px;
    padding: 12px 36px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; box-shadow: var(--shadow-soft);
}
.nav-links { list-style: none; display: flex; gap: 36px; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--secondary); 
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; 
    transition: 0.3s; position: relative; padding: 4px 0; text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0%; height: 2px;
    background: var(--accent-grad); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 2px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--primary); padding: 8px; }

/* Common Structural Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.container { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; }

.btn {
    display: inline-block; padding: 18px 40px; background: var(--accent-grad); color: #fff;
    border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; font-family: 'Montserrat', sans-serif;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border: none; cursor: pointer;
    box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.6); text-transform: uppercase; letter-spacing: 1px;
}
.btn:hover { 
    transform: translateY(-4px); box-shadow: 0 16px 32px -8px rgba(99, 102, 241, 0.8); filter: brightness(1.1);
}

.text-center { text-align: center; }
.text-center .inner-card { text-align: left; }

.subtitle { 
    font-family: 'Montserrat', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 3px; 
    font-weight: 600; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    margin-bottom: 12px; display: inline-block;
}
.section-title { font-size: 46px; font-weight: 600; margin-bottom: 24px;}

/* Background Sections */
.hero-section {
    padding: 240px 24px 120px; min-height: 80vh; display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center; background-attachment: fixed; position: relative;
    margin: 0; box-shadow: var(--shadow-soft); overflow: hidden;
}
.hero-section::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.7); z-index: 1;
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 900px; text-align: center; margin: 0 auto; }
.hero-content .section-title { color: #ffffff; }
.hero-content p { color: rgba(255, 255, 255, 0.95); }

.bg-section {
    padding: 120px 32px; min-height: 85vh; display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center; background-attachment: fixed; position: relative;
    margin: 32px 24px; border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden;
}
.bg-section:first-of-type { margin-top: 130px; }
.bg-section::before {
    content: ""; position: absolute; inset: 0;
    background: var(--hero-overlay); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1;
}
.section-content { position: relative; z-index: 2; width: 100%; display: flex; justify-content: center; }

/* Solid Sections (No Hero) */
.solid-section {
    padding: 120px 32px; display: flex; align-items: center; justify-content: center;
    position: relative; margin: 32px 24px; border-radius: 16px; 
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

/* Image Grids */
.image-grid {
    display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.image-grid img {
    width: 100%; height: 250px; object-fit: cover; border-radius: 8px;
    box-shadow: var(--shadow-soft); transition: transform 0.4s;
}
.image-grid img:hover {
    transform: scale(1.05); z-index: 10; position: relative;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border); border-radius: 16px; padding: 64px 56px;
    max-width: 1000px; margin: 0 auto; width: 100%; box-shadow: var(--shadow-soft);
}
.full-width { max-width: 100%; }
.inner-card {
    background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 12px; padding: 40px; border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); height: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: center;
}
.inner-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 48px -12px rgba(14, 165, 233, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}
.inner-card h3 { font-size: 22px; color: var(--primary); margin-bottom: 12px; }

/* Grids */
.grid { display: grid; gap: 32px; margin-top: 40px;}
@media (min-width: 800px) {
    .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

/* Floating Images */
.floating-img { 
    width: 100%; border-radius: 12px; object-fit: cover; 
    box-shadow: var(--shadow-soft); border: 6px solid #fff;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-img:hover { transform: scale(1.03) rotate(-1deg); }

/* Forms */
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.form-control { 
    padding: 18px 24px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08); 
    background: rgba(255,255,255,0.7); font-size: 15px; font-family: inherit; width: 100%; 
    transition: all 0.3s;
}
.form-control:focus { outline: none; border-color: var(--accent-start); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15); background: #fff; }
#formSuccess { display: none; color: #047857; font-size: 15px; font-weight: 600; margin-top: 24px; padding: 24px; background: #d1fae5; border-radius: 8px; border: 1px solid #10b981; }

footer { 
    margin: 24px; padding: 64px 24px; 
    background: var(--glass-bg); backdrop-filter: blur(24px); border-radius: 16px;
    color: var(--primary); text-align: center; border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}
footer h2 { font-size: 28px; margin-bottom: 12px; letter-spacing: 1px;}
footer a { color: var(--primary); text-decoration: none; }
footer p { font-size: 14px; color: var(--secondary); margin-bottom: 8px;}

@media (max-width: 800px) {
    .navbar { 
        position: fixed; top: 0; left: 0; width: 100%; border-radius: 0; 
        border-left: none; border-right: none; border-top: none; 
        flex-direction: row; justify-content: space-between; align-items: center; 
        padding: 16px 24px; background: rgba(255,255,255,0.95); transform: none;
    }
    .hamburger { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column; padding: 24px; gap: 24px;
        border-bottom: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
    }
    .nav-links.active { display: flex; }
    .bg-section { padding: 60px 20px; margin: 0; border-radius: 0; min-height: auto;}
    .bg-section:first-of-type { margin-top: 0; }
    .glass-card { padding: 40px 24px; border-radius: 12px; }
    .section-title { font-size: 32px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 24px;}
    footer { margin: 0; border-radius: 0; }
}
