/* =========================================
   VARIABLES & THEMING
   ========================================= */
:root {
    /* Colors - Black & White Theme */
    --bg-dark: #000000;
    --bg-surface: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #999999;
    
    --accent-primary: #ffffff; /* White */
    --accent-secondary: #cccccc; /* Light Gray */
    --accent-tertiary: #888888; /* Dark Gray */
    
    /* Gradients */
    --gradient-glow: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    --gradient-text: linear-gradient(to right, #ffffff, #888888);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing Scale (8px base) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-12: 6rem;    /* 96px */
    --space-16: 8rem;    /* 128px */
    --section-pad: 20px;
    --container-max: 1200px;
    --container-px: var(--space-4);
}

/* =========================================
   GLOBAL RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-size: 30px;
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* full-width, fluid variant */
.container-fluid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--container-px);
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--space-1);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--gradient-glow);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-3) var(--space-6);
    font-size: 1.125rem;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--glass-border);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-text);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--space-16) + 80px); /* CHANGE THIS LINE - adds space for fixed navbar */
    padding-bottom: var(--space-12);
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.aurora {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(150, 150, 150, 0.08) 0, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(200, 200, 200, 0.1) 0, transparent 50%);
    filter: blur(60px);
    animation: aurora-flow 25s infinite linear;
    opacity: 0.8;
}

@keyframes aurora-flow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Subtle Particles for background */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 50px;
}

/* =========================================
   ABOUT & SERVICES
   ========================================= */
.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto var(--space-12);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-2);
}

.section-desc {
    font-size: 1.125rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.about-card {
    padding: var(--space-6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px -10px rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.service-item {
    position: relative;
    border-radius: 1.5rem;
    background: var(--glass-border);
    padding: 1px;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: var(--y, 0);
    left: var(--x, 0);
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.service-item:hover::before {
    opacity: 1;
}

.service-content {
    padding: var(--space-8) var(--space-6);
    height: 100%;
    transition: all 0.4s ease;
    cursor: crosshair;
    background: var(--bg-surface);
    border-radius: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-content:hover {
    background: rgba(25, 25, 25, 0.9);
    transform: scale(1.02);
}

.service-content h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats {
    padding: var(--space-16) 0;
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--space-8) var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-8);
}

.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: var(--gradient-glow);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.border-glow:hover::before {
    opacity: 0.3;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: var(--glass-border);
}

/* =========================================
   AI TOOLS / LOGO CAROUSEL SECTION
   ========================================= */

/* section styling for clarity */
.tools {
    padding: var(--space-12) 0;
    background: rgba(255,255,255,0.03);
}

.tools .section-header {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.tools-carousel-wrapper {
    padding: var(--space-8) 0;
    background: transparent;
}

/* carousel wrapper will hold track and navigation */
.tools-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    /* soften edges and elevate */
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    background: transparent; /* no background for marquee */
}

/* keep the actual glass panel centered and constrained */
.tools-carousel-wrapper .tools-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.tools-carousel {
    overflow: hidden;
    background: transparent; /* remove glass look */
    box-shadow: none;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    /* continuous marquee animation */
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* faster marquee */
.carousel-track {
    animation-duration: 10s; /* reduced from 25s */
}

/* show three logos simultaneously */
.carousel-item {
    flex: 0 0 33.3333%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-6);
}

/* ensure track is wide enough to hold all items */
.tools-carousel .carousel-track {
    width: calc( (100% / 3) * 6 ); /* 6 items total */
}
.tool-logo {
    height: 60px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* logo color adjustments for dark background */
.anthropic-logo, .meta-logo, .gh-logo {
    filter: invert(1) brightness(200%);
}

/* ensure logos stay crisp and centered */
.carousel-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--text-primary);
}
/* hide manual controls for marquee effect */
.carousel-btn,
.carousel-dots {
    display: none !important;
}

/* pagination dots */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
}
.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}
.carousel-dot.active {
    background: var(--text-primary);
}
/* legacy grid styles are no longer used but kept for reference
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
*/

/* =========================================
   CONTACT & FOOTER
   ========================================= */
.contact-container {
    max-width: 900px;
}

.contact-info {
    padding: var(--space-12) var(--space-8);
    text-align: center;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: var(--space-2);
}

.contact-info > p {
    margin-bottom: var(--space-8);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    text-align: left;
    max-width: 450px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.75rem;
    background: var(--glass-bg);
    padding: var(--space-3);
    border-radius: var(--space-3);
    border: 1px solid var(--glass-border);
}

.contact-item h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-1);
}

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

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

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: var(--space-12) 0 var(--space-6);
    background: var(--bg-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.footer-logo-text {
    line-height: 1;
    margin-bottom: var(--space-2);
}

.footer-logo-text .kalo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900; /* Extra bold */
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 0.9;
}

.footer-logo-text .tech {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.23em; /* Wider spacing for TECH STUDIO */
    color: var(--text-primary);
    display: block;
    margin-top: 0.1rem;
}

.footer-brand p {
    margin-top: var(--space-1);
    opacity: 0.8;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-weight: 500;
}

.social-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
    color: #666;
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   CURSOR SPOTLIGHT
   ========================================= */
.cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: var(--space-8);
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        color: white;
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }

    .stat-divider {
        display: none;
    }

    .stats-wrapper {
        flex-direction: column;
        gap: var(--space-6);
        padding: var(--space-6) var(--space-4);
    }

    /* carousel adjustments for mobile */
    .carousel-item {
        flex: 0 0 50%;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    
    .contact-info {
        padding: var(--space-6) var(--space-4);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-logo-text .kalo {
        font-size: 2.5rem;
    }

    .footer-logo-text .tech {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }
}
.logo-img {
    height: 100px;        /* adjust height as needed */
    width: auto;
    object-fit: contain;
}
/* Fix button overlap during scroll */
.hero-actions {
    position: relative;
    z-index: 2;
}

.btn {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    /* Your existing mobile styles... */
    
    /* Add this to decrease hero title font size */
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 3rem); /* Changed from clamp(3rem, 8vw, 5.5rem) to smaller size */
    }
    
    /* Optional: Also decrease subtitle font size for better consistency */
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Optional: Reduce badge text size */
    .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }
}
@media (max-width: 768px) {
    /* Your existing styles... */
    
    /* Add these new rules for contact section */
    .contact-info h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Reduced from 3rem */
        line-height: 1.2;
        word-break: break-word; /* Ensures text wraps properly */
    }
    
    .contact-info {
        padding: var(--space-4) var(--space-3); /* Reduced padding for mobile */
    }
    
    .contact-info > p {
        font-size: 0.95rem;
        margin-bottom: var(--space-6);
    }
    
    .contact-details {
        gap: var(--space-4);
        max-width: 100%;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-item .icon {
        margin-bottom: var(--space-2);
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .contact-item p, 
    .contact-item a {
        font-size: 0.9rem;
        word-break: break-word;
    }
}
@media (max-width: 768px) {
    /* Your existing styles... */
    
    /* About section mobile fixes */
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.2;
        word-break: break-word;
    }
    
    .section-desc {
        font-size: 0.95rem;
        line-height: 1.5;
        word-break: break-word;
    }
    
    .section-header {
        margin-bottom: var(--space-6);
        padding: 0 var(--space-2);
    }
    
    .about-card {
        padding: var(--space-4);
        text-align: center;
    }
    
    .about-card h3 {
        font-size: 1.3rem;
    }
    
    .about-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .about-grid {
        gap: var(--space-4);
        padding: 0 var(--space-2);
    }
}
.logo-text h2 {
    font-family: 'KaloFont', sans-serif;
}
@font-face {
    font-family: 'KaloFont';
    src: url('assets/font-style/Kalo_new_font-Regular.ttf') format('truetype');
}
.logo-text h2 {
    font-family: 'KaloFont', sans-serif;
}
.logo-text h2 {
    font-family: 'KaloFont', sans-serif;
    letter-spacing: 0.05em; /* increase or decrease this value */
}