:root {
    --primary-ocean: #2E8BC0;
    --primary-sky: #87CEEB;
    --primary-aqua: #AEE2FF;
    --accent-cyan: #66E6FF;
    --deep-blue: #1B3B6F;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --section-padding: 140px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: var(--deep-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* --- Section Layout --- */
.about, .features, .gallery, .contact {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--deep-blue);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.15rem;
    color: #6a829e;
    font-weight: 400;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar.scrolled .logo {
    color: var(--deep-blue);
}

.logo:hover {
    opacity: 0.8;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.7;
}

.navbar.scrolled .nav-links a {
    color: var(--deep-blue);
}

.nav-links a:hover {
    opacity: 1;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding-left: 10%;
    background: 
        radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.25), transparent 60%),
        linear-gradient(90deg, 
            rgba(10, 25, 45, 0.82) 0%, 
            rgba(10, 25, 45, 0.65) 25%, 
            rgba(10, 25, 45, 0.40) 45%, 
            rgba(10, 25, 45, 0.15) 60%, 
            transparent 75%
        );
}

/* --- Floating Particles & Shapes --- */
.parallax-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    background: var(--primary-ocean);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(1px);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0); }
    33% { transform: translate(20px, 30px); }
    66% { transform: translate(-10px, 50px); }
    100% { transform: translate(0, 0); }
}

.floating-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-aqua) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    animation: floatShape 25s infinite alternate ease-in-out;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(90deg); }
}

/* --- Section Parallax Setup --- */
.about, .features, .gallery, .contact {
    position: relative;
    overflow: hidden;
    background: transparent !important;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to bottom, rgba(10, 25, 45, 0.12), transparent);
    z-index: 10;
    pointer-events: none;
}

.section-parallax-bg {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 160%;
    z-index: -1;
    will-change: transform;
}

.about .section-parallax-bg {
    background: #fdfdfd;
}

.features .section-parallax-bg {
    background: #ffffff;
}

.gallery .section-parallax-bg {
    background: #fafcfd;
}

.contact .section-parallax-bg {
    background: #ffffff;
}

/* Three.js Container */
#three-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: floatTitle 4s infinite alternate ease-in-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
}

@keyframes floatTitle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

.highlight {
    color: var(--accent-cyan);
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-ocean);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- About Section --- */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-ocean);
}

.glass-card i {
    font-size: 2.5rem;
    color: var(--primary-ocean);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition);
}

.glass-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--deep-blue);
}

.glass-card p {
    font-size: 1rem;
    color: #6a829e;
    line-height: 1.6;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary-ocean);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #f8fbff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: var(--primary-ocean);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary-ocean);
    color: #ffffff;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--deep-blue);
}

.feature-item p {
    color: #6a829e;
    font-size: 1rem;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 8; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 12; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease-out;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 45, 0.8), transparent 80%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        height: 350px;
    }
}

/* --- Contact Section --- */
.contact-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 15px;
    margin: 40px 0;
}

.input-group input {
    flex: 1;
    padding: 18px 25px;
    border-radius: 4px;
    border: 1px solid #e1e8f0;
    background: #ffffff;
    color: var(--deep-blue);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary-ocean);
}

.input-group button {
    padding: 18px 40px;
    border-radius: 4px;
    border: none;
    background: var(--primary-ocean);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.input-group button:hover {
    background: var(--deep-blue);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icons a {
    font-size: 1.8rem;
    color: #a0aec0;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-ocean);
    transform: translateY(-3px);
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    background: #ffffff;
    border-top: 1px solid #f0f4f8;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--deep-blue);
    letter-spacing: 1px;
}

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

.footer-links a {
    color: #6a829e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-ocean);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f4f8;
    width: 100%;
    text-align: center;
    color: #a0aec0;
    font-size: 0.85rem;
}

/* --- Responsiveness --- */
@media (max-width: 1200px) {
    .nav-container { padding: 0 40px; }
    .hero-title { font-size: 5rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .hero { padding-left: 5%; justify-content: center; text-align: center; }
    .hero-subtitle { margin: 0 auto 50px; }
    .section-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; }
    .input-group { flex-direction: column; }
    .contact-box { padding: 40px 20px; }
    .footer-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
}

