/* CSS Variables - AniTech Ghana Modern Brand Colors */
:root {
    /* Primary Colors - Professional Blue Palette */
    --primary: #2D68C4;
    --primary-dark: #1560BD;
    --primary-light: #4A7FD8;
    --primary-lighter: #DAE5F7;
    
    /* Secondary & Text Colors */
    --secondary: #64748b;
    --dark: #1e293b;
    --text-muted: #94a3b8;
    
    /* Accent Colors - Vibrant Orange */
    --accent: #F04A00;
    --accent-light: #FF651E;
    --accent-dark: #C83F00;
    --accent-lighter: #FFE0D2;
    
    /* Background Colors */
    --light: #f8fafc;
    --lighter: #f1f5f9;
    --white: #FFFFFF;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --gray-lighter: #f1f5f9;
    
    /* Success & Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Spacing & Layout */
    --header-height: 80px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.2);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2D68C4 0%, #1560BD 100%);
    --gradient-accent: linear-gradient(135deg, #FF651E 0%, #F04A00 100%);
    --gradient-light: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(45, 104, 196, 0.1) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(240, 74, 0, 0.08) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(45, 104, 196, 0.05) 0px, transparent 50%);
    
    /* Overlay */
    --overlay-dark: rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 2rem);
}

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Source Sans 3', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--dark);
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.125rem; }
    
    body {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.125rem; }
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--secondary);
}

p.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
    color: var(--secondary);
}

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

a:hover {
    color: var(--accent-dark);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Modern Button Styles with Glassmorphism */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 20px 0 rgba(240, 74, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.01em;
}

.btn::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 ease;
}

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

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px 0 rgba(240, 74, 0, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus {
    outline: 3px solid rgba(237, 98, 50, 0.5);
    outline-offset: 3px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 8px 30px 0 rgba(240, 74, 0, 0.3);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    box-shadow: var(--glass-shadow);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
}

.section {
    padding: 6rem 0;
}

/* Enhanced Toast notification */
.toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
}

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

.toast::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(240, 74, 0, 0.3);
}

.section-title p {
    color: var(--secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

/* Modern Glassmorphic Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 50px;
    }
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--accent);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(237, 98, 50, 0.05);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--light);
}

/* Skip link (for keyboard users) */
.skip-link {
    position: absolute;
    left: -999px;
    top: -999px;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    z-index: 1500;
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Mobile / responsive nav */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        right: 1rem;
        background: white;
        box-shadow: var(--shadow-lg);
        border-radius: var(--border-radius);
        padding: 1rem;
        min-width: 220px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 6rem;
    }
}

/* Modern Hero Section with Mesh Gradient */
.hero {
    padding: 14rem 0 8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(240, 74, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 600px;
}

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

.hero-image {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: fadeInRight 0.8s ease-out 0.3s both;
    transition: var(--transition-slow);
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 104, 196, 0.1) 0%, rgba(240, 74, 0, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.hero-image:hover::before {
    opacity: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.25);
}

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Modern Service Cards with Glassmorphism */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 104, 196, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(45, 104, 196, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(240, 74, 0, 0.1) 0%, rgba(45, 104, 196, 0.05) 100%);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: invert(44%) sepia(71%) saturate(1686%) hue-rotate(338deg) brightness(97%) contrast(90%);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-card:hover .service-icon::before {
    opacity: 0.15;
}

.service-card:hover .service-icon img {
    filter: brightness(1.2);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Modern Portfolio Section with Gradient Background */
.portfolio-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    opacity: 0.5;
    pointer-events: none;
}

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

.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-slow);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 30px 60px rgba(45, 104, 196, 0.2);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.portfolio-card:hover::after {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
    border-color: rgba(45, 104, 196, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.portfolio-preview-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
}

.portfolio-preview-frame {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-preview-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(237, 98, 50, 0.2);
}

.portfolio-card:hover .portfolio-preview-frame iframe {
    transform: scale(1.02);
}

.preview-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.portfolio-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    background: rgba(237, 98, 50, 0.1);
    color: var(--accent);
    padding: 0.35rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-year {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.portfolio-info p {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.portfolio-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--accent-dark);
    transform: translateX(4px);
}

.btn-link-secondary {
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.btn-link-secondary:hover {
    color: var(--dark);
}

/* Legacy portfolio grid for other pages */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-detail {
    transition: var(--transition);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
}

.portfolio-detail:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 240px;
    background: rgba(237, 98, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(237, 98, 50, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

/* Portfolio iframe preview styles */
.portfolio-image iframe {
    position: relative;
    z-index: 2;
    transform: scale(0.9);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image iframe {
    transform: scale(1);
}

/* Overlay for iframe to indicate it's clickable */
.portfolio-image::after {
    content: 'Click to visit site';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-image::after {
    opacity: 1;
}

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

.portfolio-header h2 {
    margin-bottom: 0.5rem;
}

.portfolio-features ul {
    margin-left: 1.5rem;
}

.portfolio-features li {
    position: relative;
    padding-left: 0.5rem;
}

.portfolio-features li::before {
    content: '✓';
    position: absolute;
    left: -1rem;
    color: var(--success);
    font-weight: 600;
}

/* Modal styles */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    width: min(1100px, 96%);
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 3010;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.modal-body {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
}

.iframe-wrap {
    width: 100%;
    height: 70vh;
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
}

.iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--secondary);
}

.modal-close:hover {
    background: var(--light);
    color: var(--dark);
}

.modal-fallback {
    padding: 1.5rem;
    background: #fff7ed;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}

@media (max-width: 768px) {
    .iframe-wrap { height: 50vh; }
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    margin-bottom: 0.75rem;
}

.portfolio-content p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Inline live preview styles */
.inline-preview {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    position: relative;
}

.inline-preview .preview-placeholder {
    padding: 2rem;
    text-align: center;
}

.inline-preview .preview-placeholder .muted {
    color: var(--secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.inline-preview .preview-iframe {
    width: 100%;
    height: 100%;
}

.inline-preview iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

.inline-preview .preview-fallback {
    padding: 1.5rem;
    text-align: center;
}

.inline-preview .preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: var(--transition);
}

.inline-preview:hover .preview-overlay {
    opacity: 1;
}

.inline-preview .meta {
    color: white;
    pointer-events: auto;
}

.inline-preview .meta-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.inline-preview .meta-desc {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.inline-preview .badges span {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Auto preview control */
.auto-preview-control { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}

.auto-preview-control input[type="checkbox"] { 
    width: 20px; 
    height: 20px; 
    cursor: pointer;
}

/* Modern Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(45, 104, 196, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

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

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(45, 104, 196, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(240, 74, 0, 0.1) 0%, rgba(45, 104, 196, 0.1) 100%);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.feature-icon img {
    width: 48px;
    height: 48px;
    filter: invert(44%) sepia(71%) saturate(1686%) hue-rotate(338deg) brightness(97%) contrast(90%);
    transition: var(--transition);
}

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

.feature-card:hover .feature-icon::before {
    opacity: 0.2;
}

/* Page Hero */
.page-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(237, 98, 50, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    margin-bottom: 1rem;
    position: relative;
}

.page-hero p {
    color: var(--secondary);
    font-size: 1.125rem;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
    position: relative;
}

.breadcrumb a {
    color: var(--accent);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-dark);
}

.breadcrumb span {
    color: var(--gray);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.founder-section {
    background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    margin: 4rem 0;
    box-shadow: var(--shadow);
}

.founder-info {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.founder-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--accent);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Services Page */
.service-detail {
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-light);
}

.service-detail:last-of-type {
    border-bottom: none;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(237, 98, 50, 0.1);
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.service-icon-large img {
    width: 48px;
    height: 48px;
    filter: invert(44%) sepia(71%) saturate(1686%) hue-rotate(338deg) brightness(97%) contrast(90%);
}

.service-deliverables {
    background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-deliverables h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-deliverables ul {
    list-style-type: none;
    margin-left: 0;
}

.service-deliverables li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-deliverables li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Portfolio Page */
.portfolio-detail {
    margin-bottom: 5rem;
}

.portfolio-header {
    margin-bottom: 2.5rem;
}

.portfolio-features {
    margin: 2.5rem 0;
}

.portfolio-features h3 {
    margin-bottom: 1.5rem;
}

.portfolio-features ul {
    list-style-type: none;
    margin-left: 0;
}

.portfolio-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Contact Page - Modern Design */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
}

.contact-info {
    background: linear-gradient(135deg, rgba(45, 104, 196, 0.05) 0%, rgba(240, 74, 0, 0.03) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(45, 104, 196, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 104, 196, 0.08) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.contact-info > * {
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(45, 104, 196, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0.8;
}

.contact-form h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    position: relative;
}

.form-control:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(45, 104, 196, 0.08);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(240, 74, 0, 0.12), 0 4px 12px rgba(240, 74, 0, 0.15);
    transform: translateY(-1px);
}

.form-group:focus-within .form-label {
    color: var(--accent);
    transform: translateX(2px);
}

.form-control.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    animation: fadeIn 0.3s ease;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* Map Placeholder - Modern Design */
.map-placeholder {
    margin-top: 4rem;
    height: 400px;
    background: linear-gradient(135deg, rgba(45, 104, 196, 0.08) 0%, rgba(240, 74, 0, 0.05) 100%);
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.125rem;
    font-weight: 500;
    border: 2px dashed rgba(45, 104, 196, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder::before {
    content: '📍';
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-placeholder:hover {
    background: linear-gradient(135deg, rgba(45, 104, 196, 0.12) 0%, rgba(240, 74, 0, 0.08) 100%);
    border-color: rgba(45, 104, 196, 0.3);
}

/* Submit Button Enhancement */
.contact-form .btn {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(240, 74, 0, 0.3);
}

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

.contact-form .btn:hover::before {
    width: 300px;
    height: 300px;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 74, 0, 0.4);
}

.contact-form .btn:active {
    transform: translateY(0);
}

/* Loading Spinner in Button */
#btnLoader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

.map-placeholder {
    height: 350px;
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-top: 4rem;
    font-weight: 500;
}

/* Modern Footer with Gradient */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(240, 74, 0, 0.5) 50%, transparent 100%);
}

footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 104, 196, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.footer-links a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.25rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.social-icon:active {
    transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container,
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .founder-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-image {
        margin: 0 auto;
    }
    
    .contact-container {
        gap: 2.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 2rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .map-placeholder {
        height: 300px;
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        padding: 10rem 0 4rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 576px) {
    .page-hero {
        padding: 8rem 0 3rem;
    }
}

/* Modern Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 9rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(240, 74, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    filter: blur(8px);
}

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

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(240, 74, 0, 0.4);
}

.scroll-to-top:hover::before {
    opacity: 0.6;
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(1);
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
    }
    50% {
        box-shadow: 0 4px 20px 0 rgba(37, 99, 235, 0.45);
    }
}

.hero-btns .btn:first-child {
    animation: pulse 2s ease-in-out infinite 1s;
}

/* Fade in animation for content */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.portfolio-card,
.feature-card {
    animation: fadeInContent 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }

/* Smooth transitions for all interactive elements */
a, button, .btn, .service-card, .portfolio-card, .feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add subtle background pattern */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    visibility: visible;
    transform: translateY(0);
}

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

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Form Input States */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth Page Transitions */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection Color */
::selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--dark);
}

::-moz-selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--dark);
}

/* Reduced Motion Support for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .scroll-to-top,
    .mobile-toggle,
    .btn,
    iframe {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 6px;
    border: 2px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    opacity: 0;
    transition: var(--transition);
}

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

.testimonial-card:hover::before {
    opacity: 1;
}

/* Contact Icon Styling - Enhanced */
.contact-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(240, 74, 0, 0.12) 0%, rgba(45, 104, 196, 0.08) 100%);
    border-radius: 16px;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 12px rgba(240, 74, 0, 0.15);
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: 16px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.contact-item:hover .contact-icon {
    transform: scale(1.15) rotate(-5deg);
    background: linear-gradient(135deg, rgba(240, 74, 0, 0.18) 0%, rgba(45, 104, 196, 0.12) 100%);
    box-shadow: 0 8px 20px rgba(240, 74, 0, 0.25);
}

.contact-item:hover .contact-icon::before {
    opacity: 0.2;
}

/* Enhanced Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.75rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(45, 104, 196, 0.08);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 104, 196, 0.15);
}

.contact-item h3 {
    margin-bottom: 0.625rem;
    font-size: 1.25rem;
    color: var(--dark);
}

.contact-item p {
    margin-bottom: 0.375rem;
    line-height: 1.6;
}

/* Form Enhancements */
.form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
    transition: var(--transition);
}

.form-control:focus::placeholder {
    opacity: 0.5;
    transform: translateX(4px);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23F04A00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
    appearance: none;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23F04A00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Input Focus Animation */
@keyframes inputFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 74, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(240, 74, 0, 0);
    }
}

.form-control:focus {
    animation: inputFocus 0.6s ease-out;
}

/* Form Success State */
.form-control.success {
    border-color: var(--success);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.02) 0%, white 100%);
}

.form-control.success:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

/* Stats Animation Enhancement */
.stat-item {
    transition: var(--transition);
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    cursor: pointer;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.whatsapp-float:active {
    transform: scale(1.05);
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .scroll-to-top {
        bottom: 7.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D68C4 0%, #F04A00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loader-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Smooth entrance animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Enhanced button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Responsive Testimonials */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-showcase {
        gap: 1.5rem;
        padding-bottom: 0.5rem;
    }
    
    .portfolio-card {
        min-width: 300px;
        max-width: 300px;
    }
    
    .portfolio-preview-wrapper {
        height: 200px;
    }
    
    .portfolio-preview-wrapper {
        height: 260px;
    }
    
    .portfolio-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ============================================
   PROFESSIONAL ENHANCEMENTS
   ============================================ */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Back to top button styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D68C4 0%, #F04A00 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* Enhanced button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Form focus improvements */
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 104, 196, 0.1);
    transition: all 0.3s ease;
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

/* Mobile menu animation improvements */
.nav-menu {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Accessibility improvements */
.skip-link:focus {
    clip: auto;
    height: auto;
    width: auto;
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth transitions for interactive elements */
a, button, input, select, textarea {
    transition: all 0.2s ease;
}

/* Enhanced Toast Notification */
.toast {
    transform: translateX(400px) !important;
    backdrop-filter: blur(10px);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.toast.show {
    transform: translateX(0) !important;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Toast Icon Animation */
.toast::before {
    animation: checkmark 0.6s ease-in-out 0.2s;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Contact Page Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.contact-form {
    animation: fadeInRight 0.6s ease-out;
}

.contact-info {
    animation: fadeInLeft 0.6s ease-out;
}

.contact-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

.map-placeholder {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Page Hero Enhancement */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0.6;
    pointer-events: none;
}

.page-hero h1 {
    animation: fadeInUp 0.6s ease-out;
}

.page-hero p {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.breadcrumb {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Professional loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Micro-interactions for cards */
.service-card,
.portfolio-card,
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.portfolio-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
}

/* Professional shadow on scroll */
header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Hover effects for stat cards and trust badges */
.stat-card:hover,
div[style*="transition: transform 0.3s ease"]:hover {
    transform: translateY(-5px) !important;
}

/* Testimonial card hover */
div[style*="box-shadow: 0 4px 12px rgba(0,0,0,0.08)"]:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    transform: translateY(-5px);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-text p {
    font-size: 0.9375rem;
    color: var(--secondary);
    line-height: 1.6;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-actions .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1.5rem;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Team Section with Background Image */
.team-section-bg {
    position: relative;
    background-image: url('https://pixabay.com/get/gb68845a465d76f3424723a0a3dc4512087201b54e843a75f16b9fa29ba34901fd2b234a6eda059713ec111607122f89b.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.team-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    z-index: 1;
}

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

.team-section-bg .section-title h2 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    background-clip: unset;
    color: white !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .team-section-bg {
        background-attachment: scroll;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }
}