/* ================================================================
   ALPES360 - Corporate Technology Website
   Theme: White + Corporate Blue
   Version: 2.0 - Enhanced
   ================================================================ */

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #0066FF;
    --primary-dark: #0047B3;
    --primary-darker: #003380;
    --primary-light: #338FFF;
    --primary-lighter: #E8F0FE;
    --accent: #00C2FF;
    --accent-2: #6366F1;

    --bg-white: #FFFFFF;
    --bg-light: #F7F9FC;
    --bg-dark: #0A1929;
    --bg-darker: #060F1A;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #94A3B8;
    --text-white: #F1F5F9;

    --border-light: #E2E8F0;
    --border-dark: #1E293B;

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-2) 100%);
    --gradient-dark: linear-gradient(135deg, #0A1929 0%, #0F2744 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

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

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

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo .logo-text {
    color: var(--text-white);
}

.preloader-logo .logo-accent {
    color: var(--primary);
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mountain Loading Animation */
.preloader-mountain {
    width: 280px;
    margin: 0 auto 24px;
}

.preloader-mountain svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Mountain outline draws from left to right */
.mt-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: mtDraw 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes mtDraw {
    to { stroke-dashoffset: 0; }
}

/* Snow cap draws on the peak */
.mt-snow {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: mtDraw 0.4s ease-out 1s forwards;
}

/* Peak glow effect */
.mt-glow {
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    animation: mtGlow 1.2s ease-out 1.1s forwards;
}

@keyframes mtGlow {
    0% { opacity: 0; transform: scale(1); }
    40% { opacity: 1; transform: scale(2.5); }
    100% { opacity: 0.5; transform: scale(1.8); }
}

/* Loading status text */
.preloader-status {
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: preloaderFadeIn 0.5s ease 0.6s forwards;
}

@keyframes preloaderFadeIn {
    to { opacity: 0.5; }
}

/* ========== SCROLL PROGRESS ========== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========== CUSTOM CURSOR ========== */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--primary);
}

/* ========== NAVIGATION ========== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-logo .logo-text {
    color: var(--text-white);
    transition: var(--transition);
}

.nav-logo .logo-accent {
    color: var(--primary);
}

#navbar.scrolled .nav-logo .logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: white;
}

#navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 20px !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

#navbar.scrolled .nav-toggle span {
    background: var(--text-primary);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO SECTION ========== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 102, 255, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(0, 194, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    animation: heroGradient 8s ease-in-out infinite alternate;
}

@keyframes heroGradient {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    filter: blur(1px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: floatShape 15s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation: floatShape 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-2);
    top: 30%;
    right: 20%;
    animation: floatShape 18s ease-in-out infinite 2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    bottom: 20%;
    left: 15%;
    animation: floatShape 10s ease-in-out infinite 1s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    background: var(--accent);
    top: 15%;
    left: 30%;
    animation: floatShape 14s ease-in-out infinite 3s;
    border-radius: 20%;
}

.shape-6 {
    width: 120px;
    height: 120px;
    background: var(--primary);
    bottom: 30%;
    right: 10%;
    animation: floatShape 16s ease-in-out infinite 4s;
    border-radius: 30%;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(2deg); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 0.8rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.title-line {
    display: block;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.typed-text {
    color: var(--accent);
    font-weight: 500;
}

.typed-cursor {
    color: var(--accent);
    animation: cursorBlink 1s infinite;
    font-weight: 300;
}

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

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

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

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

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== MARQUEE / TECH BRANDS ========== */
.marquee-section {
    padding: 40px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.marquee-wrapper {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    opacity: 1;
    color: var(--primary);
}

.marquee-item i {
    font-size: 1.5rem;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== ANIMATION CLASSES ========== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    position: relative;
    padding: 6px 20px;
    background: var(--primary-lighter);
    border-radius: 50px;
}

.section-dark .section-tag {
    background: rgba(0, 102, 255, 0.15);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-title-light {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: var(--text-light);
}

/* ========== ABOUT SECTION ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.about-feature:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.about-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* About Visual */
.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4); }
    50% { box-shadow: 0 10px 50px rgba(0, 102, 255, 0.6); }
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ========== SERVICES SECTION ========== */
.section-dark {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(0, 102, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 194, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.service-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

/* Mouse glow effect on service cards */
.service-card .card-glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-glow-effect {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(0, 102, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-tags span {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ========== PROJECTS SECTION (v2 - Clean Grid) ========== */
#projects {
    background: var(--bg-white);
}

/* Filter Tabs */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.filter-btn span,
.filter-btn {
    position: relative;
    z-index: 1;
}

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

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* Projects Grid - Clean 2 columns */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.2);
}

/* Project Number */
.project-number {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    background: rgba(0, 102, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
}

/* Project Image */
.project-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image Reveal Animation */
.project-image-reveal {
    position: absolute;
    inset: 0;
    background: var(--primary);
    z-index: 2;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.project-card.revealed .project-image-reveal {
    transform: scaleX(0);
}

/* Project Info */
.project-info {
    padding: 28px;
}

.project-info .project-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-lighter);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: var(--primary);
}

.project-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-tech span {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-light);
    border-radius: 50px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.project-card:hover .project-tech span {
    border-color: rgba(0, 102, 255, 0.2);
    background: var(--primary-lighter);
    color: var(--primary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.project-link i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.project-link:hover {
    gap: 12px;
}

.project-link:hover i {
    transform: translateX(4px);
}

/* ========== TEAM SECTION ========== */
.section-light {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(transparent, rgba(10,25,41,0.8));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-sm);
    background: rgba(0, 102, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    color: var(--text-white);
    font-weight: 500;
}

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

/* Contact Socials */
.contact-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
}

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

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px 0 8px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: var(--text-white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    outline: none;
    transition: var(--transition);
    resize: none;
}

.form-field label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
    top: -4px;
    font-size: 0.75rem;
    color: var(--primary-light);
    letter-spacing: 0.5px;
}

.field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.form-field input:focus ~ .field-line,
.form-field textarea:focus ~ .field-line {
    width: 100%;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
    margin-top: 8px;
    position: relative;
}

.btn-loading {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: inherit;
}

.btn-submit.loading span,
.btn-submit.loading i {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== CTA BANNER SECTION ========== */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--bg-dark);
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.cta-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    left: -100px;
    animation: ctaFloat 8s ease-in-out infinite alternate;
}

.cta-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -150px;
    right: -100px;
    animation: ctaFloat 6s ease-in-out infinite alternate-reverse;
}

@keyframes ctaFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, -30px); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

/* ========== FOOTER ========== */
#footer {
    background: var(--bg-darker);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: var(--transition);
}

.newsletter-form:focus-within {
    border-color: var(--primary);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: var(--text-white);
    background: transparent;
    border: none;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--text-light);
}

.newsletter-form button {
    padding: 12px 18px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* ========== BACK TO TOP ========== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}

/* ========== TEXT SPLIT ANIMATION ========== */
.split-text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.3em;
}

.split-text .word-inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.revealed .word-inner {
    transform: translateY(0);
}

/* ========== SMOOTH SECTION DIVIDERS ========== */
.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}

/* ========== HIGHLIGHT LINE ON SECTION TAG ========== */
.section-tag-line {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    margin: 0 auto 20px;
}

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

/* --- TABLET LANDSCAPE (1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 100px 0;
    }

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

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
    }

    .about-image-wrapper img {
        height: 400px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 32px 24px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .team-image {
        height: 260px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* CTA */
    .cta-section {
        padding: 100px 0;
    }
}

/* --- TABLET PORTRAIT (768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Hide custom cursor on touch/small screens */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    /* --- NAVIGATION MOBILE --- */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh; /* dynamic viewport for mobile browsers */
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 4px;
        padding: 80px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.4);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links .nav-link {
        color: var(--text-light) !important;
        font-size: 1.05rem;
        padding: 14px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .nav-links .nav-link::after {
        display: none;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        color: white !important;
        background: rgba(0, 102, 255, 0.15);
    }

    .nav-links .nav-cta {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* --- HERO MOBILE --- */
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    /* Preloader mountain mobile */
    .preloader-mountain {
        width: 220px;
    }

    .preloader-logo {
        font-size: 2rem;
        margin-bottom: 24px;
    }

    .preloader-status {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin: 0 auto 30px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 40px;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .stat-suffix {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .hero-stat-divider {
        height: 30px;
    }

    .scroll-indicator {
        bottom: 24px;
    }

    .mouse {
        width: 22px;
        height: 34px;
    }

    /* --- MARQUEE MOBILE --- */
    .marquee-section {
        padding: 28px 0;
    }

    .marquee-track {
        gap: 40px;
        animation-duration: 20s;
    }

    .marquee-item {
        gap: 8px;
        font-size: 0.85rem;
    }

    .marquee-item i {
        font-size: 1.2rem;
    }

    .marquee-section::before,
    .marquee-section::after {
        width: 40px;
    }

    /* --- ABOUT MOBILE --- */
    .about-grid {
        gap: 50px;
    }

    .about-image-wrapper img {
        height: 300px;
    }

    .about-image-decoration {
        top: -10px;
        right: -10px;
    }

    .about-experience-badge {
        bottom: -20px;
        left: 16px;
        padding: 16px;
        gap: 10px;
    }

    .exp-number {
        font-size: 2rem;
    }

    .exp-text {
        font-size: 0.78rem;
    }

    .about-features {
        margin-top: 30px;
        gap: 20px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1rem;
    }

    /* --- SERVICES MOBILE --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }

    /* --- PROJECTS MOBILE --- */
    .project-filters {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 30px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.82rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

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

    .project-image-wrapper {
        height: 200px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.15rem;
    }

    .project-info p {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }

    .project-number {
        top: 14px;
        left: 14px;
        font-size: 0.72rem;
        padding: 4px 12px;
    }

    /* --- TEAM MOBILE --- */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .team-image {
        height: 200px;
    }

    /* Show social on mobile since no hover */
    .team-social {
        transform: translateY(0);
        padding: 12px;
        background: linear-gradient(transparent 0%, rgba(10,25,41,0.7) 100%);
    }

    .team-social a {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .team-info {
        padding: 16px 12px;
    }

    .team-info h3 {
        font-size: 0.95rem;
    }

    .team-role {
        font-size: 0.78rem;
    }

    /* --- CONTACT MOBILE --- */
    .contact-grid {
        gap: 40px;
    }

    .contact-text {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .contact-details {
        gap: 20px;
        margin-bottom: 30px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1rem;
    }

    .contact-item a,
    .contact-item span {
        font-size: 0.9rem;
    }

    .contact-socials {
        gap: 10px;
    }

    .social-link {
        width: 42px;
        height: 42px;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-field input,
    .form-field textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* --- CTA MOBILE --- */
    .cta-section {
        padding: 70px 0;
    }

    .cta-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .cta-text {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-glow-1 {
        width: 250px;
        height: 250px;
    }

    .cta-glow-2 {
        width: 200px;
        height: 200px;
    }

    /* --- FOOTER MOBILE --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #footer {
        padding-top: 60px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 16px;
    }

    /* --- BACK TO TOP MOBILE --- */
    #backToTop {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 16px;
        font-size: 0.9rem;
    }

    /* --- TOAST MOBILE --- */
    .toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        max-width: none;
        width: auto;
        font-size: 0.88rem;
        padding: 14px 20px;
        text-align: center;
    }

    .toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* --- SMALL PHONES (480px and below) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 0;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius-md);
        padding: 16px 8px;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .hero-stat {
        flex: 1;
    }

    .hero-stat-divider {
        width: 1px;
        height: 30px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-suffix {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

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

    .section-tag {
        font-size: 0.75rem;
        letter-spacing: 2px;
        padding: 4px 14px;
    }

    .about-image-wrapper img {
        height: 240px;
    }

    .about-experience-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
        display: inline-flex;
    }

    .about-image-decoration {
        display: none;
    }

    .project-image-wrapper {
        height: 180px;
    }

    .project-info {
        padding: 16px;
    }

    .project-info h3 {
        font-size: 1.05rem;
    }

    .project-info p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .project-tech span {
        padding: 3px 10px;
        font-size: 0.7rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team-image {
        height: 170px;
    }

    .team-info {
        padding: 12px 8px;
    }

    .team-info h3 {
        font-size: 0.88rem;
    }

    .team-role {
        font-size: 0.72rem;
    }

    .team-social a {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .contact-form-wrapper {
        padding: 20px 16px;
    }

    .btn-submit {
        padding: 14px;
        font-size: 0.92rem;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-text {
        font-size: 0.88rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- VERY SMALL PHONES (360px) --- */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .preloader-mountain {
        width: 180px;
    }

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

    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .nav-links {
        width: 85%;
        padding: 80px 24px 40px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .team-image {
        height: 150px;
    }
}

/* --- TOUCH DEVICE OPTIMIZATIONS --- */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover-only effects on touch */
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }

    .project-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .project-card:hover .project-info h3 {
        color: var(--text-primary);
    }

    .project-card:hover .project-tech span {
        background: var(--bg-light);
        color: var(--text-secondary);
        border-color: var(--border-light);
    }

    .team-card:hover {
        transform: none;
    }

    .team-card:hover .team-image img {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    .btn-outline:hover {
        transform: none;
    }

    .contact-item:hover .contact-icon {
        transform: none;
    }

    /* Make team social always visible on touch */
    .team-social {
        transform: translateY(0);
    }

    /* Increase touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .filter-btn {
        min-height: 44px;
    }

    .btn {
        min-height: 48px;
    }

    /* Remove mouse-glow on touch */
    .service-card .card-glow-effect {
        display: none;
    }
}

/* --- LANDSCAPE PHONES --- */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

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

    .hero-subtitle {
        margin-bottom: 20px;
    }

    .hero-buttons {
        margin-bottom: 20px;
    }

    .scroll-indicator {
        display: none;
    }

    .section {
        padding: 60px 0;
    }
}

/* --- SAFE AREA (notch phones) --- */
@supports (padding: env(safe-area-inset-bottom)) {
    #footer .footer-bottom {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    #backToTop {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .toast {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .nav-links {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
}

/* ========== SMOOTH SELECTION ========== */
::selection {
    background: rgba(0, 102, 255, 0.2);
    color: var(--text-primary);
}

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

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

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

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

/* ========== TOAST / SUCCESS MESSAGE ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid #10B981;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}
