/* =========================================
   Croc & Plover Concept - CSS Variables & Reset
   ========================================= */
   :root {
    /* Brand Colors derived from logo */
    --clr-orange: #ff5e00;
    --clr-red: #ef2300;
    --clr-yellow-acc: #ff9100;
    
    /* Neutral & Background Colors */
    --clr-dark: #121212;
    --clr-darker: #0a0a0a;
    --clr-dark-card: #1e1e1e;
    --clr-light: #ffffff;
    --clr-gray: #a0a0a0;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    
    /* Dimensions */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(255, 94, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-darker);
    color: var(--clr-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.accent-text {
    background: linear-gradient(135deg, var(--clr-orange), var(--clr-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--clr-gray);
    max-width: 600px;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--clr-orange), var(--clr-red));
    margin-bottom: 20px;
    border-radius: 2px;
}

.center-div {
    margin: 0 auto 20px auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-orange), var(--clr-red));
    color: var(--clr-light);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(255, 94, 0, 0.5);
}

.fluid-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================================
   Header / Navbar (Glassmorphism)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    /* Initial state transparent */
    background: transparent;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-orange);
    transition: var(--transition);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--clr-light);
    transition: var(--transition);
    border-radius: 3px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.webgl-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
    z-index: 2;
    pointer-events: none; /* Let mouse interact with webgl canvas directly */
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    pointer-events: none; /* Let the mouse events drill down to window for canvas tracking */
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #e0e0e0;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
}

.hero-actions {
    margin-top: 30px;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    pointer-events: auto; /* Buttons need to be clickable */
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(20px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--clr-light);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--clr-light);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}


/* =========================================
   Identity Section
   ========================================= */
.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.logo-presentation {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.identity-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--clr-light);
}

.identity-text p {
    color: var(--clr-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.color-palette {
    display: flex;
    gap: 15px;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* =========================================
   About / Vision Section (New)
   ========================================= */
.floating-icon {
    font-size: 4rem;
    color: var(--clr-red);
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); text-shadow: var(--shadow-neon); }
    100% { transform: translateY(0px) scale(1); }
}

.gradient-icon {
    background: linear-gradient(135deg, var(--clr-orange), var(--clr-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.icon-xl { font-size: 4rem; }
.icon-large { font-size: 3rem; margin-bottom: 20px; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 94, 0, 0.2);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--clr-light);
}

.about-card p {
    color: var(--clr-gray);
    font-size: 1rem;
}

/* =========================================
   Services / Expertise Section (New)
   ========================================= */
.services {
    background-color: var(--clr-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--clr-dark-card);
    padding: 35px 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--clr-orange);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--clr-red);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--clr-gray);
    font-size: 0.95rem;
}

/* =========================================
   Showcase Applications
   ========================================= */
.applications {
    background-color: var(--clr-dark);
}

/* Grid is now part of applications, not a sibling section */
.applications .container > .showcase-grid {
    margin-top: 40px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-hover {
    background: var(--clr-dark-card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-neon);
    border-color: rgba(255, 94, 0, 0.3);
}

.img-wrapper {
    overflow: hidden;
    height: 250px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.showcase-info {
    padding: 25px;
}

.showcase-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--clr-light);
}

.showcase-info p {
    color: var(--clr-gray);
    font-size: 0.95rem;
}

/* =========================================
   Gallery (Masonry Logic via CSS Columns)
   ========================================= */
.gallery {
    background: var(--clr-darker);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.masonry-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(255,94,0,0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.masonry-item:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: var(--shadow-neon);
}

.masonry-item:hover::after {
    opacity: 1;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Contact / Call To Action Section
   ========================================= */
.contact {
    background: var(--clr-dark);
}

.contact-card {
    background: var(--clr-dark-card);
    border-radius: 20px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(239, 35, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.contact-content, .contact-info {
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-desc {
    color: var(--clr-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--clr-light);
    margin: 10px 0 5px;
}

.info-item p {
    color: var(--clr-gray);
    font-size: 0.95rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--clr-dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo {
    max-width: 200px;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--clr-gray);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--clr-orange);
}

.footer-copy {
    color: #666;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* =========================================
   Animations & Interactivity
   ========================================= */
.stagger-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.stagger-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 992px) {
    .identity-grid, .contact-card {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 40px 30px;
        gap: 40px;
    }

    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        font-size: 1.5rem;
    }

    .masonry-grid {
        column-count: 1;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}
