/* ===== CURIOLOGIX - MODERN WEBSITE STYLES ===== */

/* Custom Properties */
:root {
    /* Curiologix Brand Colors */
    --primary-color: #669B1F;
    --primary-dark: #336b08;
    --primary-light: #84b115;
    --accent-color: #4c8210;
    
    /* Neutral Colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #B3B3B3;
    --background-primary: #ffffff;
    --background-secondary: #f8fafb;
    --background-dark: #1a1a1a;
    --border-color: #eaeaea;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #669B1F 0%, #336b08 100%);
    --gradient-secondary: linear-gradient(135deg, #84b115 0%, #669B1F 100%);
    --gradient-hero: linear-gradient(135deg, rgba(102, 155, 31, 0.9) 0%, rgba(51, 107, 8, 0.9) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(102, 155, 31, 0.95) 0%, rgba(51, 107, 8, 0.95) 100%);
    
    /* Spacing */
    --section-padding: 40px 0;
    --container-padding: 15px;
    
    /* Typography */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
    
    /* Animations */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Prevent any elements from causing horizontal overflow */
* {
    max-width: 100%;
}

/* Specific container constraints */
.hero-section,
.services-section,
.portfolio-section,
.process-section,
.about-section,
.contact-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--background-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loader-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

.loading-text {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand .logo {
    height: 45px;
    width: auto;
    transition: var(--transition-fast);
}

.navbar.scrolled .navbar-brand .logo {
    height: 40px;
}

.custom-toggler {
    border: none;
    background: none;
    padding: 0.5rem;
    position: relative;
    width: 30px;
    height: 24px;
    margin-left: auto;
}

.custom-toggler:focus {
    box-shadow: none;
}

.toggler-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: var(--transition-fast);
    border-radius: 1px;
}

.custom-toggler.collapsed .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler.collapsed .toggler-line:nth-child(2) {
    opacity: 0;
}

.custom-toggler.collapsed .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 0.75rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 0.75rem 1.5rem !important;
    margin-left: 1rem;
    box-shadow: var(--shadow-md);
    border: none !important;
}

.btn-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
    color: white !important;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    font-size: 16px;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 18px;
}

.btn i {
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(3px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
    color: white;
    padding: 120px 0 80px;
    width: 100%;
    max-width: 100vw;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-shape.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-shape.shape-4 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 40%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.5;
    }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.2s both, pulseGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 155, 31, 0.3);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2),
                    0 0 20px rgba(102, 155, 31, 0.1),
                    0 0 30px rgba(102, 155, 31, 0.05);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                    0 0 30px rgba(102, 155, 31, 0.2),
                    0 0 40px rgba(102, 155, 31, 0.1);
        border-color: rgba(102, 155, 31, 0.4);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    position: relative;
}

.typing-text::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 0;
    height: 100%;
    width: 3px;
    background: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.7s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeInLeft 1s ease 0.6s both;
}

.code-editor {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-buttons {
    display: flex;
    gap: 0.5rem;
}

.editor-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f57;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #28ca42;
}

.editor-title {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.editor-content {
    padding: 2rem 1.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    animation: typeWriter 3s steps(40) infinite alternate;
}

.line-number {
    color: rgba(255, 255, 255, 0.4);
    margin-right: 2rem;
    width: 20px;
    text-align: right;
}

.keyword {
    color: #ff6b9d;
}

.string {
    color: #4ecdc4;
}

.method {
    color: #45b7d1;
}

.cursor-blink {
    width: 2px;
    height: 20px;
    background: white;
    animation: blink 1s infinite;
    margin-top: 1rem;
}

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

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(102, 155, 31, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.15);
    animation: floatTech 8s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.tech-icon:nth-child(1) { top: 15%; left: 20%; }
.tech-icon:nth-child(2) { top: 35%; right: 10%; }
.tech-icon:nth-child(3) { bottom: 45%; left: 10%; }
.tech-icon:nth-child(4) { bottom: 25%; right: 25%; }
.tech-icon:nth-child(5) { top: 55%; left: 50%; }
.tech-icon:nth-child(6) { top: 75%; right: 45%; }

@keyframes floatTech {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-15px) rotate(90deg); 
        opacity: 0.4;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeIn 2s ease 2s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin: 0 auto 1rem;
    position: relative;
}

.scroll-wheel {
    width: 2px;
    height: 8px;
    background: white;
    border-radius: 1px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

.scroll-indicator span {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 155, 31, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(102, 155, 31, 0.2);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--background-secondary);
    padding: 30px 0 20px 0;
}

.about-features {
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
    margin: 0;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-card {
    background: var(--background-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.card-content {
    position: relative;
    z-index: 2;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(102, 155, 31, 0.1);
    opacity: 0.6;
}

.floating-element.element-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation: floatSlow 8s ease-in-out infinite;
    animation-delay: 0s;
}

.floating-element.element-2 {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 15%;
    animation: floatMedium 6s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.floating-element.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation: floatSlow 10s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-element.element-4 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 10%;
    animation: floatFast 4s ease-in-out infinite;
    animation-delay: 3s;
}

.floating-element.element-5 {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 30%;
    animation: floatMedium 7s ease-in-out infinite reverse;
    animation-delay: 4s;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) rotate(90deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.4;
    }
}

@keyframes floatMedium {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translateX(-10px) translateY(-20px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translateX(10px) translateY(-10px) scale(0.9);
        opacity: 0.3;
    }
}

@keyframes floatFast {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-25px) scale(1.2);
        opacity: 0.8;
    }
}

.experience-card .card-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-card .card-header p {
    color: var(--text-secondary);
    margin: 0;
}

.progress-ring {
    position: relative;
    margin: 2rem auto;
    width: 120px;
    height: 120px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 6;
    transition: stroke-dashoffset 2s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-label {
    text-align: center;
    margin-top: 1rem;
}

.progress-label small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}

.stack-item {
    background: var(--background-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid rgba(102, 155, 31, 0.1);
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.stack-item.medium {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-radius: 30px;
}

.stack-item.large {
    padding: 1rem 1.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 35px;
    border: 2px solid rgba(102, 155, 31, 0.2);
}

.stack-item:hover {
    background: rgba(102, 155, 31, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.stack-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 155, 31, 0.1), transparent);
    transition: left 0.5s;
}

.stack-item:hover::before {
    left: 100%;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--background-primary);
    padding: 30px 0 20px 0;
}

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

.service-card {
    background: var(--background-primary);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 155, 31, 0.3);
}

.service-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    align-items: flex-start;
}

.service-icon {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
}

.service-title-area {
    display: flex;
    align-items: center;
    height: 60px;
    flex: 1;
}

.service-description {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 14px;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 155, 31, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.service-card:hover .icon-bg {
    background: rgba(102, 155, 31, 0.2);
    transform: scale(1.1);
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--primary-color);
    font-size: 12px;
}

.service-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    transition: var(--transition-smooth);
    opacity: 0;
}

.service-card:hover .service-hover-effect {
    left: 0;
    opacity: 0.05;
}

/* ===== PROCESS SECTION ===== */
.process-section {
    background: var(--background-secondary);
    padding: 30px 0 20px 0;
    position: relative;
    overflow: hidden;
}

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

.process-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.code-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    font-weight: 600;
    color: rgba(102, 155, 31, 0.4);
    font-size: 1.2rem;
    pointer-events: none;
}

.particle-1 {
    top: 15%;
    left: 10%;
    animation: floatCodeParticle 8s ease-in-out infinite;
    animation-delay: 0s;
}

.particle-2 {
    top: 25%;
    right: 15%;
    animation: floatCodeParticle 6s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.particle-3 {
    top: 60%;
    left: 20%;
    animation: floatCodeParticle 10s ease-in-out infinite;
    animation-delay: 2s;
}

.particle-4 {
    top: 20%;
    left: 50%;
    animation: floatCodeParticle 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

.particle-5 {
    bottom: 30%;
    right: 25%;
    animation: floatCodeParticle 9s ease-in-out infinite reverse;
    animation-delay: 3s;
}

.particle-6 {
    top: 70%;
    right: 10%;
    animation: floatCodeParticle 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.particle-7 {
    bottom: 15%;
    left: 30%;
    animation: floatCodeParticle 8s ease-in-out infinite reverse;
    animation-delay: 4s;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connection-svg {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.connection-path {
    stroke-dasharray: 10, 5;
    animation: pathFlow 4s linear infinite;
}

.connection-path:nth-child(2) {
    animation-delay: 1s;
}

.connection-path:nth-child(3) {
    animation-delay: 2s;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.3;
}

.shape-circle {
    width: 80px;
    height: 80px;
    background: rgba(102, 155, 31, 0.2);
    border-radius: 50%;
    top: 30%;
    right: 20%;
    animation: rotateShape 12s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(102, 155, 31, 0.25);
    top: 50%;
    left: 15%;
    animation: rotateShape 10s linear infinite reverse;
}

.shape-square {
    width: 60px;
    height: 60px;
    background: rgba(102, 155, 31, 0.15);
    border-radius: 8px;
    bottom: 25%;
    right: 35%;
    animation: rotateShape 8s linear infinite;
}

.shape-hexagon {
    width: 50px;
    height: 50px;
    background: rgba(102, 155, 31, 0.2);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    top: 40%;
    left: 70%;
    animation: rotateShape 14s linear infinite reverse;
}

@keyframes floatCodeParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(0px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) translateX(-10px) rotate(270deg);
        opacity: 0.6;
    }
}

@keyframes pathFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 60;
    }
}

@keyframes rotateShape {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        transform: rotate(270deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

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

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

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    flex: 1;
    max-width: 400px;
    background: var(--background-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 4rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 4rem;
    margin-right: 0;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 155, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    background: var(--background-primary);
    padding: 30px 0 20px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

.portfolio-item {
    transition: var(--transition-smooth);
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
}

.portfolio-card {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: var(--transition-smooth);
    color: white;
    z-index: 10;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-info {
    text-align: center;
    margin-bottom: 2rem;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

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

.portfolio-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-tech span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.portfolio-links {
    display: flex;
    gap: 1rem;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-links {
    transform: translateY(0);
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.portfolio-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: white;
}

/* ===== TEAM SECTION ===== */
.team-section {
    background: var(--background-secondary);
    padding: 30px 0 20px 0;
}

.team-section .container {
    position: relative;
}

.team-grid {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 2rem 2rem 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.team-grid::-webkit-scrollbar {
    display: none;
}

.team-grid::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, var(--background-secondary), transparent);
    z-index: 1;
    pointer-events: none;
}

.team-grid::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to left, var(--background-secondary), transparent);
    z-index: 1;
    pointer-events: none;
}

.team-member {
    flex: 0 0 280px;
    transition: var(--transition-smooth);
}

.team-member:hover .member-card {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member:hover .member-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-secondary);
}

.team-member:hover .member-skills span {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media (hover: none) {
    .team-member:hover .member-card {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .team-member:hover .member-icon {
        transform: none;
        background: var(--gradient-primary);
    }
    
    .team-member:hover .member-skills span {
        background: rgba(102, 155, 31, 0.1);
        color: var(--primary-color);
        transform: none;
    }
}

.member-card {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.member-card:hover .member-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

.member-social {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.member-card:hover .member-social {
    transform: translateY(0);
}

.member-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.member-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-skills {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.member-skills span {
    background: rgba(102, 155, 31, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-block;
}

.member-icon {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    transition: var(--transition-smooth);
}

.member-card:hover .member-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--background-primary);
    padding: 30px 0 20px 0;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.contact-social {
    margin-top: 3rem;
}

.contact-social h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background: var(--background-secondary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-control {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-primary);
    font-size: 16px;
    transition: var(--transition-fast);
    resize: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 155, 31, 0.1);
}

.form-icon {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: var(--transition-fast);
    pointer-events: none;
    z-index: 1;
}

.form-control:focus + .form-icon {
    color: var(--primary-color);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--background-primary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition-fast);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.btn-loader {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: inline-block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

.newsletter-form {
    display: flex;
    gap: 0;
    margin-top: 1rem;
}

.newsletter-form .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
    flex: 1;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 1.25rem 1.5rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes typeWriter {
    0%, 50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .filter-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .portfolio-card:hover {
        transform: none;
    }
}

/* Improve tap targets for mobile */
.nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    min-height: 44px;
    touch-action: manipulation;
}

/* Better mobile form inputs */
input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Large screens optimization */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 3rem;
        position: relative;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .timeline-content {
        margin: 2rem auto 0 auto !important;
        max-width: 90%;
        z-index: 2;
        position: relative;
    }
    
    .timeline-number {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto 1.5rem auto;
        z-index: 3;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .contact-info {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding: 100px 15px 60px 15px;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        font-size: 1.1rem;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
        align-items: center;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        backdrop-filter: blur(10px);
        width: 100%;
        max-width: 200px;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .portfolio-filters {
        overflow-x: auto;
        justify-content: center;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0.5rem;
    }
    
    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
        font-size: 14px;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-social {
        margin-top: 2rem;
    }
    
    /* Improve mobile navigation */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    /* Better mobile service cards */
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile-optimized hero section */
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .hero-section .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section .row {
        justify-content: center;
        align-items: center;
    }
    
    .hero-section .col-lg-6 {
        width: 100%;
        text-align: center;
    }
}

/* iPhone XR specific fixes (414px width) */
@media (max-width: 414px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-section {
        padding: 100px 20px 60px 20px;
    }
    
    .hero-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 100px 15px 60px 15px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 16px;
    }
    
    .service-card,
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        text-align: center;
    }
    
    .about-section .tech-stack {
        justify-content: center;
        align-items: center;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand .logo {
        height: 35px;
    }
    
    .custom-toggler {
        margin-right: 1rem;
    }
    
    /* Center align all sections on mobile */
    .about-features .feature-item {
        text-align: left;
    }
    
    .about-section .row {
        text-align: center;
    }
    
    .about-content {
        text-align: left;
    }
    
    .about-visual {
        text-align: center;
    }
    
    .services-section .section-header,
    .portfolio-section .section-header,
    .process-section .section-header,
    .team-section .section-header,
    .contact-section .section-header {
        text-align: center;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .back-to-top,
    .preloader {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}