/* Custom Fonts */
:root {
    /* 🎨 COLOR & THEME CHANGES (Minimalist Deep-Tech) */
    --color-bg-dark: #050508;  
    --color-bg-card: rgba(255, 255, 255, 0.03);  
    --color-surface-1: #0B0C14;  
    --color-surface-2: #11131C;  
    
    /* Text */
    --color-text-light: #E5E7EB;   
    --color-text-muted: #9CA3AF;   

    /* Accents (Slightly brighter accents for particle visibility) */
    --color-logo-start: #FF8D66; 
    --color-logo-middle: #D03EFF; 
    --color-logo-end: #35C4B8; 
    
    --color-accent-primary: #B266FF;   /* Softer, visible purple */
    --color-accent-secondary: #35C4B8; /* Soft teal */
    --color-accent-tertiary: #FF70A6;  /* New: Pink/Warm tone for About pillars */
    
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif; 

    /* Spacing */
    --spacing-lg: 100px;
    --spacing-md: 60px;
    --spacing-sm: 30px;
}

/* Global Reset and Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    text-align: center;
}

h1 { font-weight: 700; letter-spacing: -0.5px; }
h2 { 
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 600; 
    letter-spacing: -0.25px; 
    text-shadow: none; 
}
h3 { font-weight: 600; }

.section-heading {
    padding-top: 5px;
}

/* NEW: Neon Section Titles */
.neon-title {
    /* Use the same gradient as the Hero text */
    background: linear-gradient(90deg, var(--color-logo-start) 0%, var(--color-logo-middle) 50%, var(--color-logo-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -1px;
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 2px;
    margin-top: 5px;
    color: var(--color-accent-primary);
}

/* HERO SECTION: Text */
.neon-text {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-logo-start) 0%, var(--color-logo-middle) 50%, var(--color-logo-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.tagline {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-top: auto;
    letter-spacing: 0.5px;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* General Card Style */
.glassmorphism-card {
    background-color: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45); 
    padding: var(--spacing-md);
}

/* --- CTA Buttons (MODIFIED FOR GRADIENT) --- */
.cta-button { 
    /* MODIFIED: Use Logo Gradient for Background */
    background: linear-gradient(90deg, var(--color-logo-start) 0%, var(--color-logo-middle) 50%, var(--color-logo-end) 100%);
    border: none;
    color: white;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease; /* Change opacity to filter */
    letter-spacing: 1px;
    box-shadow: none;
    margin-top: var(--spacing-sm);
}

.cta-button:hover {
    transform: translateY(-2px);
    /* MODIFIED: Darken the gradient on hover */
    filter: brightness(0.7); 
    opacity: 1; /* Remove unnecessary opacity */
}

/* Product Card CTA Button Style (Centered, Hero-like) (MODIFIED FOR GRADIENT) */
.product-cta-button {
    /* MODIFIED: Use Logo Gradient for Background */
    background: linear-gradient(90deg, var(--color-logo-start) 0%, var(--color-logo-middle) 50%, var(--color-logo-end) 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease; /* Change opacity to filter */
    letter-spacing: 1px;
    box-shadow: none;
    margin-top: 15px;
    display: block; 
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.product-cta-button:hover {
    transform: translateY(-2px);
    /* MODIFIED: Darken the gradient on hover */
    filter: brightness(0.7);
    opacity: 1; /* Remove unnecessary opacity */
}

/* --- SITE HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent; 
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    opacity: 0; 
    pointer-events: none;
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.site-header.scrolled {
    background-color: rgba(5, 5, 10, 0.85); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.4); 
    backdrop-filter: blur(12px);
    padding: 5px 5%;
    opacity: 1; 
    pointer-events: auto;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* Navigation Styling */
.main-nav {
    display: flex;
    gap: 25px;
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.site-header.scrolled .main-nav {
    opacity: 1; 
}

.main-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-secondary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

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

/* --- 1. HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg-dark);
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    transition: transform 0.1s linear; 
}

.hero-logo-large {
    width: 70%; 
    max-width: 400px; 
    height: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}

/* --- CONTENT SECTIONS --- */
.content-section, footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

.content-section {
    padding: var(--spacing-lg) 10%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Glowing Card (Products & Technology) --- */
.glowing-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
}

.glowing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 0 15px rgba(164, 75, 255, 0.2), 
                0 4px 12px rgba(0, 0, 0, 0.6);
    padding: var(--spacing-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glowing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(164, 75, 255, 0.4),
                0 8px 20px rgba(0, 0, 0, 0.7);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-accent-secondary);
    text-align: center;
}

.card-body {
    flex-grow: 1; 
}

.glowing-card h3 {
    text-align: center; 
    margin-bottom: 10px;
}

.card-body p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- ABOUT KAMPILATION LABS SECTION (Pillars) --- */
.pillar-container {
    background: var(--color-surface-2);
    border-radius: 12px;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
}

.pillar-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(53, 196, 184, 0.05), transparent 70%);
    filter: blur(50px);
    z-index: 1;
}

.pillars-grid {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.gradient-pillar {
    padding: 20px 0;
    margin-bottom: 10px;
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1); 
    transition: border-left-color 0.3s ease;
}

.gradient-pillar:hover {
    border-left-color: var(--color-accent-tertiary); /* Hover color change */
}

.pillar-content {
    padding-left: 20px;
}

/* Updated Pillar Subtitle Color */
.pillar-title {
    font-weight: 700;
    color: var(--color-accent-primary); /* Changed to primary purple accent */
    display: block;
    margin-bottom: 5px;
}

/* --- TECHNOLOGY SECTION --- */
.tech-description {
    max-width: 800px;
    margin: 0 auto var(--spacing-sm);
    text-align: center;
    color: var(--color-text-light);
}

/* --- PARTNERS & TEAM SECTION LAYOUT --- */
.partners-grid {
    margin-top: var(--spacing-md);
}

.single-line-grid {
    display: flex;
    flex-wrap: nowrap; /* Force no wrapping on desktop */
    justify-content: center;
    gap: 10px; /* Reduced gap */
    margin: 0 auto;
    overflow-x: auto; /* Allow horizontal scrolling if necessary */
    padding-top: 20px;
    padding-bottom: 10px;
}

/* --- HORIZONTAL CARD STYLING (Minimalist Deep-Tech) --- */
.horizontal-card {
    /* Layout */
    display: flex;
    align-items: center; 
    text-align: left;
    
    /* Dimensions & Spacing */
    width: 300px; 
    max-width: 100%;
    padding: 12px 16px; 
    
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 0 15px rgba(164, 75, 255, 0.2), 
                0 4px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horizontal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(164, 75, 255, 0.4),
                0 8px 20px rgba(0, 0, 0, 0.7);
}

/* Left Side: Avatar/Logo Wrapper */
.card-avatar-wrapper {
    flex-shrink: 0;
    margin-right: 15px; 
}

/* Right Side: Text Content */
.card-text-content {
    flex-grow: 1;
    min-width: 0; /* Prevents text overflow issues */
}

/* Typography inside Horizontal Card */
.horizontal-card h3 {
    text-align: left;
    margin: 0 0 2px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent-primary); 
    line-height: 1.2;
}

.horizontal-card .team-role {
    text-align: left;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.horizontal-card .partner-label {
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 0;
}

/* Partner Logo (Mini Version for Card) */
.partner-logo-mini {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px; /* Slightly rounded logos */
    background-color: white; /* Ensure logo visibility on dark bg */
    border-radius: 50%; /* Rounded Logo */
    padding: 2px;
}

/* Profile Initials (Circle Avatar) */
.profile-initials {
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #7C3AED 0%, #6EE7B7 100%); 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; 
    font-weight: 700;
    color: var(--color-bg-dark); 
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4); 
}

.profile-initials.partner-initials {
    background: linear-gradient(135deg, var(--color-logo-start), var(--color-logo-end));
    box-shadow: 0 0 8px rgba(255, 141, 102, 0.4); 
}

/* --- TEAM & ADVISORS SECTION STYLING (REDUCED WHITESPACE) --- */
.team-section, .advisors-section {
    /* FIX: Reduced margin from var(--spacing-lg) to a fixed 30px */
    margin-top: 30px; 
    text-align: center;
}

.subsection-intro {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 5px auto 5px;
    max-width: 800px;
    text-align: center;
}

/* --- CONTACT / GET IN TOUCH SECTION --- */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-md);
}

.contact-info {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    color: var(--color-text-light);
    margin: 10px 0;
}

.contact-info a {
    color: var(--color-text-muted); /* Softer color for email link */
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: var(--color-accent-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    background-color: var(--color-surface-1); 
    border: 1px solid var(--color-text-muted);
    border-radius: 6px;
    color: var(--color-text-light);
    font-size: 1rem;
}

/* --- FOOTER (MODIFIED) --- */
footer {
    background-color: var(--color-surface-2); 
    padding: var(--spacing-md) 10%;
    text-align: center;
    color: var(--color-text-light);
    /* Ensure opacity transition for the footer itself is included for scroll animation */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Base style for the circular icon container */
.social-links a.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    /* Base background is black/dark surface for contrast */
    background-color: var(--color-surface-2); 
    border: 1px solid var(--color-text-muted); /* Added subtle border */
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease; /* Transition for border, background, and transform */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Style for the logo image inside the container */
.social-logo {
    width: 20px; /* Adjust size of the logo image */
    height: 20px;
    object-fit: contain;
    filter: invert(100%); /* Ensure white logos are used if needed, though inputs are already black/white */
}

/* Hover effect: Apply Gradient and Lift */
.social-links a.social-icon:hover {
    /* Use the logo gradient background */
    background: linear-gradient(135deg, var(--color-logo-start), var(--color-logo-middle), var(--color-logo-end));
    /* Remove border on hover for clean look */
    border-color: transparent; 
    /* Subtle lift and increased shadow */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(178, 102, 255, 0.5); /* Stronger glow */
}

.copyright {
    margin-top: 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    /* Allow single line grids to wrap naturally */
    .single-line-grid {
        flex-wrap: wrap;
    }
    .partner-item, .compact-card {
        width: 45%; /* Adjust width to fit 2-3 columns on tablets */
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .neon-text {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero-logo-large {
        max-width: 300px;
    }
    .content-section { 
        padding: var(--spacing-md) 24px;
    }
    .glowing-card-grid {
        gap: 20px;
        padding: 0;
    }
    .pillar-container {
        padding: var(--spacing-sm) 20px;
    }
    
    /* Mobile Layout for Partners/Team/Advisors */
    .partner-item, .compact-card {
        width: 100%; /* Stack items on mobile */
        max-width: 350px;
        margin: 10px auto;
    }
    
    /* Mobile Nav Fix */
    .main-nav {
        display: none;
    }
    .site-header.scrolled {
        justify-content: center;
    }
}