@import url('https://fonts.googleapis.com/css2?family=Maname&display=swap');

/* JetBrains Theme for K & K Advertising - Updated Color System */
:root {
    /* Base Colors */
    --jetbrains-bg-dark: #000000;
    --jetbrains-bg-darker: #131416;
    --jetbrains-bg-card: #1E1E1E;
    --jetbrains-bg-section: #1E1F22;

    /* Section Color A: #4c00c7 (indigo-violet) */
    --color-a-primary: #4c00c7;
    --color-a-light: #6d29ff;
    --color-a-dark: #370094;
    --color-a-gradient: linear-gradient(135deg, #4c00c7 0%, #370094 100%);
    --color-a-accent: #7a3dff;

    /* Section Color B: #0bb39c (teal-mint) */
    --color-b-primary: #0bb39c;
    --color-b-light: #0dd6bb;
    --color-b-dark: #088f7c;
    --color-b-gradient: linear-gradient(135deg, #0bb39c 0%, #088f7c 100%);
    --color-b-accent: #0ce8cd;

    /* Section Color C: Vibrant Red for buttons */
    --color-c-primary: #cc0000;
    --color-c-light: #ef2f2f;
    --color-c-dark: #CC0000;
    --color-c-gradient: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    --color-c-accent: #FF5555;

    /* Complementary Highlight Color - Vibrant Gold/Amber for hero content */
    --color-highlight: #FFC107;
    --color-highlight-bright: #FFD700;

    /* Neutral Colors */
    --jetbrains-text-light: #FFFFFF;
    --jetbrains-text-gray: #AAAAAA;
    --jetbrains-text-dark: #DDDDDD;
    --jetbrains-border: #333333;

    /* Section Background Gradients */
    --jetbrains-gradient-hero: linear-gradient(180deg, rgba(76, 0, 199, 0.1) 0%, rgba(55, 0, 148, 0.05) 100%);
    --jetbrains-gradient-services: linear-gradient(135deg, rgba(11, 179, 156, 0.1) 0%, rgba(8, 143, 124, 0.1) 100%);
    --jetbrains-gradient-projects: linear-gradient(135deg, rgba(143, 1, 103, 0.1) 0%, rgba(106, 1, 76, 0.1) 100%);
    --jetbrains-gradient-bg: radial-gradient(circle at top left, #1E1F22, #131416);
}

/* Legacy variable aliases for page-specific CSS (compatibility layer) */
:root {
    /* Brand colors */
    --brand-red: var(--color-c-primary);
    --brand-red-light: var(--color-c-light);
    --brand-teal: var(--color-b-primary);
    --brand-gold: var(--color-highlight);

    /* Text and surfaces */
    --text-light: var(--jetbrains-text-light);
    --text-gray: var(--jetbrains-text-gray);
    --bg-dark: var(--jetbrains-bg-dark);
    --bg-darker: var(--jetbrains-bg-darker);
    --border-color: var(--jetbrains-border);

    /* Glass UI tokens */
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-bg-dark: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Gradients */
    --gradient-primary: var(--color-c-gradient);
}

/* Base JetBrains Theme */
.theme-jetbrains {
    background-color: var(--jetbrains-bg-dark);
    color: var(--jetbrains-text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Compatibility variables scoped to theme root to ensure availability */
.theme-jetbrains {
    /* Brand colors */
    --brand-red: var(--color-c-primary);
    --brand-red-light: var(--color-c-light);
    --brand-teal: var(--color-b-primary);
    --brand-gold: var(--color-highlight);

    /* Text and surfaces */
    --text-light: var(--jetbrains-text-light);
    --text-gray: var(--jetbrains-text-gray);
    --bg-dark: var(--jetbrains-bg-dark);
    --bg-darker: var(--jetbrains-bg-darker);
    --border-color: var(--jetbrains-border);

    /* Glass UI tokens */
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-bg-dark: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Gradients */
    --gradient-primary: var(--color-c-gradient);
}

/* Match all pages to have the margins of service page */
body {
    margin: 0;
}

main {
    margin: 0;
}

/* Light Theme Overrides (keeps base brand colors intact) */
.theme-light {
    /* Neutral palette for light UI */
    --jetbrains-bg-dark: #ffffff;
    --jetbrains-bg-darker: #f7f8fa;
    --jetbrains-bg-card: #ffffff;
    --jetbrains-bg-section: #ffffff;
    --jetbrains-text-light: #111111;
    /* used for headings in hero */
    --jetbrains-text-gray: #555555;
    --jetbrains-text-dark: #222222;
    --jetbrains-border: rgba(0, 0, 0, 0.10);

    /* Section gradients keep hue, reduce darkness feel */
    --jetbrains-gradient-hero: linear-gradient(180deg, rgba(76, 0, 199, 0.06) 0%, rgba(55, 0, 148, 0.03) 100%);
    --jetbrains-gradient-services: linear-gradient(135deg, rgba(11, 179, 156, 0.08) 0%, rgba(8, 143, 124, 0.06) 100%);
    --jetbrains-gradient-projects: linear-gradient(135deg, rgba(143, 1, 103, 0.08) 0%, rgba(106, 1, 76, 0.06) 100%);
    --jetbrains-gradient-bg: radial-gradient(circle at top left, #ffffff, #f7f8fa);
}

/* Light theme specific surfaces */
.theme-light .jetbrains-hero {
    background: #ffffff;
}

.theme-light .hero-stat .stat-number {
    color: #111111;
}

.theme-light .hero-stat .stat-label {
    color: #555555;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Ensure consistent desktop width across all pages (override any framework defaults) */
.theme-jetbrains .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

/* JetBrains Header */
.jetbrains-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(76, 0, 199, 0.15), 0 4px 16px rgba(143, 1, 103, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Enhanced logo highlight in hero area - white shadow only */
.theme-jetbrains .jetbrains-header .logo-link {
    filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.4)) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3)) drop-shadow(0 1px 4px rgba(255, 255, 255, 0.25));
    transition: filter 0.3s ease;
}

.theme-jetbrains .jetbrains-header .logo {
    filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.4)) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3)) drop-shadow(0 1px 4px rgba(255, 255, 255, 0.25));
}

/* Enhanced navigation highlight in hero area */
.theme-jetbrains .jetbrains-header .main-nav {
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.35));
}

.theme-jetbrains .jetbrains-header .nav-link {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(255, 255, 255, 0.3);
}

.theme-jetbrains .jetbrains-header .nav-cta {
    background: var(--color-c-primary) !important;
    color: var(--jetbrains-text-light) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5), 0 2px 6px rgba(255, 0, 0, 0.3) !important;
}

.theme-jetbrains .jetbrains-header .nav-cta:hover {
    background: var(--color-c-light) !important;
    box-shadow: 0 6px 18px rgba(255, 51, 51, 0.6), 0 3px 9px rgba(255, 0, 0, 0.4) !important;
}

.jetbrains-header.shrink {
    padding: 0.5rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.jetbrains-header .nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.jetbrains-header .nav-link:hover,
.jetbrains-header .nav-link.active {
    color: var(--color-highlight) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.jetbrains-header .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-highlight);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

/* JetBrains Hero Section - Enhanced with indigo-violet and magenta-violet */
.jetbrains-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
            rgba(25, 0, 255, 0.85) 0%,
            rgba(22, 0, 207, 0.85) 30%,
            rgba(12, 0, 145, 0.85) 70%,
            rgba(11, 0, 97, 0.85) 100%);
    overflow: hidden;
    padding: calc(80px + 3rem) 0 calc(4rem - 20px);
    margin-top: 0;
}

/* Compact Hero Section for Services, Gallery, Contact */
.hero-section-compact {
    min-height: auto !important;
    padding: calc(80px + 6rem - 20px) 0 3rem !important;
    /* Top padding to account for fixed navigation */
    margin-top: 0;
}

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

.hero-content-compact .hero-title {
    margin-bottom: 1rem;
}

.hero-content-compact .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.jetbrains-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top left, rgba(25, 0, 255, 0.85), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(22, 0, 207, 0.85), transparent 50%),
        linear-gradient(135deg, rgba(11, 0, 97, 0.85), rgba(8, 0, 74, 0.85));
    opacity: 0.5;
    z-index: 1;
}

/* Animated waves at bottom of hero */
.jetbrains-hero-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q250,0 500,50 T1000,50 L1000,100 L0,100 Z' fill='%23FF0000' fill-opacity='0.45'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q250,80 500,30 T1000,30 L1000,100 L0,100 Z' fill='%230dd6bb' fill-opacity='0.40'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,70 Q250,20 500,70 T1000,70 L1000,100 L0,100 Z' fill='%236d29ff' fill-opacity='0.42'/%3E%3C/svg%3E");
    background-size: 2000px 100%, 2000px 100%, 2000px 100%;
    background-position: 0 0, 0 0, 0 0;
    background-repeat: repeat-x;
    animation: heroWave1 15s linear infinite, heroWave2 20s linear infinite, heroWave3 25s linear infinite;
    z-index: 2;
}

@keyframes heroWave1 {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: -2000px 0, 0 0, 0 0;
    }
}

@keyframes heroWave2 {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 0 0, 2000px 0, 0 0;
    }
}

@keyframes heroWave3 {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 0 0, 0 0, -2000px 0;
    }
}

/* Apparel background with blue tint for all hero areas */
.jetbrains-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(25, 80, 255, 0.25), rgba(25, 80, 255, 0.25)), url('../home/hero_1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

/* Hero Color Variants */
.jetbrains-hero.hero--a {
    --hero-accent-gradient: var(--color-a-gradient);
    --hero-gradient: var(--jetbrains-gradient-hero);
}

.jetbrains-hero.hero--b {
    --hero-accent-gradient: var(--color-b-gradient);
    --hero-gradient: var(--jetbrains-gradient-services);
}

.jetbrains-hero.hero--c {
    --hero-accent-gradient: var(--color-c-gradient);
    --hero-gradient: var(--jetbrains-gradient-projects);
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-media-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jetbrains-hero .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-highlight);
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.4), 0 4px 8px rgba(0, 0, 0, 0.4);
    opacity: 1;
    position: relative;
    z-index: 4;
}

.hero-title-line {
    display: block;
}

.jetbrains-hero .hero-title-line.accent {
    color: var(--color-highlight);
    text-shadow: 0 0 25px rgba(255, 193, 7, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.jetbrains-hero .hero-subtitle {
    color: var(--jetbrains-text-light);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

/* Hero Stats */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 500px;
    position: relative;
    z-index: 4;
}

.hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
    backdrop-filter: blur(10px);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-highlight);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    opacity: 1;
}

.hero-stat .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--jetbrains-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
}

/* Hero Media Container - Duplicate removed, see above */

.hero-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    max-height: 70vh;
    width: 100%;
    max-width: 400px;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.hero-media:hover .hero-video {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(76, 0, 199, 0.3) 0%, transparent 50%, rgba(76, 0, 199, 0.3) 100%);
}

/* Hero Play Button */
.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: var(--jetbrains-bg-dark);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-play-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 1);
}

.hero-play-btn i {
    margin-left: 4px;
}

/* Keep play/pause button visible; icon will toggle via JS */
.hero-video[data-playing="true"]~.hero-play-btn {
    display: flex;
}

/* JetBrains Fullscreen Button */
.jetbrains-fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--jetbrains-border);
    color: var(--jetbrains-text-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.jetbrains-fullscreen-btn:hover {
    background: var(--jetbrains-bg-card);
    border-color: var(--color-a-accent);
    color: var(--color-a-accent);
    transform: translateY(-2px);
}

/* JetBrains Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-c-primary) !important;
    color: var(--jetbrains-text-light) !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5), 0 2px 10px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-c-light) !important;
    box-shadow: 0 8px 30px rgba(255, 51, 51, 0.6), 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent !important;
    color: var(--color-c-primary) !important;
    border: 2px solid var(--color-c-primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: var(--color-c-primary) !important;
    color: var(--jetbrains-text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4), 0 2px 8px rgba(255, 51, 51, 0.3);
    border-color: var(--color-c-primary) !important;
}

/* WhatsApp Button Styles - Green */
.btn-whatsapp {
    background: #25D366 !important;
    color: var(--jetbrains-text-light) !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 2px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A !important;
    color: var(--jetbrains-text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--color-c-primary) !important;
    color: var(--color-c-primary) !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.btn-outline:hover {
    background: var(--color-c-primary) !important;
    color: var(--jetbrains-text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4), 0 2px 8px rgba(255, 51, 51, 0.3);
    border-color: var(--color-c-primary) !important;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.jetbrains-section .section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-a-light);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.jetbrains-section .section-subtitle {
    color: var(--jetbrains-text-gray);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* JetBrains Sections */
.jetbrains-section {
    background: var(--jetbrains-bg-darker);
    position: relative;
    padding: 3rem 0;
}

/* Services Section - Color B */
.services-section {
    background: linear-gradient(180deg, rgba(13, 255, 223, 0) 0%, rgba(8, 143, 124, 0.85) 100%);
}

.services-section .section-title {
    color: var(--color-b-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* JetBrains Cards */
.jetbrains-card {
    background: var(--jetbrains-bg-card) !important;
    border: 1px solid var(--jetbrains-border) !important;
    border-radius: 12px;
    transition: all 0.4s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.jetbrains-card:hover {
    border-color: rgba(11, 179, 156, 0.3) !important;
    box-shadow: 0 8px 40px rgba(11, 179, 156, 0.15), 0 4px 20px rgba(8, 143, 124, 0.1);
    transform: translateY(-5px);
}

/* Clickable Service Cards */
.clickable-card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.clickable-card:focus {
    outline: 2px solid var(--color-b-accent);
    outline-offset: 2px;
}

.clickable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-b-gradient);
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.clickable-card:hover::before {
    opacity: 0.1;
}

.service-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card .service-title {
    color: var(--jetbrains-text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card .service-description {
    color: var(--jetbrains-text-gray);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.service-feature {
    background: rgba(11, 179, 156, 0.1);
    color: var(--color-b-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(11, 179, 156, 0.3);
}

.service-cta {
    color: var(--color-b-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: auto;
}

.service-cta:hover {
    gap: 1rem;
}

/* Why Choose Us Section - Color A */
.why-choose-section {
    background: var(--jetbrains-bg-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    text-align: center;
}

.benefit-card:hover {
    border-color: rgba(76, 0, 199, 0.5) !important;
    box-shadow: 0 8px 40px rgba(76, 0, 199, 0.2), 0 4px 20px rgba(55, 0, 148, 0.15) !important;
}

.benefit-card .benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--color-a-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--jetbrains-text-light);
}

.benefit-card .benefit-title {
    color: var(--jetbrains-text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.benefit-card .benefit-description {
    color: var(--jetbrains-text-gray);
    line-height: 1.6;
}

/* Behind the Scenes - Color B */
.behind-scenes-section {
    background: linear-gradient(180deg, rgba(0, 30, 119, 0.0) 0%, rgba(0, 64, 223, 0.75) 130%);
}

.behind-scenes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.behind-scenes-description {
    color: var(--jetbrains-text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    border-color: rgba(76, 0, 199, 0.5) !important;
    box-shadow: 0 8px 30px rgba(76, 0, 199, 0.25);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Projects Section - Color C */
.projects-section {
    background: var(--jetbrains-bg-dark);
}

.projects-section .section-title {
    color: var(--color-c-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-card:hover {
    border-color: rgba(143, 1, 103, 0.5) !important;
    box-shadow: 0 8px 40px rgba(143, 1, 103, 0.25), 0 4px 20px rgba(106, 1, 76, 0.2) !important;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-view-btn {
    background: var(--color-c-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-view-btn:hover {
    background: var(--color-c-accent);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--jetbrains-text-light);
}

.project-category {
    color: var(--color-c-accent);
    font-weight: 600;
}

.section-footer {
    text-align: center;
}

/* JetBrains CTA Banner - Color C */
.jetbrains-cta {
    position: relative;
    background: var(--jetbrains-bg-section);
    overflow: hidden;
    padding: 3rem 0;
}

.jetbrains-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../home/hero_1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.jetbrains-cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--jetbrains-bg-dark) 0%,
            var(--jetbrains-bg-dark) 15%,
            rgba(0, 0, 0, 0.8) 25%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.4) 55%,
            rgba(11, 179, 156, 0.5) 70%,
            rgba(11, 179, 156, 0.7) 85%,
            rgba(8, 143, 124, 0.9) 100%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.jetbrains-cta .cta-title {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.jetbrains-cta .cta-description {
    color: #F0F0F0;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.jetbrains-cta .btn-primary {
    background: var(--color-c-primary) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.jetbrains-cta .btn-primary:hover {
    background: var(--color-c-light) !important;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.jetbrains-cta .btn-secondary {
    border-color: var(--color-c-primary) !important;
    color: var(--color-c-primary) !important;
}

.jetbrains-cta .btn-secondary:hover {
    background: var(--color-c-primary) !important;
    color: var(--jetbrains-text-light) !important;
}

.jetbrains-cta .btn-whatsapp {
    background: #25D366 !important;
    color: var(--jetbrains-text-light) !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 2px 10px rgba(37, 211, 102, 0.3) !important;
}

.jetbrains-cta .btn-whatsapp:hover {
    background: #20BA5A !important;
    color: var(--jetbrains-text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 4px 15px rgba(37, 211, 102, 0.4) !important;
}

.jetbrains-cta .btn-whatsapp i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* JetBrains Footer */
.jetbrains-footer {
    background: #000000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--jetbrains-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
    transition: filter 0.3s ease;
}

.footer-logo img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

.jetbrains-footer .footer-description {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--jetbrains-bg-card);
    border: 1px solid var(--jetbrains-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jetbrains-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.jetbrains-footer .social-link:hover {
    background: var(--color-a-primary);
    border-color: var(--color-a-primary);
    transform: translateY(-2px);
}

.jetbrains-footer .footer-title {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jetbrains-footer .footer-link {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jetbrains-footer .footer-link:hover {
    color: var(--color-a-accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d0d0d0;
}

.contact-item a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: #c0c0c0;
    font-size: 0.875rem;
}

/* JetBrains Modals */
.jetbrains-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.jetbrains-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.jetbrains-modal .modal-content {
    position: relative;
    background: var(--jetbrains-bg-card);
    border: 1px solid var(--jetbrains-border);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jetbrains-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-c-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.jetbrains-modal .modal-close:hover {
    background: var(--color-c-accent);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

/* Service Modal Content */
.service-modal-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.service-modal-info h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--jetbrains-text-light);
}

.service-modal-description {
    color: var(--jetbrains-text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Service modal WhatsApp buttons - bigger icon */
.service-modal-actions .btn-whatsapp i {
    font-size: 1.75rem;
    margin-right: 0.75rem;
}

.service-modal-benefits {
    margin-bottom: 2rem;
}

.service-modal-benefits h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--jetbrains-text-light);
}

.service-modal-benefits ul {
    list-style: none;
    padding: 0;
}

.service-modal-benefits li {
    padding: 0.5rem 0;
    color: var(--jetbrains-text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-modal-benefits li::before {
    content: '✓';
    color: var(--color-b-primary);
    font-weight: bold;
}

.service-modal-use-cases {
    margin-bottom: 2rem;
}

.service-modal-use-cases h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--jetbrains-text-light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.use-case {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--jetbrains-border);
}

.use-case-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-b-accent);
}

/* Project Lightbox */
.lightbox-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.lightbox-body img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.lightbox-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#lightbox-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--jetbrains-text-light);
}

#lightbox-description {
    color: var(--jetbrains-text-gray);
    line-height: 1.6;
}

/* Fullscreen Project Lightbox */
.project-lightbox-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-lightbox-fullscreen .lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-lightbox-fullscreen .lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 0;
}

.project-lightbox-fullscreen .lightbox-media {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-lightbox-fullscreen .lightbox-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.project-lightbox-fullscreen .lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--jetbrains-text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.project-lightbox-fullscreen .lightbox-close:hover {
    background: var(--color-c-primary);
    border-color: var(--color-c-primary);
    transform: scale(1.1);
}

.project-lightbox-fullscreen .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--jetbrains-text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.project-lightbox-fullscreen .lightbox-nav:hover {
    background: var(--color-c-primary);
    border-color: var(--color-c-primary);
    transform: translateY(-50%) scale(1.1);
}

.project-lightbox-fullscreen .lightbox-prev {
    left: 2rem;
}

.project-lightbox-fullscreen .lightbox-next {
    right: 2rem;
}

/* Fullscreen Video Modal */
.fullscreen-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.fullscreen-video-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.fullscreen-video-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-c-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.fullscreen-video-close:hover {
    background: var(--color-c-accent);
    transform: scale(1.1);
}

.fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-a-accent);
}

.video-info p {
    opacity: 0.9;
    margin: 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--jetbrains-text-light);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--jetbrains-bg-darker);
    border-top: 1px solid var(--jetbrains-border);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    padding: 0.8rem 1rem;
    color: var(--jetbrains-text-light);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 193, 7, 0.15);
    color: var(--color-highlight);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.mobile-cta {
    margin-top: 1rem;
    text-align: center;
}

/* For sinhala words */
.sinhala-word {
    font-family: "Maname", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--jetbrains-text-light);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animations */
.service-card,
.benefit-card,
.project-card {
    animation: fadeUp 0.8s ease-out;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-media-container {
    animation: slideInRight 0.8s ease-out;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .jetbrains-hero .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.4rem);
    }

    .jetbrains-hero .hero-subtitle {
        font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile View for Home and About Pages - Reorder content */
    .jetbrains-hero:not(.hero-section-compact) .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-content {
        order: 1;
        display: contents;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-content .hero-title {
        order: 1;
        font-size: clamp(1.25rem, 6vw, 2rem);
        line-height: 1.15;
        opacity: 1 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-content .hero-subtitle {
        display: none !important;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-media-container {
        order: 2;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-content .hero-actions {
        order: 3;
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 500px;
        opacity: 1 !important;
        align-self: center;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-actions .btn {
        flex: 1;
        min-width: 0;
        width: 50%;
        max-width: none;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-content .hero-stats-grid {
        order: 4;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        align-self: center;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-stats-grid {
        margin: 0;
        padding: 0;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-stat .stat-number {
        font-size: 2rem;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-stat .stat-label {
        font-size: 0.75rem;
    }

    /* Ensure proper styling in mobile - no opacity controls needed, inherit from desktop */
    .jetbrains-hero:not(.hero-section-compact) .hero-title {
        color: var(--color-highlight) !important;
        text-shadow: 0 0 20px rgba(255, 193, 7, 0.4), 0 4px 8px rgba(0, 0, 0, 0.4) !important;
        opacity: 1 !important;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-title-line.accent {
        color: var(--color-highlight) !important;
        text-shadow: 0 0 25px rgba(255, 193, 7, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4) !important;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-actions .btn-primary {
        background: var(--color-c-primary) !important;
        color: var(--jetbrains-text-light) !important;
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5), 0 2px 10px rgba(255, 0, 0, 0.3) !important;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-actions .btn-secondary {
        background: transparent !important;
        color: var(--color-c-primary) !important;
        border: 2px solid var(--color-c-primary) !important;
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2) !important;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-actions .btn-whatsapp {
        background: #25D366 !important;
        color: var(--jetbrains-text-light) !important;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 2px 10px rgba(37, 211, 102, 0.3) !important;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-stat {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px);
        opacity: 1 !important;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-stat .stat-number {
        color: var(--color-highlight) !important;
        text-shadow: 0 0 15px rgba(255, 193, 7, 0.5) !important;
        opacity: 1 !important;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-stat .stat-label {
        color: var(--jetbrains-text-light) !important;
        opacity: 1 !important;
    }

    /* Regular hero grid for compact sections */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    /* Make video wider and taller in mobile view */
    .jetbrains-hero:not(.hero-section-compact) .hero-media {
        max-height: 60vh;
        max-width: min(540px, 100%);
        width: min(540px, 100%);
        margin: 0 auto;
    }

    .hero-media {
        max-height: 50vh;
        max-width: min(540px, 100%);
        width: min(540px, 100%);
        margin: 0 auto;
    }

    .jetbrains-fullscreen-btn span {
        display: none;
    }

    .jetbrains-fullscreen-btn {
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .behind-scenes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-modal-header {
        grid-template-columns: 1fr;
    }

    .lightbox-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lightbox-body img {
        height: 300px;
    }

    /* Mobile styles for fullscreen project lightbox */
    .project-lightbox-fullscreen .lightbox-content {
        padding: 1rem;
    }

    .project-lightbox-fullscreen .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .project-lightbox-fullscreen .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .project-lightbox-fullscreen .lightbox-prev {
        left: 1rem;
    }

    .project-lightbox-fullscreen .lightbox-next {
        right: 1rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .modal-content,
    .lightbox-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-body {
        padding: 1.5rem;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .jetbrains-hero:not(.hero-section-compact) .hero-content .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .hero-section,
    .cta-banner,
    .floating-actions,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .container {
        max-width: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .jetbrains-card {
        border: 2px solid var(--jetbrains-text-light) !important;
    }

    .jetbrains-header {
        border-bottom: 2px solid var(--jetbrains-text-light) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .jetbrains-card,
    .btn-primary,
    .btn-secondary,
    .service-card,
    .benefit-card,
    .project-card,
    .hero-video,
    .jetbrains-fullscreen-btn {
        transition: none;
        animation: none;
    }

    .service-card:hover .service-image img,
    .gallery-item:hover img,
    .project-card:hover .project-image img {
        transform: none;
    }
}

/* ==========================================================================
   FLOATING ACTIONS - WhatsApp, Chatbot, Scroll-up
   ========================================================================== */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn {
    background: #25D366;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
}

.chatbot-btn {
    background: var(--color-a-gradient);
}

.scroll-up-btn {
    background: var(--jetbrains-bg-card);
    border: 1px solid var(--jetbrains-border);
    color: var(--color-highlight);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-up-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}