/* ========================================
   ULTRA-ENHANCED CRAFTWEB SOLUTIONS
   Next-Level Animations & Effects
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --accent-orange: #f59e0b;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg-1: #1e293b;
    --card-bg-2: #334155;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.5);
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-4: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-5: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-6: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    --glow-color: rgba(59, 130, 246, 0.5);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Support for all devices */
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 100vh;
    position: relative;
    /* Responsive support */
    width: 100%;
    max-width: 100vw;
}

body.loaded {
    overflow-x: hidden;
    overflow-y: auto;
}

body:not(.loaded) {
    overflow: hidden;
}

/* Ensure main content is always rendered and ready */
body > *:not(.loading-screen):not(.grain-overlay):not(.cursor):not(.cursor-follower) {
    opacity: 1;
    visibility: visible;
}

/* Smooth reveal when loaded */
body.loaded .navbar,
body.loaded .hero,
body.loaded main,
body.loaded footer {
    animation: fadeInContent 0.5s ease-out forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0.8;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent horizontal scroll on all elements */
* {
    max-width: 100%;
}

/* Responsive images and media */
img,
video,
canvas,
iframe,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Flexible containers */
.container,
section,
div {
    max-width: 100%;
}

/* Better text rendering on mobile */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

p, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 40px);
    width: 100%;
}

/* ========================================
   LOADING SCREEN (Apple-style)
   ======================================== */
/* ========================================
   STUNNING LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    width: 90%;
    padding: 20px;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.loading-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.loading-logo h1 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.loading-logo h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-bar-container {
    position: relative;
    margin-bottom: 30px;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    border-radius: 50px;
    transition: width 0.3s ease-out;
    animation: shimmer 2s infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6),
                0 0 40px rgba(139, 92, 246, 0.4);
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: slide 1.5s infinite;
}

.loading-percentage {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-top: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.loading-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ========================================
   GRAIN OVERLAY (Premium effect)
   ======================================== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ========================================
   CUSTOM CURSOR (Premium)
   ======================================== */
.cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor.active {
    opacity: 1;
}

.cursor-follower {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--glow-color);
    opacity: 0;
}

.cursor-follower.active {
    opacity: 1;
}

/* Hide cursor on mobile/touch devices */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    .cursor,
    .cursor-follower {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* ========================================
   NAVIGATION (Apple-style)
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 15px 40px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Logo Container */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

/* Logo Image Styling */
.logo-image {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.logo-image:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 6px 20px rgba(99, 102, 241, 0.5));
}

/* Adjust logo image when navbar is scrolled */
.navbar.scrolled .logo-image {
    height: 40px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

.logo h1:hover {
    transform: scale(1.05);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-1);
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-cta:hover::before {
    width: 300px;
    height: 300px;
}

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

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

/* ========================================
   HERO SECTION (Ultra-Premium)
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #0f172a 50%, #1e3a5f 75%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.1);
    opacity: 0;
    transition: opacity 1s ease-in;
}

.video-background video.loaded {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

/* Geometric Shapes Animation */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-2);
    border-radius: 50%;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-3);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: 10%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: var(--gradient-4);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 30%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg) scale(1.05);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 30px;
    color: var(--primary-color);
    opacity: 0.3;
    animation: floatUpDown 10s infinite ease-in-out;
}

.float-1 { top: 15%; left: 10%; animation-delay: 0s; }
.float-2 { top: 25%; right: 15%; animation-delay: 2s; }
.float-3 { bottom: 30%; left: 20%; animation-delay: 4s; }
.float-4 { top: 50%; right: 25%; animation-delay: 6s; }
.float-5 { bottom: 15%; right: 10%; animation-delay: 8s; }

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 100;
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pre-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.pre-title .line {
    width: 60px;
    height: 1px;
    background: var(--gradient-1);
}

.pre-title .text {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-text h1 {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -3px;
}

.split-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg);
    animation: wordReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.split-text .word:nth-child(1) {
    animation-delay: 0.5s;
}

.split-text .word:nth-child(2) {
    animation-delay: 0.7s;
}

.split-text .word:nth-child(3) {
    animation-delay: 0.9s;
}

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

.glitch {
    position: relative;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

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

.hero-text h2 {
    font-size: clamp(35px, 6vw, 70px);
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.hero-description {
    font-size: clamp(16px, 2vw, 22px);
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 1.4s forwards;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin: 50px 0;
    opacity: 0;
    animation: fadeInUp 1s ease 1.6s forwards;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-mini .number {
    font-size: 40px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-mini .label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 1.8s forwards;
}

.btn-primary, .btn-secondary {
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.btn-icon {
    transition: transform 0.3s;
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
    transform: translateX(5px);
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

@keyframes scrollWheel {
    0%, 100% {
        opacity: 0;
        top: 10px;
    }
    50% {
        opacity: 1;
        top: 20px;
    }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-tag {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.section-header h2 {
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 10px;
}

/* Split Chars Animation */
.split-chars {
    display: inline-block;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 150px 0;
    background: var(--darker-bg);
    position: relative;
}

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

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    opacity: 0;
    transform: translateY(40px);
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

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

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 60px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    transition: opacity 0.3s;
    line-height: 1;
}

.service-card:hover .card-number {
    opacity: 0.2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.5s;
}

/* Different gradient for each card */
.service-card:nth-child(1)::before { background: var(--gradient-1); }
.service-card:nth-child(2)::before { background: var(--gradient-2); }
.service-card:nth-child(3)::before { background: var(--gradient-3); }
.service-card:nth-child(4)::before { background: var(--gradient-4); }
.service-card:nth-child(5)::before { background: var(--gradient-5); }
.service-card:nth-child(6)::before { background: var(--gradient-6); }
.service-card:nth-child(7)::before { background: var(--gradient-1); }
.service-card:nth-child(8)::before { background: var(--gradient-2); }

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.service-card:hover::before {
    opacity: 0.08;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:nth-child(1) .service-icon { background: var(--gradient-1); }
.service-card:nth-child(2) .service-icon { background: var(--gradient-2); }
.service-card:nth-child(3) .service-icon { background: var(--gradient-3); }
.service-card:nth-child(4) .service-icon { background: var(--gradient-4); }
.service-card:nth-child(5) .service-icon { background: var(--gradient-5); }
.service-card:nth-child(6) .service-icon { background: var(--gradient-6); }
.service-card:nth-child(7) .service-icon { background: var(--gradient-1); }
.service-card:nth-child(8) .service-icon { background: var(--gradient-2); }

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.15);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: white;
    transition: transform 0.3s;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.service-features {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 24px;
    transition: all 0.3s;
    font-size: 13px;
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    transition: transform 0.3s;
}

.service-card:hover .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-card:hover .service-features li::before {
    transform: scale(1.2);
}

.card-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:nth-child(1) .card-hover-effect { background: var(--gradient-1); }
.service-card:nth-child(2) .card-hover-effect { background: var(--gradient-2); }
.service-card:nth-child(3) .card-hover-effect { background: var(--gradient-3); }
.service-card:nth-child(4) .card-hover-effect { background: var(--gradient-4); }
.service-card:nth-child(5) .card-hover-effect { background: var(--gradient-5); }
.service-card:nth-child(6) .card-hover-effect { background: var(--gradient-6); }
.service-card:nth-child(7) .card-hover-effect { background: var(--gradient-1); }
.service-card:nth-child(8) .card-hover-effect { background: var(--gradient-2); }

.service-card:hover .card-hover-effect {
    transform: scaleX(1);
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio {
    padding: 150px 0;
    background: var(--dark-bg);
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 450px;
    border-radius: 25px;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.portfolio-item:hover .image-wrapper img {
    transform: scale(1.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.portfolio-item:hover .image-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 50px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.project-category {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform 0.5s 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-overlay h3 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 800;
    transform: translateY(20px);
    transition: transform 0.5s 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
    transform: translateY(20px);
    transition: transform 0.5s 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.view-project {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    border: 2px solid white;
    transform: translateY(20px);
    transition: all 0.5s 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.portfolio-item:hover .view-project {
    transform: translateY(0);
}

.view-project:hover {
    background: white;
    color: var(--primary-color);
}

.view-project .arrow {
    transition: transform 0.3s;
}

.view-project:hover .arrow {
    transform: translateX(5px);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    padding: 120px 0;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stat-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stat-item h3 {
    font-size: 70px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-item p {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose-us {
    padding: 150px 0;
    background: var(--dark-bg);
    position: relative;
}

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

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 45px 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:nth-child(1)::before { background: var(--gradient-1); }
.feature-card:nth-child(2)::before { background: var(--gradient-2); }
.feature-card:nth-child(3)::before { background: var(--gradient-3); }
.feature-card:nth-child(4)::before { background: var(--gradient-4); }
.feature-card:nth-child(5)::before { background: var(--gradient-5); }
.feature-card:nth-child(6)::before { background: var(--gradient-6); }

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
}

.feature-card:hover::before {
    opacity: 0.08;
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotateY(360deg);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 150px 0;
    background: var(--darker-bg);
}

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

.about-text h2 {
    font-size: 60px;
    margin-bottom: 30px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.9;
}

.about-features {
    margin-top: 50px;
    display: grid;
    gap: 30px;
}

.feature {
    padding: 25px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(10px);
}

.feature h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.15;
    z-index: 1;
    transition: opacity 0.3s;
}

.image-wrapper:hover::before {
    opacity: 0.05;
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

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

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 150px 0;
    background: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin-top: 80px;
}

.contact-info h3 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 800;
}

.info-item {
    margin-bottom: 35px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.info-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(10px);
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.info-item p {
    font-size: 16px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-8px) rotate(360deg);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 25px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 50px;
    cursor: pointer;
}

.form-group select option {
    background: var(--card-bg-1);
    color: white;
    padding: 10px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    justify-self: start;
    cursor: pointer;
    border: none;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 50px 0;
    background: var(--darker-bg);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ========================================
   PARTICLES CANVAS
   ======================================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal-text {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* ========================================
   LARGE DESKTOP (1400px and above)
   ======================================== */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
    }
}

/* ========================================
   DESKTOP TO TABLET (1200px to 1024px)
   ======================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* ========================================
   TABLET LANDSCAPE (1024px and below)
   ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    /* Adjust hero text size */
    .hero h1 {
        font-size: 60px;
        line-height: 1.1;
    }
    
    .hero h2 {
        font-size: 38px;
    }
    
    /* Services grid for tablet - 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-card {
        min-height: 480px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Portfolio grid for tablet */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* ========================================
   TABLET PORTRAIT (768px and below)
   ======================================== */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 30px;
    }
    
    /* Hide custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    /* Navbar mobile menu */
    .navbar {
        padding: 20px 30px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 60px 30px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 30px;
        align-items: flex-start;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInMenu 0.5s forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes slideInMenu {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-menu a {
        font-size: 24px;
        padding: 15px 0;
        display: block;
        width: 100%;
    }
    
    .nav-cta {
        margin-top: 20px;
        padding: 15px 30px !important;
        border-radius: 12px;
        text-align: center;
        background: var(--gradient-1);
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* Logo adjustments */
    .logo-image {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 100vh;
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 48px !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero h1 .word {
        display: inline-block;
        margin: 0 8px 8px 0;
    }
    
    .hero h2 {
        font-size: 32px !important;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .pre-title {
        font-size: 12px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pre-title .text {
        font-size: 11px;
    }
    
    /* Hero stats mobile */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .stat-mini {
        min-width: 80px;
    }
    
    .stat-mini .number {
        font-size: 20px;
    }
    
    .stat-mini .label {
        font-size: 11px;
    }
    
    /* Hero buttons mobile */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
        font-size: 16px;
    }
    
    /* Geometric shapes - smaller on mobile */
    .shape-1 {
        width: 150px;
        height: 150px;
        top: 5%;
        left: -10%;
    }
    
    .shape-2 {
        width: 120px;
        height: 120px;
        top: 70%;
        right: -5%;
    }
    
    .shape-3 {
        width: 130px;
        height: 130px;
        bottom: 5%;
        left: 5%;
    }
    
    .shape-4 {
        width: 100px;
        height: 100px;
        top: 40%;
        right: 10%;
    }
    
    /* Section spacing */
    section {
        padding: 80px 0;
    }
    
    /* Section titles */
    .section-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 16px;
        max-width: 100%;
    }
    
    /* Services grid - single column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .service-card {
        padding: 35px 25px;
        min-height: auto;
        border-radius: 16px;
    }
    
    .service-card .card-number {
        font-size: 50px;
        top: 15px;
        right: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        border-radius: 14px;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .service-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .service-card p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .service-features li {
        padding: 6px 0;
        font-size: 12px;
        padding-left: 20px;
    }
    
    .service-features li::before {
        font-size: 12px;
    }
    
    /* Features grid - single column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    .feature-icon {
        font-size: 50px;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    /* Portfolio grid - single column */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-item {
        margin-bottom: 20px;
    }
    
    .portfolio-image {
        height: 300px;
    }
    
    .portfolio-overlay h3 {
        font-size: 22px;
    }
    
    .portfolio-category {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    /* Stats grid - 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-card h3 {
        font-size: 42px;
    }
    
    .stat-card p {
        font-size: 14px;
    }
    
    /* About section */
    .about-text h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .about-text p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 25px;
    }
    
    /* Contact form */
    .contact-form input,
    .contact-form textarea {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .contact-info-item {
        padding: 25px;
    }
    
    .contact-info-item .icon {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .contact-info-item h4 {
        font-size: 18px;
    }
    
    .contact-info-item p {
        font-size: 14px;
    }
    
    /* Social links */
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Footer */
    footer {
        padding: 40px 30px;
        font-size: 14px;
    }
}

/* ========================================
   MOBILE PHONES (480px and below)
   ======================================== */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 20px;
    }
    
    /* Navbar */
    .navbar {
        padding: 15px 20px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .nav-menu {
        padding: 40px 20px;
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-menu a {
        font-size: 20px;
    }
    
    /* Hero section */
    .hero {
        padding: 100px 0 60px;
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 36px !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero h1 .word {
        margin: 0 6px 6px 0;
    }
    
    .hero h2 {
        font-size: 24px !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 25px;
    }
    
    .pre-title {
        font-size: 10px;
        gap: 8px;
    }
    
    .pre-title .line {
        width: 20px;
    }
    
    /* Hero stats - stack vertically */
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-bottom: 25px;
    }
    
    .stat-mini {
        min-width: 100px;
    }
    
    .stat-mini .number {
        font-size: 18px;
    }
    
    .stat-mini .label {
        font-size: 10px;
    }
    
    /* Buttons */
    .hero-buttons {
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 16px 25px;
        font-size: 14px;
    }
    
    /* Geometric shapes - hide some on very small screens */
    .shape-1 {
        width: 100px;
        height: 100px;
        opacity: 0.05;
    }
    
    .shape-2 {
        width: 80px;
        height: 80px;
        opacity: 0.05;
    }
    
    .shape-3 {
        display: none;
    }
    
    .shape-4 {
        display: none;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    /* Section titles */
    .section-title {
        font-size: 28px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Service cards */
    .service-card {
        padding: 35px 25px;
    }
    
    .service-card .card-number {
        font-size: 50px;
        top: 15px;
        right: 15px;
    }
    
    .service-card .icon {
        font-size: 40px;
        margin-bottom: 18px;
    }
    
    .service-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .service-card p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Portfolio */
    .portfolio-grid {
        gap: 25px;
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .portfolio-overlay h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .portfolio-overlay p {
        font-size: 13px;
    }
    
    .portfolio-category {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    /* Stats grid - single column on small phones */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stat-card {
        padding: 35px 25px;
    }
    
    .stat-card h3 {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .stat-card p {
        font-size: 13px;
    }
    
    /* About section */
    .about-text h3 {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    
    .features-grid {
        gap: 15px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-item .icon {
        font-size: 30px;
        margin-bottom: 12px;
    }
    
    .feature-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .feature-item p {
        font-size: 13px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 0;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .contact-form textarea {
        min-height: 140px;
    }
    
    .contact-info-item {
        padding: 20px;
    }
    
    .contact-info-item .icon {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .contact-info-item h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .contact-info-item p {
        font-size: 13px;
    }
    
    /* Social links */
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Footer */
    footer {
        padding: 30px 20px;
        font-size: 13px;
    }
}

/* ========================================
   EXTRA SMALL DEVICES (360px and below)
   ======================================== */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 30px !important;
    }
    
    .hero h2 {
        font-size: 20px !important;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .portfolio-overlay h3 {
        font-size: 18px;
    }
    
    .stat-card h3 {
        font-size: 32px;
    }
}

/* ========================================
   ULTRA-WIDE & LARGE SCREENS (2560px+)
   ======================================== */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }
    
    .hero h1 {
        font-size: 120px;
    }
    
    .section-title {
        font-size: 80px;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION (ALL DEVICES)
   ======================================== */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: clamp(28px, 5vw, 50px);
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .navbar {
        padding: 15px 30px;
    }
}

/* ========================================
   FOLDABLE DEVICES & NARROW SCREENS (280px)
   ======================================== */
@media (max-width: 280px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 15px 15px;
    }
    
    .logo h1 {
        font-size: 18px !important;
    }
    
    .hero h1 {
        font-size: 24px !important;
    }
    
    .hero h2 {
        font-size: 16px !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* ========================================
   TABLETS IN PORTRAIT (specific ranges)
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero h1 {
        font-size: clamp(40px, 6vw, 65px);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   PRINT STYLES (for printing pages)
   ======================================== */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .navbar,
    .cursor,
    .cursor-follower,
    .grain-overlay,
    .loading-screen {
        display: none !important;
    }
}

/* ========================================
   HIGH DPI / RETINA DISPLAYS
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* ========================================
   FLUID TYPOGRAPHY (clamp for all sizes)
   ======================================== */
@media (min-width: 320px) {
    h1 {
        font-size: clamp(28px, 5vw, 90px);
    }
    
    h2 {
        font-size: clamp(20px, 3.5vw, 45px);
    }
    
    p {
        font-size: clamp(14px, 1.2vw, 18px);
    }
}

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

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

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

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

/* ========================================
   SELECTION STYLES
   ======================================== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}
