/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Minimal Light Color Palette */
    --color-bg-primary: #FAFBFC;
    --color-bg-secondary: #F5F7FA;
    --color-bg-gradient-start: #FFFFFF;
    --color-bg-gradient-end: #E8EEF5;

    /* Text Colors */
    --color-text-primary: #1A202C;
    --color-text-secondary: #4A5568;
    --color-text-tertiary: #718096;

    /* Accent Colors */
    --color-accent-primary: #667EEA;
    --color-accent-secondary: #764BA2;
    --color-accent-hover: #5568D3;

    /* UI Elements */
    --color-border: #E2E8F0;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(102, 126, 234, 0.15);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: linear-gradient(135deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ========================================
   PARTICLES BACKGROUND
   ======================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* ========================================
   EASTER EGG: MATRIX CANVAS
   ======================================== */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
}

#matrix-canvas.hidden {
    display: none;
}

/* ========================================
   EASTER EGG: CURSOR TRAIL
   ======================================== */
#cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.trail-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--color-accent-primary), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: fade-out 1s ease-out forwards;
}

@keyframes fade-out {
    to {
        opacity: 0;
        transform: scale(0);
    }
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--color-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    color: var(--color-text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-accent-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-accent-primary);
    border: 2px solid var(--color-accent-primary);
}

.btn-secondary:hover {
    background: var(--color-accent-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-title .accent {
    position: relative;
    display: inline-block;
}

.hero-title .accent::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
    border-radius: 2px;
    animation: underline-grow 1s ease-out;
}

@keyframes underline-grow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.float-1,
.float-2,
.float-3 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.float-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-primary);
    top: 10%;
    left: 10%;
    animation: float 20s infinite ease-in-out;
}

.float-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent-secondary);
    bottom: 20%;
    right: 15%;
    animation: float 15s infinite ease-in-out reverse;
}

.float-3 {
    width: 250px;
    height: 250px;
    background: #4299E1;
    top: 50%;
    right: 30%;
    animation: float 18s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* ========================================
   WHY US SECTION
   ======================================== */
.why-us {
    background: var(--color-bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px var(--color-shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.feature-card h3 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: var(--transition-slow);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px var(--color-shadow-hover);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.portfolio-link:hover {
    background: white;
    color: var(--color-accent-primary);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.portfolio-content p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.hosting-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* ========================================
   SEO & DIGITAL IDENTITY SECTION
   ======================================== */
.seo-benefits {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
}

.seo-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.seo-text h3 {
    color: var(--color-text-primary);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-text h3:first-child {
    margin-top: 0;
}

.seo-text p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.benefits-list li {
    padding: 0.75rem 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.seo-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--color-shadow);
    text-align: center;
    transition: var(--transition-slow);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--color-shadow-hover);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-box .stat-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-box p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.seo-cta {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px var(--color-shadow);
}

.highlight-text {
    font-size: 1.3rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
}

.highlight-text em {
    color: var(--color-accent-primary);
    font-style: normal;
    font-weight: 700;
}


/* ========================================
   TECH TAGS
   ======================================== */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--color-bg-secondary);
    color: var(--color-accent-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--color-accent-primary);
    color: white;
    transform: scale(1.05);
}

/* ========================================
   STRENGTHS SECTION
   ======================================== */
.strengths {
    background: var(--color-bg-secondary);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.strength-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: var(--transition-slow);
}

.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px var(--color-shadow-hover);
}

.strength-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.strength-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.strength-value .unit {
    font-size: 2rem;
}

.strength-label {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.strength-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Tech Showcase */
.tech-showcase {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--color-shadow);
}

.tech-showcase h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-item {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
}

.tech-item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--color-shadow);
    text-align: center;
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--color-shadow-hover);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card a {
    color: var(--color-accent-primary);
    font-weight: 600;
}

.contact-card p {
    color: var(--color-text-secondary);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--color-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--color-bg-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-submit {
    width: 100%;
    position: relative;
}

.btn-loader {
    display: inline-block;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #C6F6D5;
    color: #22543D;
}

.form-message.error {
    background: #FED7D7;
    color: #742A2A;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-accent-primary);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.easter-eggs-list {
    font-size: 0.7rem;
    margin-top: 0.75rem;
    opacity: 0.5;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SCROLL PROGRESS
   ======================================== */
.scroll-progress {
    display: none;
    /* Hidden per user request */
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   EASTER EGG MESSAGES
   ======================================== */
.easter-egg-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: white;
    padding: 2rem 3rem;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    z-index: 10000;
    animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pop-in {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.easter-egg-message.hidden {
    display: none;
}

/* Rainbow Mode (Easter Egg) */
body.rainbow-mode {
    animation: rainbow-bg 5s linear infinite;
}

@keyframes rainbow-bg {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
    display: none !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 20px var(--color-shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem var(--spacing-md);
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 1.25rem var(--spacing-md);
        /* Increased from 1rem for better mobile header */
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .feature-card,
    .strength-card,
    .contact-card,
    .contact-form {
        padding: 1.5rem;
    }

    /* SEO Section Responsive */
    .seo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .seo-text h3 {
        font-size: 1.2rem;
    }

    .highlight-text {
        font-size: 1.05rem;
    }
}