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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6600;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

html {
    scroll-behavior: smooth;
    background: white;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-transform: uppercase;
    background: white;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Smooth transitions for all elements */
* {
    box-sizing: border-box;
}

/* Global Section Styling */
section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}


.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    overflow: hidden;
    will-change: transform;
    padding-bottom: 60px;
}

/* Burger Menu */
.burger-menu {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu:hover span {
    background: var(--accent-color);
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(13.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-13.5px) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 80px;
    left: 30px;
    width: 300px;
    background: transparent;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 2s ease-out;
    padding-top: 20px;
    padding-bottom: 30px;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu ul {
    list-style: none;
    padding: 0;
}

.nav-menu ul li {
    margin: 10px 0;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.3s ease;
}

.nav-menu.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active ul li:nth-child(2) { transition-delay: 0.2s; }
.nav-menu.active ul li:nth-child(3) { transition-delay: 0.3s; }
.nav-menu.active ul li:nth-child(4) { transition-delay: 0.4s; }
.nav-menu.active ul li:nth-child(5) { transition-delay: 0.5s; }
.nav-menu.active ul li:nth-child(6) { transition-delay: 0.6s; }

.nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-menu ul li a:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

.nav-menu ul li a:hover::before {
    width: 50%;
}

/* Secondary pages have no dark hero behind the fixed menu, so it needs dark text/icons instead of white */
body.secondary-page .burger-menu span {
    background: var(--primary-color);
}

body.secondary-page .burger-menu:hover span {
    background: var(--accent-color);
}

body.secondary-page .nav-menu ul li a {
    color: var(--primary-color);
}

body.secondary-page .nav-menu ul li a:hover {
    color: var(--accent-color);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    z-index: 1;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.2; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    margin-top: 55vh;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 10px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

.cta-button:hover::before {
    transform: scale(1);
}

.cta-button:hover::after {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    display: block;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover span {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.6s;
}

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

/* Typewriter Animation */
.typewriter {
    border-right: 3px solid white;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 10px;
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}

/* Rotating Text Animation */
.rotating-text-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.rotating-text {
    opacity: 0;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: white;
    text-align: center;
    position: relative;
}

.rotating-text.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.rotating-text.fade-out {
    animation: fadeOutDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Text Reveal Animation for Sections */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    animation: reveal 1.5s ease forwards;
}

@keyframes reveal {
    0% {
        left: 0;
        width: 0;
    }
    50% {
        left: 0;
        width: 100%;
    }
    100% {
        left: 100%;
        width: 0;
    }
}

/* Character by Character Animation */
.char-animation span {
    display: inline-block;
    opacity: 0;
    animation: fadeInChar 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInChar {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.4s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.6s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SUPER CREATIVE SECTION HEADERS */

/* === INTRO SECTION - Floating Shapes & Animated Words === */
.creative-title-intro {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: -20px;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ff8833 0%, transparent 70%);
    top: 50%;
    right: 15%;
    animation: float2 8s ease-in-out infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    bottom: -10px;
    left: 5%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(30px, -30px) scale(1.2); opacity: 0.6; }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
    50% { transform: translate(-20px, 20px) rotate(180deg); opacity: 0.7; }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(-40px, -20px) scale(1.3); opacity: 0.5; }
}

.split-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.word-animated {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    animation: wordReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.word-animated:nth-child(1) { animation-delay: 0.3s; }
.word-animated:nth-child(2) { animation-delay: 0.5s; }
.word-animated:nth-child(3) { animation-delay: 0.7s; }
.word-animated:nth-child(4) { animation-delay: 0.9s; }

.highlight-word {
    color: var(--accent-color);
    position: relative;
}

.highlight-word::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent-color);
    opacity: 0.2;
    z-index: -1;
    animation: highlightExpand 0.8s ease 1.2s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

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

@keyframes highlightExpand {
    to { transform: scaleX(1); }
}

/* === SERVICES SECTION - Glitch Effect === */
.creative-title-services {
    text-align: center;
    margin-bottom: 70px;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-title::before {
    color: var(--accent-color);
    animation: glitch1 2.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-title::after {
    color: #ff8833;
    animation: glitch2 2.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

.animated-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.line-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.line-bar {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    animation: lineGrow 2s ease infinite;
    transform-origin: left;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes lineGrow {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.3); }
}

/* === ABOUT SECTION - Wave Animation with Letter Bounce === */
.creative-title-about {
    position: relative;
    margin-bottom: 40px;
}

.wave-background {
    position: absolute;
    width: 100%;
    height: 200px;
    top: -50px;
    left: 0;
    z-index: -1;
    opacity: 0.1;
}

.wave-background svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    fill: var(--accent-color);
    animation: waveMotion 8s ease-in-out infinite;
}

@keyframes waveMotion {
    0%, 100% {
        d: path("M0,100 Q300,50 600,100 T1200,100 L1200,200 L0,200 Z");
    }
    25% {
        d: path("M0,100 Q300,150 600,100 T1200,100 L1200,200 L0,200 Z");
    }
    50% {
        d: path("M0,100 Q300,80 600,100 T1200,100 L1200,200 L0,200 Z");
    }
    75% {
        d: path("M0,100 Q300,120 600,100 T1200,100 L1200,200 L0,200 Z");
    }
}

.split-letter-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    justify-content: flex-start;
    gap: 5px;
}

.split-letter-title .letter {
    display: inline-block;
    animation: letterBounce 3s ease-in-out infinite;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8833 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.split-letter-title .letter:nth-child(1) { animation-delay: 0s; }
.split-letter-title .letter:nth-child(2) { animation-delay: 0.1s; }
.split-letter-title .letter:nth-child(3) { animation-delay: 0.2s; }
.split-letter-title .letter:nth-child(4) { animation-delay: 0.3s; }
.split-letter-title .letter:nth-child(5) { animation-delay: 0.4s; }
.split-letter-title .letter:nth-child(6) { animation-delay: 0.5s; }
.split-letter-title .letter:nth-child(7) { animation-delay: 0.6s; }
.split-letter-title .letter:nth-child(8) { animation-delay: 0.7s; }
.split-letter-title .letter:nth-child(9) { animation-delay: 0.8s; }
.split-letter-title .letter:nth-child(10) { animation-delay: 0.9s; }
.split-letter-title .letter:nth-child(11) { animation-delay: 1s; }
.split-letter-title .letter:nth-child(12) { animation-delay: 1.1s; }

.split-letter-title .letter:hover {
    transform: scale(1.3) rotate(-5deg);
    -webkit-text-fill-color: var(--accent-color);
}

@keyframes letterBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.subtitle-fancy {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    font-style: normal;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase !important;
}

/* Simple Title Style with Underline */
.simple-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.simple-title-wrapper.left-aligned {
    text-align: left;
}

.simple-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    letter-spacing: 2px;
}

.simple-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto 5px;
}

.simple-title-wrapper.left-aligned .simple-title::after {
    margin: 40px 0 40px 0;
}

.orange-text {
    color: var(--accent-color);
}

/* Old section title for contact (keeping this one) */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 25px auto 25px;
}

/* Intro Section */
.intro {
    padding: 140px 20px 100px 20px;
    background: var(--secondary-color);
    border-radius: 30px 30px 0 0;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    z-index: 1;
}

.intro .simple-title-wrapper {
    margin-top: -40px;
    margin-bottom: 0;
}

.intro .simple-title::after {
    margin: 25px auto 5px;
}

.intro .simple-title .orange-text {
    display: inline-block;
    margin-top: 15px;
}

.intro-text {
    text-align: center;
    font-size: 1.3rem;
    line-height: 2;
    max-width: 900px;
    margin: 30px auto 0;
    color: #555;
    text-transform: none;
}

.intro-text:last-child {
    margin-bottom: 20px;
}

/* Services Section */
.services {
    padding: 100px 20px 150px 20px;
    background: white;
    border-radius: 30px 30px 0 0;
    position: relative;
    margin-top: -30px;
    z-index: 1;
}

.services .simple-title::after {
    margin: 50px auto 25px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 0px;
}

.services-grid.realisations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.services-grid.realisations-grid .service-card {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 360px;
}

.service-card {
    padding: 40px 30px;
    background: var(--secondary-color);
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color), #ff8833);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.2;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    text-transform: none;
}

/* About Section */
.about {
    padding: 100px 20px 120px 20px;
    background: var(--secondary-color);
    border-radius: 30px 30px 0 0;
    position: relative;
    margin-top: -30px;
    overflow: hidden;
    z-index: 1;
}

.about .simple-title-wrapper {
    margin-bottom: 0;
}

.about .simple-title-wrapper.left-aligned .simple-title::after {
    margin: 25px 0 12px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    text-transform: none;
}

.about-text p.subtitle-fancy {
    margin: 0 0 12px 0;
    text-transform: uppercase !important;
}

.about-text p.subtitle-fancy + p {
    margin-top: 0px;
}

.about-image {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 450px;
    padding-left: 40px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: url('images/excellence.jpeg') center/cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    filter: contrast(1.4) brightness(1.1) saturate(1.2);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

/* Team Section */
.team {
    padding: 100px 20px 120px 20px;
    background: white;
    border-radius: 30px 30px 0 0;
    position: relative;
    margin-top: -30px;
    z-index: 1;
}

.team .simple-title::after {
    margin: 50px auto 25px;
}

.team-grid-pro {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    margin-top: 70px;
}

.team-member-pro {
    text-align: center;
    transition: all 0.3s ease;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    isolation: isolate;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.team-member-pro:hover .team-photo img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 102, 0, 0.95) 0%, rgba(255, 102, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    transform: translateY(101%);
    transition: transform 0.4s ease;
    border-radius: 10px;
}

.team-member-pro:hover .team-overlay-info {
    transform: translateY(0);
}

.team-overlay-info h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
}

.team-overlay-info .team-position {
    color: white;
    font-weight: 400;
    text-transform: none;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
}

/* Team page grid (team.html) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.team-member .team-image {
    border-radius: 10px 10px 0 0;
    box-shadow: none;
}

.team-member h3 {
    margin: 20px 15px 5px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.team-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-bio {
    color: #666;
    text-transform: none;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .team-grid-pro {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .team-grid-pro {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .team-grid-pro {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: var(--secondary-color);
    border-radius: 30px 30px 0 0;
    position: relative;
    margin-top: -30px;
    z-index: 1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 0;
}

.contact-info {
    padding: 30px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    margin-bottom: 25px;
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    line-height: 1.6;
    text-transform: none;
}

/* Contact Form */
.contact-form {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
}

.captcha-display {
    background: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 5px;
    min-width: 120px;
    text-align: center;
    border: 1px solid #ddd;
    user-select: none;
}

.refresh-captcha {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-captcha:hover {
    background: var(--accent-color);
    transform: rotate(180deg);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.footer .container {
    position: relative;
}

.footer p {
    font-size: 0.6rem;
    margin: 0;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-size: 40px;
    color: #ff6600;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#backToTop:hover {
    color: #ff8833;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 900px) {
    .services-grid.realisations-grid .service-card {
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .services-grid.realisations-grid .service-card {
        flex: 0 1 100%;
    }

    /* Burger + slide-in nav panel */
    .burger-menu {
        top: 20px;
        left: 20px;
    }

    .nav-menu {
        top: 0;
        left: 0;
        width: min(80vw, 320px);
        height: 100vh;
        height: 100dvh;
        background: rgba(12, 12, 12, 0.97);
        padding: 90px 30px 30px;
        transform: translateX(-100%);
        transition: all 0.35s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu ul li {
        margin: 14px 0;
    }

    .nav-menu ul li a {
        font-size: 1.2rem;
        padding: 10px 0;
    }

    /* Panel is dark on every page, so links/burger stay white */
    body.secondary-page .nav-menu ul li a {
        color: white;
    }

    body.secondary-page .nav-menu ul li a:hover {
        color: var(--accent-color);
    }

    body.secondary-page .burger-menu.active span {
        background: white;
    }

    /* Hero */
    .hero-content {
        margin-top: 28vh;
        padding: 0 24px;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .rotating-text-wrapper {
        height: auto;
        min-height: 70px;
    }

    .rotating-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .cta-button {
        padding: 12px 32px;
        font-size: 1rem;
    }

    /* Section titles */
    .simple-title {
        font-size: 1.9rem;
        letter-spacing: 1px;
    }

    .simple-title::after {
        margin: 15px auto 5px;
    }

    .services .simple-title::after,
    .team .simple-title::after {
        margin: 20px auto 15px;
    }

    .about .simple-title-wrapper.left-aligned .simple-title::after {
        margin: 15px 0 12px 0;
    }

    .intro-text {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    /* Tighter section spacing on phones (!important beats the inline
       padding-top: 150px on secondary pages) */
    .intro {
        padding: 100px 20px 60px;
    }

    .services {
        padding: 60px 20px 80px;
    }

    .about {
        padding: 60px 20px 70px;
    }

    .team {
        padding: 60px 20px 70px;
    }

    .contact {
        padding: 60px 20px;
    }

    body.secondary-page .services,
    body.secondary-page .about,
    body.secondary-page .contact,
    body.secondary-page .team {
        padding-top: 110px !important;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        min-height: 260px;
        padding-left: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        padding: 10px 0 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* 16px stops iOS Safari from zooming into focused fields */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    /* No hover on touch: photos in color, info always visible as bottom strip */
    .team-photo img {
        filter: grayscale(0%);
    }

    .team-overlay-info {
        transform: none;
        top: auto;
        height: auto;
        justify-content: flex-end;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
        padding: 14px 8px 10px;
        border-radius: 0 0 10px 10px;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        font-size: 32px;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    /* Creative Titles Responsive */
    .split-title {
        font-size: 2rem;
        gap: 10px;
    }

    .glitch-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .split-letter-title {
        font-size: 2.5rem;
        gap: 3px;
    }

    .floating-shapes .shape {
        display: none;
    }

    .captcha-group {
        flex-wrap: wrap;
    }

    .captcha-display {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        margin-top: 22vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .rotating-text {
        font-size: 1rem;
    }

    .simple-title {
        font-size: 1.5rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .container {
        padding: 0 15px;
    }

    .contact-form {
        padding: 25px 15px;
    }

    .split-title {
        font-size: 1.5rem;
        gap: 8px;
    }

    .glitch-title {
        font-size: 1.8rem;
    }

    .split-letter-title {
        font-size: 1.8rem;
        gap: 2px;
    }

    .line-bar {
        width: 80px;
    }
}
