/*
Theme Name: Creative Clique Elite
Theme URI: https://creativeclique.agency
Description: A high-performance, 3D glassmorphic theme for elite digital agencies.
Author: AntiGravity
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: creative-clique
*/

:root {
    /* Colors */
    --bg-color: #000a12;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --secondary: #a855f7;
    --accent: #2dd4bf;
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(10, 25, 41, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
    * { cursor: auto; }
    .cursor-blob { display: none; }
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.5;
}

main {
    position: relative;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 10, 18, 0.85) 8%, rgba(0, 10, 18, 0.92) 100%);
    z-index: 1;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--secondary));
    z-index: 2000;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: width 0.1s ease-out;
}

/* Custom Cursor */
.cursor-blob {
    width: 350px;
    height: 350px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.cursor-blob::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0.1%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    opacity: 0.6;
}

.cursor-img {
    width: 32px;
    height: 32px;
    opacity: 1;
    object-fit: contain;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
    transition: transform 0.2s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 120px 0;
}

/* Buttons */
.btn {
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-pill {
    padding: 10px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.btn-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
}

.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.2),
        inset 0 0 20px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.8s;
}

.glass:hover::before {
    left: 150%;
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    transform: translateY(-5px);
}


/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 100;
}

.hamburger { display: none; }
.mobile-menu { display: none; }

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 6px 6px 24px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: white;
}

/* Nav specific for Work */
.nav-links a[href="#work"] {
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 180px;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, transparent, var(--bg-color) 80%);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Added for compatibility */
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 80px;
}

.tag-small {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    text-align: left;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.specialty-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

.card-icon {
    position: relative;
    width: 100%;
    height: 180px; /* Increased height for premium visuals */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the box beautifully */
    filter: none; /* Removed inversion */
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: blur(20px);
    z-index: -1;
}

.icon-glow.purple { background: var(--secondary); }
.icon-glow.teal { background: var(--accent); }
.icon-glow.blue { background: var(--primary); }

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Services Section Redesign */

.services-grid-redesign {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card-modern {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.card-top {
    flex-shrink: 0;
    margin-bottom: 0px; /* Removed bottom margin for horizontal flow */
}

.icon-box-modern {
    position: relative;
    width: 140px;
    height: 140px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform; /* Performance for parallax */
}

.service-card-info {
    flex: 1;
}

.icon-box-modern img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain for 3D icons */
    display: block;
    opacity: 0.9;
    transition: var(--transition-smooth);
    animation: float-icon 4s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.service-card-modern:hover .icon-box-modern img {
    transform: scale(1.1) translateY(-12px);
    opacity: 1;
}

.icon-box-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0.3; /* Soft glow behind icon */
}

.service-card-modern h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem; /* Slightly larger for the new layout */
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

/* Process Section */
.process.section {
    padding: 120px 0; /* Consistent with other sections */
    background: radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.05), transparent 40%);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px; /* Increased margin */
}

.nav-mini {
    display: flex;
    gap: 20px;
    align-items: center; /* Ensures vertical alignment */
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-mini {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: white;
}

.timeline-centered {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px 0;
}

.timeline-centered::before {
    content: '';
    position: absolute;
    left: 50%; /* Center the line */
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--border) 10%, 
        var(--border) 90%, 
        transparent);
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-item-alt {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: -84px;
}

.timeline-item-alt::after {
    content: attr(data-step);
    position: absolute;
    left: 50%; /* Center the bubbles */
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.timeline-item-alt.left {
    flex-direction: row;
}

.timeline-item-alt.right {
    flex-direction: row-reverse;
}

.timeline-item-alt {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px; /* Reduced padding for a tighter flow */
}

.timeline-visual {
    width: 42%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform; /* Performance for parallax */
}

.timeline-visual img {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: var(--transition-smooth);
    animation: float-icon 6s ease-in-out infinite; /* Reusing float-icon */
}

/* Offset Floating Animations */
.timeline-item-alt:nth-child(1) .timeline-visual img {
    animation: float-pro 7s ease-in-out infinite;
}

.timeline-item-alt:nth-child(2) .timeline-visual img {
    animation: float-pro 9s ease-in-out infinite;
    animation-delay: -2s;
}

.timeline-item-alt:nth-child(3) .timeline-visual img {
    animation: float-pro 8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes float-pro {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(-5px) rotate(-1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.timeline-item-alt:hover .timeline-visual img {
    transform: translateY(-10px) scale(1.05);
}

.timeline-content-alt {
    width: 42%;
    padding: 40px;
}

/* Reusing timeline-content styles but adjusting for centered layout */
.timeline-item-alt.left .timeline-content {
    text-align: right;
    width: 42%;
}

.timeline-item-alt.right .timeline-content {
    text-align: left;
    width: 42%;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: white;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mobile timeline adjustments handled in main 768px block below */

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.project-img {
    width: 100%;
    height: 100%;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 10, 18, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(0px);
}

.project-card:hover .project-overlay {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(12px);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.1s;
}

.project-card:hover .project-category {
    transform: translateY(0);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.2s;
}

.project-card:hover .project-info h3 {
    transform: translateY(0);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 90%;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.3s;
}

.project-card:hover .project-info p {
    transform: translateY(0);
}

.project-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary);
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.4s;
}

/* Concept Card Styling */
.concept-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    display: flex;
    align-items: center;
    justify-content: center;
}

.concept-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
}

.concept-label {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    opacity: 0.05;
    color: white;
    user-select: none;
}

/* Mobile adjust for work */
@media (max-width: 1200px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile work grid handled in main 768px block below */

/* Contact Section Redesign */
.contact-grid-redesign {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
}

/* All tags now follow the global .tag-small and .section-header standards */

.tag-small:not(.left-align) {
    text-align: left;
    margin-bottom: 20px;
}


.team-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.member-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.member-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-form-redesign {
    padding: 40px;
}

.modern-form .form-group {
    margin-bottom: 30px;
}

.modern-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.modern-form input, 
.modern-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    color: white;
    outline: none;
    transition: var(--transition-smooth);
}

.modern-form input:focus, 
.modern-form textarea:focus {
    border-color: var(--primary);
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: 60px 30px;
    animation: fadeInUp 0.6s ease-out forwards;
}

.form-success .success-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: inline-block;
    animation: pulseGlow 2s ease-in-out infinite;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

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

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(45, 212, 191, 0.3); }
    50% { text-shadow: 0 0 25px rgba(45, 212, 191, 0.6), 0 0 50px rgba(45, 212, 191, 0.2); }
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid-redesign,
    .contact-grid-redesign {
        grid-template-columns: 1fr;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1s forwards;
}

@keyframes revealText {
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 0.8s forwards 0.3s;
}

/* --- About & Philosophy Section --- */
.about {
    background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    overflow: hidden;
    position: relative;
    padding: 120px 0;
}

.about-mission {
    max-width: 900px;
    margin-bottom: 80px;
    text-align: left;
}

.massive-text {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -3px;
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.mission-p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 120px;
}

.philosophy-card {
    padding: 60px 40px;
    position: relative;
    border-radius: 32px;
    transition: var(--transition-smooth);
}

.philosophy-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.pillar-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    opacity: 0.7;
}

.philosophy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.philosophy-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Toolkit Showcase */
.toolkit-section {
    padding-top: 60px;
}

.section-header-left-aligned {
    text-align: left;
    margin-bottom: 60px;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

.toolkit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    aspect-ratio: 1/1;
}

.toolkit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.toolkit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    border-radius: 24px;
    transition: var(--transition-smooth);
    min-height: 200px;
    text-align: center;
}

.toolkit-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.toolkit-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.toolkit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.toolkit-item:hover .toolkit-icon {
    transform: scale(1.15);
}

.toolkit-item:hover .toolkit-icon img {
    filter: drop-shadow(0 0 15px var(--primary));
}

.toolkit-item:hover i {
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.toolkit-item:hover span {
    color: white;
}

/* Special AI Icon Styling */
.ai-icon svg {
    filter: drop-shadow(0 0 8px rgba(112, 0, 255, 0.3));
    margin-bottom: 15px;
}

.toolkit-item:hover .ai-icon svg {
    filter: drop-shadow(0 0 12px rgba(112, 0, 255, 0.6));
    transform: scale(1.1);
}

/* Response Fixes for Sidebar Team Reveal */
.team-showcase {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.team-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.contact-p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 15px;
}

/* --- Founder's Story Section --- */
.founder-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border);
}

.founder-photo-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.founder-photo-frame {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/5;
    border-radius: 40px;
    padding: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    background: var(--glass);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}

.founder-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: var(--transition-smooth);
    filter: grayscale(20%);
}

.founder-photo-frame:hover .founder-headshot {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.founder-text-block {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

.massive-text-small {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -2px;
    color: white;
}

.body-p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.highlight-p {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: white;
    line-height: 1.4;
    border-left: 3px solid var(--primary);
    padding-left: 25px;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .founder-intro-grid {
        gap: 40px;
    }
}


@media (max-width: 768px) {
    /* Layout Reset */
    .container { padding: 0 20px; }
    .section { padding: 80px 0; }

    /* Center all headings & pre-headings */
    .section-header { text-align: center; }
    .section-header h2 { display: block; }
    .tag-small { text-align: center !important; }
    .hero h1 { text-align: center; }
    .hero-subheadline { text-align: center; }

    /* Header & Mobile Menu */
    .desktop-only { display: none; }
    .hamburger { 
        display: block; 
        z-index: 1001; 
        cursor: pointer;
    }
    .hamburger span {
        display: block;
        width: 30px;
        height: 2px;
        background: white;
        margin: 6px 0;
        transition: 0.4s;
        border-radius: 2px;
    }
    .hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        text-align: center;
    }
    .mobile-menu.active { right: 0; }
    .mobile-nav-links { list-style: none; }
    .mobile-nav-links li { margin: 30px 0; opacity: 0; transform: translateY(20px); transition: 0.5s; }
    .mobile-menu.active .mobile-nav-links li { opacity: 1; transform: translateY(0); }
    .mobile-nav-links a { font-size: 2rem; font-family: var(--font-heading); font-weight: 700; color: white; }
    .mobile-nav-links .btn { display: inline-block; margin-top: 20px; font-size: 1.2rem; }

    body.menu-open { overflow: hidden; }

    /* Hero Section */
    .hero { min-height: 80vh; padding-top: 120px; }
    .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); letter-spacing: -1px; }
    .specialties-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 30px; }
    .specialty-card { padding: 25px; }

    /* Services & Process */
    .services-grid-redesign { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .service-card-modern { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
    
    .timeline-centered::before { display: none; }
    .timeline-centered { padding: 20px 0; }
    .timeline-item-alt,
    .timeline-item-alt.left,
    .timeline-item-alt.right { 
        width: 100% !important; 
        padding: 0 !important; 
        margin-bottom: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
    }
    .timeline-visual,
    .timeline-item-alt .timeline-visual { 
        position: relative !important; 
        margin: 0 auto 30px auto !important;
        width: 140px !important; 
        height: 140px !important; 
    }
    .timeline-content,
    .timeline-item-alt.left .timeline-content,
    .timeline-item-alt.right .timeline-content {
        width: 100% !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    .timeline-item-alt::after { display: none; }

    /* Work/Portfolio */
    .work-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        text-align: center; 
        padding: 0;
    }
    .project-card { 
        aspect-ratio: 4/3; 
        width: 100%;
        height: auto;
    }

    /* Founder Section (Image at Bottom) */
    .founder-intro-grid { 
        display: flex;
        flex-direction: column-reverse;
        gap: 60px; 
        text-align: center; 
    }
    .founder-text-block { border-left: none; padding-left: 0; text-align: center; }
    .highlight-p { padding-left: 0; border-left: none; font-size: 1.2rem; text-align: center; }

    /* Contacts & Footer */
    .contact-grid-redesign { grid-template-columns: 1fr; gap: 60px; }
    .contact-sidebar { text-align: center; }
    .team-showcase { align-items: center; }
    .team-card { width: 100%; max-width: 400px; }

    /* Toolkit/Stack */
    .toolkit-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .toolkit-item {
        padding: 20px 15px;
        min-height: 160px;
    }
    .toolkit-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
}

/* Internal Page Specifics */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(to bottom, var(--bg-color), rgba(0, 10, 18, 0.8));
    position: relative;
    border-bottom: 1px solid var(--border);
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, var(--bg-color) 90%);
    opacity: 0.8;
}

.page-container-glass {
    padding: 60px;
    margin: 40px 0;
    /* Inheriting background, blur and border from .glass class */
    color: var(--text-color) !important;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6) !important;
    border-radius: 40px !important;
}

/* Ensure all elements inside the darker container are bright */
.page-container-glass h1,
.page-container-glass h2,
.page-container-glass h3,
.page-container-glass p,
.page-container-glass span,
.page-container-glass .gfield_label,
.page-container-glass .gform_title,
.page-container-glass .gform_description {
    color: var(--text-color) !important;
    font-family: var(--font-heading) !important;
}

/* Universal Elite Styling for all Gravity Forms in Glass Containers */
.page-container-glass .gform_wrapper .gfield input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
.page-container-glass .gform_wrapper .gfield textarea,
.page-container-glass .gform_wrapper .gfield select,
.page-container-glass input:not([type="submit"]),
.page-container-glass textarea,
.page-container-glass select {
    background: rgb(248 250 252 / 74%) !important; /* Premium glassy off-white */
    border: 1px solid rgba(255, 255, 255, 0.4) !important; /* Soft glass border */
    border-top: 1px solid rgba(255, 255, 255, 0.8) !important; /* Glass-edge highlight */
    color: #0f172a !important; /* Dark Slate Text */
    font-family: var(--font-body) !important;
    padding: 18px 24px !important; /* Generous elite padding */
    font-size: 1rem !important;
    letter-spacing: 0.3px !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05), /* Subtle inner depth */
        0 4px 15px rgba(0, 0, 0, 0.03) !important; /* Extra flat shadow */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; /* Liquid smooth transition */
    border-radius: 16px !important;
}

/* Elite Focus State */
.page-container-glass .gform_wrapper .gfield input:focus,
.page-container-glass .gform_wrapper .gfield textarea:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px) scale(1.005); /* Tactile 3D response */
    box-shadow: 
        0 10px 30px rgba(56, 189, 248, 0.15), 
        0 0 0 4px rgba(56, 189, 248, 0.05),
        inset 0 1px 2px rgba(0,0,0,0.05) !important;
    outline: none !important;
}

/* Refined Placeholders */
.page-container-glass .gform_wrapper .gfield input::placeholder,
.page-container-glass .gform_wrapper .gfield textarea::placeholder {
    color: rgba(15, 23, 42, 0.4) !important;
    font-size: 0.95rem;
}

.page-container-glass .gform_heading {
    border-bottom: 3px solid var(--primary) !important; /* Adding a small brand-accent line */
}

/* Ensure form elements look good in glassmorphic container */
.page-container-glass input,
.page-container-glass textarea,
.page-container-glass select {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    color: white;
    outline: none;
    margin-bottom: 20px;
}

.page-container-glass button,
.page-container-glass input[type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-container-glass {
        padding: 30px 20px;
    }
}

/* Gravity Forms Elite Styling */
.gform_wrapper.gravity-theme .gform_fields {
    grid-column-gap: 30px !important;
    grid-row-gap: 25px !important;
}

.gform_wrapper .gfield_label {
    font-family: var(--font-heading) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: white !important; /* Boosted for contrast */
    margin-bottom: 10px !important;
    letter-spacing: 0.5px;
}

.gfield input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
.gfield textarea,
.gfield select {
    background: rgba(255, 255, 255, 0.03) !important;
    /* Removed individual blur to fix container blur conflict */
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: white !important;
    font-family: var(--font-body) !important;
    transition: var(--transition-smooth) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
}

.gfield input:focus,
.gfield textarea:focus {
    border-color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2), inset 0 2px 4px rgba(0,0,0,0.2) !important;
    outline: none !important;
}

/* Submit/Next/Previous Button Transformation */
.gform_button,
.gform_next_button,
.gform_previous_button,
.gform_submit_button {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: white !important;
    padding: 16px 40px !important;
    border-radius: 100px !important;
    border: none !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3) !important;
    margin-top: 20px !important;
}

.gform_button:hover,
.gform_next_button:hover,
.gform_previous_button:hover,
.gform_submit_button:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.5) !important;
}

/* Progress Bar Styling */
.gf_progressbar {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50px !important;
    height: 10px !important;
    margin-bottom: 40px !important;
}

.gf_progressbar_percentage {
    background: linear-gradient(to right, var(--primary), var(--accent)) !important;
    border-radius: 50px !important;
    height: 10px !important;
}

/* Error/Validation States */
.gfield_error input,
.gfield_error textarea {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.validation_message {
    color: #ef4444 !important;
    font-size: 0.8rem !important;
    margin-top: 8px !important;
}

/* Gravity Form Header (Title & Description) */
.gform_heading {
    margin-bottom: 40px !important;
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.gform_title {
    font-family: var(--font-heading) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    margin-bottom: 10px !important;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gform_description {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: #cbd5e1 !important; /* Brighter for better contrast */
    line-height: 1.6 !important;
    max-width: 600px;
}

/* Framework Specific Description & Sub-label Styling */
.gform-theme--framework .gfield_description,
.gform-theme--framework .gform-field-label--type-sub {
    --gf-local-color: #e5e5e5 !important;
}

/* Hide the default required legend if needed for a cleaner look */
.gfield_required_legend {
    display: none !important;
}

/* Global Checkout Background - Fixed at Root */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-page {
    position: relative;
    min-height: 100vh;
    background: transparent !important;
}

.checkout-main {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
    padding-top: 0px;
    position: relative;
}

.checkout-sidebar {
    padding: 60px 0;
    text-align: left;
}

.checkout-sidebar h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem) !important;
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: var(--font-heading) !important;
}

.checkout-intro {
    font-family: var(--font-body) !important;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 60px;
    max-width: 500px;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 60px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition-smooth);
}

.badge-item:hover {
    transform: translateX(10px);
}

.badge-item i {
    font-size: 2rem;
    color: var(--primary);
    width: 50px;
    text-align: center;
}

.badge-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: white;
    margin-bottom: 4px;
}

.badge-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkout-footer-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--border);
    padding-top: 30px;
    margin-top: 40px;
}

/* Specific adjustment for the checkout form side */
.checkout-form-side .page-container-glass {
    margin: 0;
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7) !important;
    border-radius: 40px !important;
}

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-top: 120px;
    }
    
    .checkout-sidebar {
        text-align: center;
        padding: 40px 0;
    }
    
    .checkout-intro {
        margin: 0 auto 40px;
    }
    
    .trust-badges {
        align-items: center;
    }
    
    .badge-item {
        text-align: left;
        width: 100%;
        max-width: 320px;
    }
}
