/* ===================================
   ART TECHNOLOGIES UGANDA
   Premium Corporate Website
   Version: 3.0
   =================================== */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors */
    --color-primary: #0066FF;
    --color-primary-dark: #0052CC;
    --color-primary-light: #3385FF;
    --color-secondary: #00D4FF;
    --color-accent: #FF6B35;
    
    /* Neutrals */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Layout */
    --container-width: 1200px;
    --section-padding: 5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

address {
    font-style: normal;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
}

h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}

h3 {
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
}

p {
    margin-bottom: var(--space-4);
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--color-gray-50);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.section-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-full {
    width: 100%;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-logo-img {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-primary {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-gray-900);
}

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

.nav-logo-sub {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-500);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-700);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2);
}

.nav-toggle-line {
    width: 25px;
    height: 2px;
    background: var(--color-gray-900);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -10%;
    right: -10%;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: -15%;
    left: -10%;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: rgba(0, 102, 255, 0.1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-10);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

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

.hero-stat-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-text {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.about-feature {
    display: flex;
    gap: var(--space-4);
}

.about-feature-icon {
    font-size: var(--text-2xl);
    color: var(--color-primary);
    flex-shrink: 0;
}

.about-feature-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.about-feature-text {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.about-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.about-card:hover {
    transform: translateY(-8px);
}

.about-card-icon {
    font-size: var(--text-4xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.about-card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.about-card-text {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.service-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.service-featured {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, var(--color-white) 100%);
    border-color: var(--color-primary);
}

.service-badge {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.service-icon i {
    font-size: var(--text-3xl);
    color: var(--color-white);
}

.service-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.service-description {
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-700);
    font-size: var(--text-sm);
}

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

/* ===================================
   BENEFITS SECTION
   =================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.benefit-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--color-gray-200);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 12px 36px 0 rgba(0, 102, 255, 0.18), 0 2px 8px 0 rgba(0,0,0,0.06);
    border-color: var(--color-primary);
    z-index: 10;
    /* Add a subtle animated border shine */
    position: relative;
}

.benefit-card:hover::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    opacity: 0.18;
    z-index: -1;
    animation: benefit-shine 1.2s linear;
}

@keyframes benefit-shine {
    0% { opacity: 0.18; }
    50% { opacity: 0.32; }
    100% { opacity: 0.18; }
}


.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.benefit-icon i {
    font-size: var(--text-3xl);
    color: var(--color-white);
}

.benefit-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.benefit-text {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* ===================================
   PORTFOLIO SECTION
   =================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.portfolio-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

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

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

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

.portfolio-overlay {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
}

.portfolio-category {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.portfolio-content {
    padding: var(--space-6);
}

.portfolio-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.portfolio-description {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.cta-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-10);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-card {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    border: 1.5px solid var(--color-gray-200);
    transition: box-shadow 0.3s, border-color 0.3s;
}
/* Add border and shadow on hover for contact cards */
.contact-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px 0 rgba(0, 102, 255, 0.15), 0 1.5px 6px 0 rgba(0,0,0,0.04);
    z-index: 1;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: var(--text-xl);
    color: var(--color-white);
}

.contact-icon-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.contact-card-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.contact-card-text {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

.contact-card-text a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-card-text a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-gray-50);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--color-gray-900);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-primary {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--color-white);
}

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

.footer-logo-sub {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-500);
}

.footer-about {
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: var(--color-gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-base);
}

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

.footer-title {
    font-size: var(--text-lg);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: var(--space-2);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.footer-contact i {
    color: var(--color-primary);
    width: 20px;
}

.footer-contact a {
    color: var(--color-gray-400);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

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

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background: var(--color-white);
        padding: var(--space-8);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-base);
        align-items: stretch;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .nav-cta {
        margin-top: var(--space-4);
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .nav-toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .nav-toggle-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .nav-toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-16)) 0 var(--space-16);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: var(--space-8);
    }
    
    /* Services & Benefits */
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .section-header {
        margin-bottom: var(--space-12);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }
}

/* ===================================
   ADVANCED ANIMATIONS & EFFECTS
   =================================== */

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

/* Floating animation for hero shapes */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.hero-shape-1 {
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float 25s ease-in-out infinite reverse;
}

.hero-shape-3 {
    animation: float 15s ease-in-out infinite;
}

/* Gradient animation for hero title */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-title {
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-primary) 50%, var(--color-gray-900) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

/* Shine effect on buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.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%;
}

/* Advanced card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

/* Icon rotation on hover */
.service-icon,
.benefit-icon {
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon,
.benefit-card:hover .benefit-icon {
    transform: rotateY(360deg);
}

/* Smooth scale and glow effect */
.about-card {
    position: relative;
}

.about-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.about-card:hover::after {
    opacity: 0.1;
}

/* Parallax effect for portfolio images */
.portfolio-image {
    will-change: transform;
}

/* Image zoom with overlay fade */
.portfolio-card:hover .portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.2));
    animation: overlayFade 0.4s ease;
}

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

/* Staggered animation for service features */
.service-features li {
    opacity: 0;
    animation: slideInLeft 0.4s ease forwards;
}

.service-card:hover .service-features li:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:hover .service-features li:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:hover .service-features li:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:hover .service-features li:nth-child(4) {
    animation-delay: 0.4s;
}

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

/* Magnetic effect for buttons */
.btn {
    transition: all var(--transition-base);
}

.btn:hover {
    letter-spacing: 0.05em;
}

/* Counter animation for stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-stat {
    animation: countUp 0.6s ease forwards;
}

.hero-stat:nth-child(1) {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-stat:nth-child(2) {
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-stat:nth-child(3) {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Ripple effect on form inputs */
.form-input {
    position: relative;
}

.form-input:focus {
    animation: ripple 0.6s ease;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(0, 102, 255, 0);
    }
}

/* Footer link animation */
.footer-links a {
    position: relative;
    transition: all var(--transition-fast);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.footer-links a:hover::before {
    left: -15px;
    opacity: 1;
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 3D Card flip effect for about cards */
.about-visual {
    perspective: 1000px;
}

.about-card {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.about-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
}

/* Glowing border animation */
@keyframes glowBorder {
    0%, 100% {
        border-color: var(--color-primary);
        box-shadow: 0 0 5px var(--color-primary);
    }
    50% {
        border-color: var(--color-secondary);
        box-shadow: 0 0 20px var(--color-secondary);
    }
}

.service-featured {
    animation: glowBorder 3s ease-in-out infinite;
}

/* Text reveal animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.section-title {
    animation: textReveal 0.8s ease forwards;
}

/* Background pattern animation */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    animation: patternMove 20s ease infinite;
}

@keyframes patternMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 50px);
    }
}

/* CTA section pulse animation */
.cta {
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 6s ease infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Smooth letter spacing on hover for links */
.nav-link {
    transition: all var(--transition-base);
}

.nav-link:hover {
    letter-spacing: 0.03em;
}

/* Icon bounce on hover */
.contact-icon {
    transition: transform var(--transition-base);
}

.contact-card:hover .contact-icon {
    animation: bounce 0.6s ease;
}

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

/* Gradient text animation for section tags */
.section-tag {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* Progress bar animation on scroll */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    width: var(--scroll-progress, 0%);
    transition: width 0.1s ease;
}

/* Enhanced portfolio category badge */
.portfolio-category {
    animation: slideDown 0.4s ease;
}

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

/* Icon pulse animation */
.service-features i {
    animation: iconPulse 2s ease infinite;
}

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

/* Smooth underline animation */
.contact-card-text a {
    position: relative;
    display: inline-block;
}

.contact-card-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.contact-card-text a:hover::after {
    width: 100%;
}

/* ===================================
   PREMIUM MICRO-INTERACTIONS
   =================================== */

/* Smooth focus states for inputs */
.form-group.focused .form-label {
    color: var(--color-primary);
    transform: translateY(-5px);
    font-size: var(--text-sm);
}

/* Button press effect */
.btn:active {
    transform: scale(0.98);
}

/* Card lift on scroll */
@keyframes cardLift {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glow effect for CTA section */
.cta-title {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Typewriter effect for hero tag */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hero-tag {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 2s steps(40) 0.5s forwards;
    width: 0;
}

/* Breathing animation for WhatsApp button */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite, breathe 3s ease-in-out infinite;
}

/* Blur to focus animation */
@keyframes blurFocus {
    from {
        filter: blur(5px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Staggered entrance for navigation links */
.nav-link {
    animation: slideInTop 0.4s ease forwards;
    opacity: 0;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link:nth-child(5) { animation-delay: 0.5s; }

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

/* Loading state for buttons */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Image lazy load fade */
img.loaded {
    animation: fadeIn 0.6s ease;
}

/* Enhanced shadow on scroll */
.header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Gradient border animation */
@keyframes gradientBorder {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-primary));
    background-size: 200% auto;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: gradientBorder 3s linear infinite;
}

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

/* Text gradient animation */
.hero-stat-number {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Smooth color transition on hover */
.service-features i {
    transition: all var(--transition-base);
}

.service-card:hover .service-features i {
    color: var(--color-secondary);
    transform: scale(1.2);
}

/* Footer wave animation */
.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--color-gray-900);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

/* Morphing shapes */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.about-card-icon {
    animation: morph 8s ease-in-out infinite;
}

/* Elastic bounce */
@keyframes elasticBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.btn-primary:hover {
    animation: elasticBounce 0.6s ease;
}

/* Rainbow border on focus */
@keyframes rainbowBorder {
    0% { border-color: var(--color-primary); }
    25% { border-color: var(--color-secondary); }
    50% { border-color: var(--color-accent); }
    75% { border-color: var(--color-secondary); }
    100% { border-color: var(--color-primary); }
}

.form-input:focus {
    animation: rainbowBorder 2s linear infinite;
}

/* Pulsating glow */
@keyframes pulsateGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 102, 255, 0.6);
    }
}

.nav-cta {
    animation: pulsateGlow 2s ease-in-out infinite;
}

/* Slide up from bottom */
@keyframes slideUpBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: slideUpBottom 0.6s ease forwards;
}

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

/* Perspective zoom */
@keyframes perspectiveZoom {
    from {
        transform: perspective(1000px) translateZ(-100px);
        opacity: 0;
    }
    to {
        transform: perspective(1000px) translateZ(0);
        opacity: 1;
    }
}

/* Neon glow effect */
.hero-title:hover {
    animation: neonGlow 1.5s ease-in-out infinite;
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 102, 255, 0.5),
                     0 0 20px rgba(0, 102, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 102, 255, 0.8),
                     0 0 40px rgba(0, 102, 255, 0.5),
                     0 0 60px rgba(0, 102, 255, 0.3);
    }
}

/* Background particle effect */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Curtain reveal */
@keyframes curtainReveal {
    from {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.hero-content {
    animation: curtainReveal 1s ease forwards;
}

/* Noise texture overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
}

/* Expand on hover */
.benefit-card:hover {
    z-index: 10;
}

/* Link underline sweep */
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.footer-links a:hover::after {
    width: 100%;
}

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

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

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

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

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

/* ===================================
   FLOATING BUTTONS
   =================================== */

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-lg);
    box-shadow: var(--shadow-lg);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

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

/* Responsive floating buttons */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: var(--text-xl);
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 85px;
        right: 20px;
        font-size: var(--text-base);
    }
}