:root {
    --accent: #f0a500;
    --accent-2: #ff6b35;
    --accent-glow: rgba(240,165,0,.3);
    --dark: #111216;
    --dark-2: #18191f;
    --dark-3: #1e2028;
    --dark-4: #252730;
    --text-muted: #b0b8c8;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-2));
    --gradient-bg: linear-gradient(160deg, #111216 0%, #1a1b22 50%, #141518 100%);
    --gradient-section-alt: linear-gradient(160deg, #161720 0%, #1c1d26 50%, #18191f 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(240,165,0,.03) 0%, transparent 60%);
    width: 100%;
}

.font-heading { font-family: var(--font-heading); }
.text-accent { color: var(--accent) !important; }

/* ===== Preloader ===== */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s, visibility .6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    font-family: var(--font-heading);
    font-size: 3rem; font-weight: 700;
    letter-spacing: 6px; color: #fff;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-logo .dot {
    display: inline-block; width: 12px; height: 12px;
    background: var(--accent); border-radius: 50%;
    margin-left: 4px; vertical-align: middle;
    animation: dotBounce 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%,100% { opacity: .5; transform: scale(.98); }
    50% { opacity: 1; transform: scale(1); }
}
@keyframes dotBounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Navbar ===== */
.navbar {
    padding: 1rem 0;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    background: transparent;
    z-index: 1000;
}
.navbar.scrolled {
    background: rgba(17,18,22,.96);
    backdrop-filter: blur(14px);
    padding: .6rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,.5);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav-link {
    font-weight: 500; font-size: .85rem;
    letter-spacing: .5px; text-transform: uppercase;
    padding: .5rem 1rem !important;
    transition: color .3s;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--accent);
    transition: width .3s, left .3s;
}
.nav-link:hover::after { width: 60%; left: 20%; }
.nav-link:hover { color: var(--accent) !important; }

.btn-accent {
    background: var(--gradient-accent); color: #fff;
    font-weight: 700; border: none;
    border-radius: 50px; padding: .6rem 1.8rem;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    text-transform: uppercase; font-size: .85rem;
    letter-spacing: .5px; position: relative;
    overflow: hidden;
}
.btn-accent::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s;
}
.btn-accent:hover::before { transform: translateX(100%); }
.btn-accent:hover {
    background: var(--gradient-accent); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow), 0 4px 15px rgba(255,107,53,.2);
}

/* ===== Animated Logo ===== */
.logo-animated { display: flex; align-items: center; gap: 4px; }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem; font-weight: 700;
    letter-spacing: 3px; color: #fff;
    animation: logoGlow 3s ease-in-out infinite;
}
.logo-dot {
    width: 8px; height: 8px;
    background: var(--accent); border-radius: 50%;
    animation: logoPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent), 0 0 25px var(--accent-glow);
}
@keyframes logoGlow {
    0%,100% { text-shadow: 0 0 5px rgba(0,212,255,.1); }
    50% { text-shadow: 0 0 20px rgba(0,212,255,.4), 0 0 60px rgba(0,212,255,.1); }
}
@keyframes logoPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: .5; }
}

/* ===== Hero ===== */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: #111216;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(17,18,22,.94) 0%, rgba(17,18,22,.65) 45%, rgba(17,18,22,.15) 100%);
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0; animation: fadeSlideUp .8s .5s forwards;
}
.hero-title {
    font-size: 72px;
    font-weight: 800; line-height: 1.08;
    letter-spacing: -1px;
    opacity: 0; animation: fadeSlideUp .8s .7s forwards;
}

.hero-title .typing-text {
    text-transform: uppercase;
}

.hero-desc {
    font-size: 1.1rem; color: var(--text-muted);
    max-width: 500px;
    opacity: 0; animation: fadeSlideUp .8s .9s forwards;
}
.hero-cta {
    opacity: 0; animation: fadeSlideUp .8s 1.1s forwards;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating particles */
.hero-particles {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
    position: absolute; border-radius: 50%;
    background: var(--accent); opacity: .15;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: .15; }
    90% { opacity: .15; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ===== Section Styles ===== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800; text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* ===== Ambitious / Services ===== */
.ambitious-section {
    padding: 7rem 0;
    background: var(--gradient-section-alt);
    position: relative;
    border-top: 1px solid rgba(255,255,255,.04);
}
.ambitious-section::before {
    content: ''; position: absolute;
    top: 0; left: 50%; width: 200px; height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(240,165,0,.3), transparent);
}
.service-card {
    position: relative; border-radius: 16px;
    overflow: hidden; height: 440px;
    cursor: pointer; transition: all .5s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.06);
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.service-card-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.service-card:hover .service-card-bg { transform: scale(1.1); }
.service-card-content {
    position: relative; z-index: 2;
    padding: 2rem; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 40%, transparent 70%);
}
.service-icon {
    width: 44px; height: 44px;
    border: 2px solid var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: .5rem;
    transition: all .4s;
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.service-card:hover .service-icon {
    background: var(--gradient-accent); color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Story Section ===== */
.story-section {
    padding: 7rem 0;
    background: var(--gradient-bg);
    position: relative;
    border-top: 1px solid rgba(255,255,255,.04);
}
.story-image-wrapper {
    position: relative; border-radius: 16px;
    overflow: hidden; height: 580px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.06);
}
.story-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s;
}
.story-image-wrapper:hover img { transform: scale(1.05); }
.story-image-wrapper::after {
    content: ''; position: absolute; inset: 0;
    border: 1px solid rgba(0,212,255,.15); border-radius: 16px;
    pointer-events: none;
}
.story-text p {
    margin-bottom: .8rem; line-height: 1.7;
}

/* ===== Newsletter ===== */
.newsletter-section {
    padding: 7rem 0;
    background: var(--gradient-section-alt);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.04);
}
.newsletter-section::before {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(240,165,0,.12) 0%, transparent 70%);
    top: -200px; right: -200px;
    animation: glowFloat 8s ease-in-out infinite;
}
@keyframes glowFloat {
    0%,100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}
.newsletter-image {
    border-radius: 16px; overflow: hidden;
    height: 450px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.newsletter-image img {
    width: 100%; height: 100%; object-fit: cover;
}

/* ===== Book ===== */
.book-section {
    padding: 7rem 0;
    background: var(--gradient-bg);
    position: relative;
    border-top: 1px solid rgba(255,255,255,.04);
}
.book-image {
    position: relative; text-align: center;
    perspective: 1000px;
}
.book-image img {
    max-height: 450px; width: auto;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    transition: transform .6s;
    transform: rotateY(-5deg);
}
.book-image:hover img {
    transform: rotateY(5deg) translateY(-10px);
}

/* ===== Events ===== */
.events-section {
    padding: 7rem 0;
    background: var(--gradient-section-alt);
    border-top: 1px solid rgba(255,255,255,.04);
}
.event-image {
    border-radius: 16px; overflow: hidden;
    height: 450px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.event-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s;
}
.event-image:hover img { transform: scale(1.05); }

/* ===== Ventures ===== */
.ventures-section {
    position: relative; overflow: hidden;
    min-height: 60vh;
    border-top: 1px solid rgba(255,255,255,.04);
}
.ventures-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .5s;
}
.ventures-section:hover .ventures-bg { transform: scale(1.03); }
.ventures-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,15,26,.88) 0%, rgba(10,15,26,.5) 50%, rgba(10,15,26,.3) 100%);
}

/* ===== Speaking ===== */
.speaking-section {
    position: relative; overflow: hidden;
    min-height: 60vh;
    border-top: 1px solid rgba(255,255,255,.04);
}
.speaking-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.speaking-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,15,26,.88) 0%, rgba(10,15,26,.4) 60%, rgba(10,15,26,.2) 100%);
}

/* ===== Blog ===== */
.blog-section {
    padding: 7rem 0;
    background: var(--gradient-bg);
    border-top: 1px solid rgba(255,255,255,.04);
}
.blog-card {
    background: var(--dark-3); border-radius: 16px;
    overflow: hidden; transition: all .5s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.06);
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.blog-card-image {
    height: 220px; position: relative;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.1); }
.blog-card-image .badge {
    position: absolute; top: 1rem; right: 1rem;
    z-index: 2; font-size: .7rem;
    letter-spacing: 1px; padding: .4rem .8rem;
}
.blog-card-body {
    padding: 1.5rem;
}
.blog-card-body a {
    text-decoration: none; font-weight: 600;
    font-size: 1.05rem;
    transition: color .3s;
}
.blog-card-body a:hover { color: #fff !important; }

/* ===== Gallery ===== */
.footer-gallery { overflow: hidden; }
.gallery-item {
    height: 220px; overflow: hidden;
    position: relative; cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s, filter .5s;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(240,165,0,.0);
    transition: background .3s;
}
.gallery-item:hover::after {
    background: rgba(240,165,0,.15);
}

/* ===== Footer ===== */
.footer-main {
    background: linear-gradient(180deg, var(--dark-2), var(--dark));
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,.04);
}
.footer-brand { font-size: 2rem; letter-spacing: 3px; }
.social-link-item {
    display: flex; align-items: center; gap: 14px;
    color: #fff; cursor: pointer;
    transition: all .3s; padding: .3rem 0;
}
.social-link-item:hover {
    color: var(--accent);
    transform: translateX(5px);
}
.social-link-item i { font-size: 1.6rem; }
.social-link-item small { color: var(--text-muted); }

.footer-form .form-control {
    background: rgba(255,255,255,.9);
    border: none; border-radius: 8px;
    padding: .75rem 1rem; color: #000;
    transition: box-shadow .3s;
}
.footer-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(240,165,0,.25);
    background: #fff;
}
.footer-form .form-label {
    font-size: .85rem; font-weight: 500;
}
.footer-bottom {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,.05);
}
.footer-bottom a {
    color: #fff; text-decoration: none; font-weight: 600;
    transition: color .3s;
}
.footer-bottom a:hover { color: var(--accent); }

/* ===== Scroll Animations ===== */
[data-animate] {
    opacity: 0; transition: all .8s cubic-bezier(.4,0,.2,1);
}
[data-animate="fade-up"] { transform: translateY(50px); }
[data-animate="fade-right"] { transform: translateX(-50px); }
[data-animate="fade-left"] { transform: translateX(50px); }
[data-animate="fade-in"] { transform: scale(.95); }
[data-animate="zoom-in"] { transform: scale(.8); }
[data-animate].visible {
    opacity: 1; transform: translate(0) scale(1);
}

/* ===== Parallax effect class ===== */
.parallax-bg {
    will-change: transform;
    transition: transform .1s linear;
}

/* ===== Counter animation ===== */
.counter-number {
    font-family: var(--font-heading);
    font-size: 3rem; font-weight: 800;
    color: var(--accent);
    display: inline-block;
}

/* ===== Text reveal ===== */
.text-reveal {
    overflow: hidden;
}
.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.text-reveal.visible span { transform: translateY(0); }

/* ===== Magnetic button ===== */
.magnetic-btn {
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

/* ===== Tilt card ===== */
.tilt-card {
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    transform-style: preserve-3d;
}

/* ===== Stagger children ===== */
[data-stagger] > *:nth-child(1) { transition-delay: .1s; }
[data-stagger] > *:nth-child(2) { transition-delay: .2s; }
[data-stagger] > *:nth-child(3) { transition-delay: .3s; }
[data-stagger] > *:nth-child(4) { transition-delay: .4s; }
[data-stagger] > *:nth-child(5) { transition-delay: .5s; }

/* ===== Buttons ===== */
.btn-outline-light {
    border-radius: 50px; padding: .65rem 2rem;
    font-weight: 600; text-transform: uppercase;
    font-size: .85rem; letter-spacing: .5px;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden;
}
.btn-outline-light::before {
    content: ''; position: absolute;
    top: 50%; left: 50%; width: 0; height: 0;
    background: var(--gradient-accent); border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .5s, height .5s;
    z-index: -1;
}
.btn-outline-light:hover::before {
    width: 300px; height: 300px;
}
.btn-outline-light:hover {
    border-color: var(--accent); color: #fff;
}

/* ===== Cursor follower ===== */
.cursor-follower {
    position: fixed; width: 20px; height: 20px;
    border: 2px solid var(--accent); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transition: width .3s, height .3s, border-color .3s;
    transform: translate(-50%, -50%);
    display: none;
}
.cursor-follower.active {
    width: 50px; height: 50px;
    border-color: rgba(0,212,255,.3);
}
@media (min-width: 992px) {
    .cursor-follower { display: block; }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
    .service-card { height: 380px; }
    .story-image-wrapper { height: 400px; }
    .newsletter-image,
    .event-image { height: 350px; }
    .ventures-section,
    .speaking-section { min-height: 50vh; }
}

@media (max-width: 767px) {

    .book-image img {
    max-height: 150px; width: auto;
}
    .ambitious-section, .story-section,
    .newsletter-section, .book-section,
    .events-section, .blog-section { padding: 4rem 0; }
    .hero-section { min-height: 85vh; }
    .section-title { font-size: 1.8rem; }
    .service-card { height: 320px; }
    .story-image-wrapper { height: 350px; }
    .navbar-collapse {
        background: linear-gradient(160deg, rgba(24,25,31,.98), rgba(30,32,40,.98));
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
        margin-top: .8rem;
        backdrop-filter: blur(16px);
        border: 1px solid rgba(240,165,0,.15);
        box-shadow: 0 20px 60px rgba(0,0,0,.6);
    }
    .navbar-collapse .nav-link {
        font-size: 1rem;
        padding: .8rem 1rem !important;
        border-radius: 10px;
        transition: background .3s, color .3s;
        letter-spacing: 1px;
    }
    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        background: rgba(240,165,0,.1);
        color: var(--accent) !important;
    }
    .navbar-collapse .nav-link::after { display: none; }
    .navbar-collapse .nav-item { border-bottom: 1px solid rgba(255,255,255,.05); }
    .navbar-collapse .nav-item:last-child { border-bottom: none; }
    .navbar-collapse .btn-accent {
        width: 100%;
        text-align: center;
        margin-top: .5rem;
        padding: .8rem;
        font-size: 1rem;
    }
    .footer-brand { font-size: 1.5rem; }
    .gallery-item { height: 150px; }
    .cursor-follower { display: none !important; }
}

/* ===== Custom Hamburger ===== */
.navbar-toggler {
    border: none; padding: .5rem;
    position: relative; width: 44px; height: 44px;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    transition: background .3s;
}
.navbar-toggler:focus { box-shadow: none; outline: none; }
.navbar-toggler:hover { background: rgba(240,165,0,.15); }
.navbar-toggler-icon {
    background-image: none !important;
    position: relative; width: 22px; height: 2px;
    background: #fff; display: block;
    transition: all .3s;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: ''; position: absolute; left: 0;
    width: 100%; height: 2px; background: #fff;
    transition: all .3s;
}
.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { top: 7px; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0; transform: rotate(45deg); background: var(--accent);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0; transform: rotate(-45deg); background: var(--accent);
}

/* ===== Better text visibility ===== */
.story-text p.text-muted,
.newsletter-section .text-muted,
.book-section .text-muted,
.events-section .text-muted,
.ventures-section .text-muted,
.speaking-section .text-muted,
.blog-section .text-muted,
.blog-card-body .text-muted {
    color: #c0d0e0 !important;
}
.hero-desc { color: #ccdae8; }
.service-card-content p { color: #d0dde8; }
.blog-card-body .small.text-muted { color: #a0b8cc !important; }

@media (max-width: 575px) {
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: .95rem; }
    .logo-text { font-size: 1.2rem; }
    .counter-number { font-size: 2rem; }
}

/* ===== Overflow fix for mobile ===== */
.hero-section,
.ventures-section,
.speaking-section,
.newsletter-section,
.ambitious-section,
.story-section,
.book-section,
.events-section,
.blog-section,
.footer-gallery,
.footer-main {
    overflow: hidden;
}
