/* =====================================================
   MAGONGWA DIGITAL ENTERPRISE - PROFESSIONAL STYLESHEET
   Built with Senior-Level Standards
   ===================================================== */

/* ===== CSS RESET & GLOBAL STYLES ===== */
* {
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* ===== COLOR PALETTE ===== */
    --primary: #6b4bff;
    --primary-light: #8d6bff;
    --primary-dark: #5538cc;
    --primary-darker: #3f1f9f;
    
    --gradient: linear-gradient(135deg, #6b4bff 0%, #b174ff 100%);
    --gradient-reverse: linear-gradient(315deg, #6b4bff 0%, #b174ff 100%);
    --gradient-horizontal: linear-gradient(90deg, #6b4bff 0%, #b174ff 100%);
    
    --dark: #0f0f17;
    --dark-light: #1a1a2e;
    --dark-lighter: #25253d;
    
    --light: #ffffff;
    --bg-light: #f7f7ff;
    --bg-secondary: #f0f0f8;
    
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-light: #888;
    --text-lighter: #aaa;
    
    --border: #e0e0e0;
    --border-light: #ececf1;
    
    /* ===== SPACING ===== */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* ===== SHADOWS ===== */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 25px 60px rgba(107, 75, 255, 0.15);
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Light theme fallback */
body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f1419;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    display: flex;
    gap: 6px;
    align-items: center;
}

.logo-letter {
    background: var(--gradient);
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.logo-letter:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

    .hamburger.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

/* ===== HERO SECTION ===== */
section {
    padding: 100px 0;
    position: relative;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 75, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Scroll state for navbar */
.navbar.scrolled {
    height: 64px;
    background: rgba(10,12,16,0.85);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-md);
    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: var(--transition-slow);
}

.btn-primary:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Hero Floating Cards */
.hero-image {
    flex: 1;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Blobs */
.animated-blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(107, 75, 255, 0.3), rgba(177, 116, 255, 0.1));
    filter: blur(60px);
    opacity: 0.5;
    animation: rotatePulse 15s linear infinite;
}

.blob-1 {
    width: 350px;
    height: 350px;
    top: 5%;
    left: 5%;
    background: radial-gradient(circle at 30% 30%, rgba(107, 75, 255, 0.4), transparent);
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle at 70% 70%, rgba(177, 116, 255, 0.3), transparent);
    animation: rotatePulse 20s linear infinite reverse;
}

/* Stats Boxes */
.stats-box {
    position: absolute;
    background: rgba(37, 45, 61, 0.8);
    backdrop-filter: blur(20px);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(107, 75, 255, 0.3);
    animation: fadeIn 0.8s ease;
}

.stats-1 {
    top: 50px;
    right: 40px;
}

.stats-2 {
    bottom: 80px;
    left: 40px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Icon Circles */
.icon-circle {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(107, 75, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 32px rgba(107, 75, 255, 0.1);
    animation: scaleUp 0.6s ease backwards;
    border: 2px solid rgba(107, 75, 255, 0.3);
}

.icon-1 {
    top: 200px;
    left: 30px;
}

.icon-2 {
    bottom: 150px;
    right: 50px;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    25% {
        border-radius: 70% 30% 46% 54% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 33% 67% 33% 67% / 66% 33% 67% 33%;
    }
    75% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    }
}

@keyframes rotatePulse {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes floatStats1 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatStats2 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotateBorder {
    0% {
        box-shadow: 0 8px 32px rgba(107, 75, 255, 0.1), inset 0 0 20px rgba(107, 75, 255, 0.1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(107, 75, 255, 0.3), inset 0 0 30px rgba(107, 75, 255, 0.2);
    }
    100% {
        box-shadow: 0 8px 32px rgba(107, 75, 255, 0.1), inset 0 0 20px rgba(107, 75, 255, 0.1);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    25% { 
        transform: translateY(-25px) rotate(2deg);
    }
    50% { 
        transform: translateY(-35px) rotate(-2deg);
        opacity: 0.95;
    }
    75% { 
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes floatCard1 {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    33% { 
        transform: translateY(-30px) translateX(10px) rotate(-5deg) scale(1.02);
    }
    66% { 
        transform: translateY(-15px) translateX(-8px) rotate(3deg) scale(0.98);
    }
    100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
}

@keyframes floatCard2 {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    33% { 
        transform: translateY(-28px) translateX(-12px) rotate(4deg) scale(0.98);
    }
    66% { 
        transform: translateY(-18px) translateX(10px) rotate(-3deg) scale(1.02);
    }
    100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
}

@keyframes floatCard3 {
    0% { 
        transform: translateY(-50%) translateX(0px) rotate(0deg) scale(1);
    }
    33% { 
        transform: translateY(calc(-50% - 25px)) translateX(-15px) rotate(-6deg) scale(1.03);
    }
    66% { 
        transform: translateY(calc(-50% - 10px)) translateX(12px) rotate(4deg) scale(0.97);
    }
    100% { 
        transform: translateY(-50%) translateX(0px) rotate(0deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 25px 60px rgba(107, 75, 255, 0.25);
    }
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== SECTION BASE STYLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: #1a1f2e;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(107, 75, 255, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    animation: fadeInUp 0.8s ease;
}

.service-card {
    background: #252d3d;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(107, 75, 255, 0.2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: scaleUp 0.6s ease 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; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 75, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose {
    background: #0f1419;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature-item {
    background: #252d3d;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(107, 75, 255, 0.2);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    animation: slideInFromLeft 0.6s ease backwards;
    position: relative;
    overflow: hidden;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 75, 255, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 1;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--text-light);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: #1a1f2e;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 28px;
    color: white;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-image {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-lg);
    /* Professional Unsplash photo with dark overlay for contrast */
    background: linear-gradient(rgba(15,20,25,0.6), rgba(15,20,25,0.6)), url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=1200&auto=format&fit=crop") center/cover;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 75, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.about-image:hover {
    transform: scale(1.02);
}

.skills {
    margin-top: 40px;
}

.skills h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: var(--gradient);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: scaleUp 0.5s ease backwards;
    position: relative;
    overflow: hidden;
}

.skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-tag:nth-child(2) { animation-delay: 0.15s; }
.skill-tag:nth-child(3) { animation-delay: 0.2s; }
.skill-tag:nth-child(4) { animation-delay: 0.25s; }
.skill-tag:nth-child(5) { animation-delay: 0.3s; }
.skill-tag:nth-child(6) { animation-delay: 0.35s; }

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    font-size: 32px;
    min-width: 50px;
}

.info-item h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(107, 75, 255, 0.1);
}

.contact-form button {
    align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 15px;
}

.social-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Small utility for reveal animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Contact form success message */
.form-success {
    background: rgba(34, 197, 94, 0.12);
    color: #d1fae5;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    margin-top: 12px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 20px;
        background: white;
        padding: 30px;
        box-shadow: var(--shadow);
        gap: 0;
    }

    /* When open on mobile */
    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .hero {
        flex-direction: column;
        min-height: unset;
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero::before {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        margin: 20px auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        min-height: 300px;
    }

    .animated-blob {
        filter: blur(30px);
    }

    .blob-1 {
        width: 200px;
        height: 200px;
    }

    .blob-2 {
        width: 150px;
        height: 150px;
    }

    .stats-box {
        padding: 16px 20px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 20px;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 300px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    section {
        padding: 60px 0;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .nav-links {
        gap: 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .service-card,
    .feature-item {
        padding: 24px;
    }

    .skill-tags {
        justify-content: center;
    }

    .footer .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .contact-form {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a2e;
        --bg-secondary: #25253d;
        --text: #f5f5f5;
        --text-secondary: #d0d0d0;
        --border: #3a3a52;
        --border-light: #2a2a3e;
    }

    body {
        background: var(--bg-light);
    }

    .navbar {
        background: rgba(26, 26, 46, 0.85);
    }

    .service-card,
    .feature-item {
        background: var(--dark-light);
        border-color: var(--border);
    }
}


.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--neon-green);
    margin-right: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.social-link i {
    font-size: 22px;
}

.social-link:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

