/* Google Font */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

:root{
    --bg-1:#0b1f14;
    --bg-2:#14532d;
    --bg-3:#1f6b3a;
    --bg-4:#4d6b1f;
    --text-color:#f7fbf2;
    --text-muted:#dfe9d6;
    --accent:#f5c518;
    --on-accent:#1a1a0f;
    --accent-glow:rgba(245,197,24,.45);
    --surface:rgba(255,255,255,.08);
    --surface-hover:rgba(255,255,255,.15);
    --header-bg:rgba(6,24,13,.45);
    --footer-bg:#06140c;
    --shadow:rgba(0,0,0,.4);
}

:root[data-theme="light"]{
    --bg-1:#f8f4e3;
    --bg-2:#e6f2d9;
    --bg-3:#d4e8c0;
    --bg-4:#fbf7ea;
    --text-color:#1b2e1f;
    --text-muted:#3d5243;
    --accent:#15803d;
    --on-accent:#ffffff;
    --accent-glow:rgba(21,128,61,.35);
    --surface:rgba(27,46,31,.06);
    --surface-hover:rgba(27,46,31,.1);
    --header-bg:rgba(251,247,234,.7);
    --footer-bg:#14301d;
    --shadow:rgba(27,46,31,.15);
}

html{
    scrollbar-color: var(--accent) transparent;
}

body{
    background:linear-gradient(-45deg,var(--bg-1),var(--bg-2),var(--bg-3),var(--bg-4));
    background-size:400% 400%;
    animation:gradient 12s ease infinite;
    color:var(--text-color);
    opacity:0;
    transition:opacity 1.2s ease, background .6s ease, color .6s ease;
    overflow-x:hidden;
}

body.loaded{
    opacity:1;
}

@keyframes gradient{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

/* Skip link (accessibility) */

.skip-link{
    position:absolute;
    left:-999px;
    top:0;
    background:var(--accent);
    color:var(--on-accent);
    padding:12px 20px;
    z-index:10000;
    border-radius:0 0 8px 0;
    font-weight:600;
    text-decoration:none;
}

.skip-link:focus{
    left:0;
}

/* Focus visibility */

a:focus-visible,
button:focus-visible{
    outline:3px solid var(--accent);
    outline-offset:3px;
}

/* Loading Screen */

#loading-screen{
    position:fixed;
    inset:0;
    z-index:99999;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:20px;
    background:var(--bg-1);
    color:var(--text-color);
    transition:opacity .6s ease, visibility .6s ease;
}

#loading-screen.hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.loader-spinner{
    width:60px;
    height:60px;
    border:5px solid rgba(255,255,255,.2);
    border-top-color:var(--accent);
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{transform:rotate(360deg);}
}

/* Cursor effects */

#cursor-glow{
    position:fixed;
    top:0;
    left:0;
    width:400px;
    height:400px;
    border-radius:50%;
    pointer-events:none;
    z-index:2;
    background:radial-gradient(circle, rgba(245,197,24,.16), transparent 70%);
    transform:translate(-50%,-50%);
    will-change:transform;
}

#cursor-dot,
#cursor-ring{
    position:fixed;
    top:0;
    left:0;
    pointer-events:none;
    z-index:10001;
    border-radius:50%;
    transform:translate(-50%,-50%);
    will-change:transform;
}

#cursor-dot{
    width:8px;
    height:8px;
    background:var(--accent);
}

#cursor-ring{
    width:34px;
    height:34px;
    border:2px solid var(--accent);
    transition:width .2s ease, height .2s ease, border-color .2s ease;
}

#cursor-ring.active{
    width:50px;
    height:50px;
    border-color:#fff;
}

#trail-canvas{
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:9998;
}

#sparkle-layer{
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:9999;
    overflow:hidden;
}

.sparkle{
    position:absolute;
    width:6px;
    height:6px;
    background:var(--accent);
    border-radius:50%;
    box-shadow:0 0 8px 2px var(--accent);
    animation:sparkle-fade .8s ease-out forwards;
}

@keyframes sparkle-fade{
    0%{transform:scale(1); opacity:1;}
    100%{transform:scale(0); opacity:0;}
}

/* Hide custom cursor UI on touch devices */

.touch-device #cursor-glow,
.touch-device #cursor-dot,
.touch-device #cursor-ring,
.touch-device #trail-canvas{
    display:none;
}

/* Floating background */

#floating-bg{
    position:fixed;
    inset:0;
    z-index:0;
    overflow:hidden;
    pointer-events:none;
}

.float-shape{
    position:absolute;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
    filter:blur(2px);
    animation:float 18s ease-in-out infinite;
}

.shape-1{ width:220px; height:220px; top:10%; left:8%; animation-duration:20s; }
.shape-2{ width:160px; height:160px; top:60%; left:80%; animation-duration:24s; animation-delay:-4s; }
.shape-3{ width:300px; height:300px; top:75%; left:15%; animation-duration:28s; animation-delay:-9s; }
.shape-4{ width:120px; height:120px; top:20%; left:70%; animation-duration:16s; animation-delay:-6s; }

@keyframes float{
    0%,100%{ transform:translate(0,0) scale(1); }
    50%{ transform:translate(30px,-40px) scale(1.1); }
}

/* Layer content above floating background */

header, main, footer{
    position:relative;
    z-index:1;
}

/* Navbar */

header{
    position:fixed;
    top:0;
    width:100%;
    padding:20px 80px 20px 16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    backdrop-filter:blur(15px);
    background:var(--header-bg);
    z-index:1000;
    gap:20px;
}

.logo{
    font-size:28px;
    font-weight:700;
    color:var(--text-color);
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
    white-space:nowrap;
}

.logo-img{
    height:56px;
    width:auto;
    flex-shrink:0;
}

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

nav{
    display:flex;
    align-items:center;
}

nav a{
    text-decoration:none;
    color:var(--text-color);
    white-space:nowrap;
    margin-left:26px;
    transition:.3s;
    font-size:17px;
}

nav a:hover{
    color:var(--accent);
}

.theme-toggle{
    background:var(--surface);
    border:none;
    color:var(--text-color);
    width:42px;
    height:42px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
}

.theme-toggle:hover{
    background:var(--surface-hover);
    transform:rotate(20deg);
}

.nav-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:34px;
    height:34px;
    background:none;
    border:none;
    cursor:pointer;
}

.nav-toggle span{
    display:block;
    height:3px;
    width:100%;
    background:var(--text-color);
    border-radius:3px;
    transition:.3s;
}

/* Hero */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:130px 20px 20px;
}

.hero-text{
    max-width:850px;
    background:var(--surface);
    padding:60px;
    border-radius:25px;
    backdrop-filter:blur(18px);
    box-shadow:0 20px 50px var(--shadow);
}

.hero h1{
    font-size:65px;
    line-height:80px;
}

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

.hero p{
    margin-top:20px;
    font-size:20px;
    line-height:35px;
    color:var(--text-muted);
}

/* Button */

.btn{
    display:inline-block;
    margin-top:35px;
    padding:15px 40px;
    text-decoration:none;
    background:var(--accent);
    color:var(--on-accent);
    border-radius:50px;
    font-weight:bold;
    transition:.4s;
}

.btn:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px var(--accent-glow);
}

/* Sections */

section{
    padding:100px 10%;
    opacity:0;
    transform:translateY(40px);
    transition:opacity .8s ease, transform .8s ease;
}

section.in-view{
    opacity:1;
    transform:translateY(0);
}

section h2{
    text-align:center;
    font-size:40px;
    margin-bottom:30px;
}

section p{
    text-align:center;
    font-size:18px;
    line-height:32px;
}

/* Cards */

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

.card{
    background:var(--surface);
    border-radius:20px;
    padding:35px;
    text-align:center;
    backdrop-filter:blur(15px);
    transition:.4s;
}

.card:hover{
    transform:translateY(-12px);
    background:var(--surface-hover);
}

.card h3{
    margin-bottom:20px;
    color:var(--accent);
}

/* Growth / Chart */

.chart-wrap{
    max-width:700px;
    margin:40px auto 0;
    background:var(--surface);
    border-radius:20px;
    padding:30px;
    backdrop-filter:blur(15px);
}

/* Owner */

.owner{
    text-align:center;
}

.owner h1{
    font-size:55px;
    color:var(--accent);
    margin:20px 0;
}

/* Contact */

#contact{
    text-align:center;
}

.contact-link{
    color:var(--accent);
    text-decoration:none;
}

.contact-link:hover{
    text-decoration:underline;
}

/* Footer */

footer{
    background:var(--footer-bg);
    color:#fff;
    text-align:center;
    padding:25px;
    font-size:16px;
}

/* Home & About content */

[id]{
    scroll-margin-top:110px;
}

section > p{
    max-width:850px;
    margin:0 auto 16px;
}

.eyebrow,
.hero .eyebrow{
    text-align:center;
    font-size:15px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--accent);
    margin:0 auto 10px;
}

.hero .hero-tagline{
    font-size:24px;
    line-height:36px;
    font-weight:600;
    color:var(--text-color);
}

.hero .hero-sub{
    margin-top:10px;
    font-style:italic;
    color:var(--accent);
}

.page-hero h1{
    font-size:48px;
    line-height:62px;
}

.chips{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin:30px auto 0;
    max-width:1000px;
}

.chips li{
    background:var(--surface);
    border:1px solid var(--surface-hover);
    border-radius:50px;
    padding:10px 20px;
    font-size:15px;
    backdrop-filter:blur(15px);
    transition:.3s;
}

.chips li:hover{
    background:var(--surface-hover);
    color:var(--accent);
}

.btn-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:16px;
}

.btn-outline{
    background:transparent;
    color:var(--text-color);
    border:2px solid var(--accent);
}

.link-row{
    margin-top:20px;
}

.text-link{
    color:var(--accent);
    font-weight:600;
    text-decoration:none;
}

.text-link:hover{
    text-decoration:underline;
}

.sub-heading{
    text-align:center;
    font-size:26px;
    margin:60px 0 15px;
}

.stat-card .stat-value{
    font-size:24px;
    line-height:32px;
    font-weight:700;
    color:var(--accent);
    margin-bottom:10px;
}

.highlight{
    margin-top:40px !important;
    font-weight:600;
    color:var(--accent);
}

.highlight.since{
    margin-top:0 !important;
}

.cards-compact .card{
    padding:25px;
}

.cards-compact .card h3{
    margin-bottom:0;
}

.cards-two{
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
}

.card p + p{
    margin-top:12px;
}

.accent-text{
    color:var(--accent);
    font-weight:600;
}

.quote{
    text-align:center;
    font-size:32px;
    font-weight:700;
    font-style:italic;
    color:var(--accent);
    margin:0 auto 30px;
    max-width:850px;
}

.contact-card{
    font-style:normal;
    max-width:750px;
    margin:40px auto 0;
    background:var(--surface);
    border-radius:20px;
    padding:30px;
    backdrop-filter:blur(15px);
    box-shadow:0 20px 50px var(--shadow);
}

.contact-card p{
    font-size:17px;
    line-height:30px;
    margin-bottom:10px;
}

.contact-card a{
    white-space:nowrap;
}

.contact-card p:last-child{
    margin-bottom:0;
}

.contact-card .contact-name{
    font-size:22px;
    font-weight:700;
    color:var(--accent);
    margin-bottom:16px;
}

/* Product */

.product{
    display:grid;
    grid-template-columns:minmax(0,380px) 1fr;
    gap:50px;
    align-items:center;
    max-width:1100px;
    margin:50px auto 0;
    background:var(--surface);
    border-radius:25px;
    padding:40px;
    backdrop-filter:blur(15px);
    box-shadow:0 20px 50px var(--shadow);
}

.product-image{
    background:#ffffff;
    border-radius:20px;
    padding:20px;
    display:flex;
    justify-content:center;
}

.product-image img{
    width:auto;
    max-width:100%;
    height:440px;
    object-fit:contain;
    display:block;
}

.product-info h3{
    font-size:28px;
    color:var(--accent);
    margin-bottom:20px;
}

.product-info p{
    text-align:left;
    font-size:17px;
    line-height:30px;
    margin-bottom:16px;
    color:var(--text-muted);
}

.product-specs{
    margin-top:25px;
    display:grid;
    gap:14px;
}

.product-specs div{
    background:var(--surface);
    border-left:4px solid var(--accent);
    border-radius:12px;
    padding:14px 18px;
}

.product-specs dt{
    font-weight:700;
    color:var(--accent);
    margin-bottom:4px;
}

.product-specs dd{
    font-size:16px;
    line-height:26px;
}

/* Page transition overlay */

#page-transition{
    position:fixed;
    inset:0;
    background:var(--bg-1);
    z-index:99998;
    transform:translateY(100%);
    transition:transform .5s ease;
    pointer-events:none;
}

#page-transition.active{
    transform:translateY(0);
}

/* Responsive */

@media(max-width:1024px){

.nav-toggle{
    display:flex;
}

nav{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(75vw,300px);
    background:var(--header-bg);
    backdrop-filter:blur(20px);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    padding:100px 30px;
    transform:translateX(100%);
    transition:transform .35s ease;
}

nav#primary-nav.open{
    transform:translateX(0);
}

nav a{
    margin:0 0 25px 0;
    font-size:20px;
}

}


@media(max-width:768px){

.logo{
    font-size:20px;
    white-space:normal;
    flex-shrink:1;
}

.logo-img{
    height:42px;
}


header{
    padding:16px 20px 16px 10px;
}

.hero h1{
    font-size:40px;
    line-height:55px;
}

.hero-text{
    padding:30px;
}

.chart-wrap{
    padding:16px;
}

.page-hero h1{
    font-size:32px;
    line-height:44px;
}

section h2{
    font-size:30px;
}

.quote{
    font-size:24px;
}

.cards-two{
    grid-template-columns:1fr;
}

.product{
    grid-template-columns:1fr;
    padding:20px;
    gap:30px;
}

.product-info h3{
    font-size:24px;
    text-align:center;
}

.product-image img{
    height:340px;
}

}

/* Reduced motion */

@media(prefers-reduced-motion: reduce){
    *{
        animation-duration:.001ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.001ms !important;
        scroll-behavior:auto !important;
    }
    #cursor-glow,#cursor-dot,#cursor-ring,#trail-canvas,#floating-bg,#sparkle-layer{
        display:none !important;
    }
}
