/**
 * FRANCISCO MANNEH — PORTFOLIO REDESIGN
 * Mobile-First, Responsive, Glassmorphic
 */

 :root {
    /* Color Palette */
    --bg-base: #0a0a0f;
    --bg-surface: rgba(20, 20, 25, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    --primary: #be185d; /* Dark pink / purpleish */
    --primary-glow: rgba(190, 24, 93, 0.5);
    
    --secondary: #059669; /* Emerald Green */
    --secondary-glow: rgba(5, 150, 105, 0.5);
    
    --accent: #2563eb;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Border & Shadows */
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Navigation heights */
    --top-nav-height: 70px;
    --bottom-nav-height: 65px;
}

/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* =========================================
   UTILITIES
========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 375px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (min-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 4rem 0;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-desc {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-primary {
    background-image: linear-gradient(135deg, #f43f5e, #be185d);
}

.gradient-secondary {
    background-image: linear-gradient(135deg, #34d399, #059669);
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-glass);
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

@media (min-width: 768px) {
    .glass-card {
        padding: 2rem;
    }
}

.glass-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    min-height: 48px;
    word-wrap: break-word;
    white-space: nowrap;
    width: fit-content;
    max-width: 100%;
}

.lg-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .lg-btn {
        padding: 1.125rem 2.5rem;
        font-size: 1.1rem;
    }
}

.sm-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .sm-btn {
        font-size: 0.9rem;
    }
}

.compact-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    min-height: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #9d174d);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: gap 0.3s ease;
    min-height: 48px;
    padding: 0 0.5rem;
}

.btn-text:hover {
    gap: 0.75rem;
}

/* Touch feedback class (handled in JS) */
.tap-effect {
    transition: transform 0.1s;
}
.tap-effect:active {
    transform: scale(0.96);
}

/* =========================================
   LOADING SCREEN
========================================= */
.loader-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* =========================================
   NAVIGATION SYSTEM
========================================= */

/* Top Navigation (Desktop) */
.top-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--top-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .top-nav {
        padding: 0 1.5rem;
    }
}

.top-nav.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    letter-spacing: 1px;
    color: white;
    white-space: nowrap;
}

.desktop-links {
    display: none; /* Hidden on mobile */
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 0.75rem;
}

@media (min-width: 1024px) {
    .nav-link {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

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

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

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

/* Overlay Navigation */
.overlay-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px);
}

.overlay-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.close-overlay-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-overlay-btn:hover {
    background: rgba(255,255,255,0.25);
}

.overlay-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.overlay-link {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s;
}

.overlay-link i {
    font-size: 1.5rem;
    color: var(--primary);
}

.overlay-link:hover, .overlay-link.active {
    color: #ffffff;
}

.overlay-footer {
    margin-top: auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--text-muted);
    width: 20%;
    height: 100%;
    text-decoration: none;
    transition: color 0.3s;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.3px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1.5rem);
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: #25D366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
    animation: float 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

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

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--top-nav-height);
    padding-bottom: calc(var(--bottom-nav-height) + 2rem);
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(60px);
    z-index: -1;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 480px) {
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        padding: 1.5rem 2rem;
    }
}

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

.stat-num {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: white;
    word-wrap: break-word;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
    display: none;
}

@media (min-width: 480px) {
    .divider {
        display: block;
    }
}


/* =========================================
   SERVICES SECTION
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
    border-radius: 5px;
    font-size: 0.8rem;
    color: white;
}

/* =========================================
   PROJECTS SECTION
========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        gap: 2.5rem;
    }
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .project-content {
        padding: 1.5rem;
    }
}

.project-content h3 {
    font-size: clamp(1.15rem, 4vw, 1.4rem);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* View All Projects Button */
.view-all-projects {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* =========================================
   PROJECTS FILTER & SHOWCASE
========================================= */
.projects-filter {
    padding: 2rem 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 1rem;
}

@media (min-width: 480px) {
    .filter-buttons {
        gap: 1rem;
        padding: 0 1.25rem;
    }
}

@media (min-width: 768px) {
    .filter-buttons {
        gap: 1.5rem;
        padding: 0;
    }
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .filter-btn {
        padding: 0.75rem 1.5rem;
        min-height: 48px;
    }
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), #9d174d);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.projects-showcase {
    padding: 4rem 0 8rem;
}

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

/* =========================================
   ACADEMY SECTION
========================================= */
.academy {
    position: relative;
}

.academy-bg-glow {
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translate(0%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(60px);
    z-index: -1;
}

.academy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.academy-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .academy-item {
        padding: 1.75rem;
    }
}

@media (min-width: 768px) {
    .academy-item {
        padding: 2rem;
    }
}

.academy-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary);
}

.academy-info h3 {
    font-size: clamp(1.15rem, 4vw, 1.4rem);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.academy-info p {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 3vw, 0.95rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-icon {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.image-glass-frame {
    position: relative;
    border-radius: 20px;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.img-fluid {
    border-radius: 12px;
    width: 100%;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-box {
    padding: 1.25rem 1rem;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-box h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: var(--secondary);
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.stat-box span {
    font-size: clamp(0.75rem, 2.5vw, 0.8rem);
    color: var(--text-muted);
    word-wrap: break-word;
}

/* =========================================
   TESTIMONIALS SECTION
========================================= */
.testimonial-slider {
    padding: 1.5rem 1rem;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .testimonial-slider {
        padding: 2rem 1.25rem;
    }
}

@media (min-width: 768px) {
    .testimonial-slider {
        padding: 2rem;
    }
}

.testimonial-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testi-card {
    min-width: 100%;
    padding: 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .testi-card {
        padding: 0 1rem;
    }
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quote {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 0.2rem;
    word-wrap: break-word;
}

.author-info span {
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
    color: var(--text-muted);
    word-wrap: break-word;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary);
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-box {
    padding: 2rem 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .contact-box {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .contact-box {
        padding: 3rem 2rem;
    }
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.whatsapp-cta {
    width: 100%;
    background: #25D366; /* WhatsApp brand */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta:hover {
    background: #20bd5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.alt-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .alt-contact {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   FOOTER
========================================= */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 2rem 1rem;
    margin-bottom: var(--bottom-nav-height); /* For mobile nav */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .footer {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .footer {
        padding: 3rem 0;
    }
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .footer-grid {
        gap: 2rem;
        padding: 0;
    }
}

.footer-brand h2 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    letter-spacing: 1px;
    word-wrap: break-word;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

/* =========================================
   MODAL (FOR SERVICES)
========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 25, 0.9);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    padding: 1.75rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

@media (min-width: 480px) {
    .modal-content {
        padding: 2.5rem;
    }
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body h3 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-body ul {
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: clamp(0.9rem, 3vw, 0.95rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-body li i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* =========================================
   ANIMATIONS (SCROLL REVEAL)
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* =========================================
   MEDIA QUERIES (DESKTOP OPTIMIZATIONS)
========================================= */
@media (min-width: 768px) {
    /* Hide Mobile specific UI */
    .bottom-nav { display: none; }
    .hamburger-btn { display: none; }
    .desktop-links { display: flex; }

    /* Reveal top nav transparent background */
    .top-nav { padding: 0 4rem; }

    .footer { margin-bottom: 0; }
    .floating-whatsapp { bottom: 2rem; right: 2rem; }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }

    .academy-list {
        flex-direction: row;
        gap: 2rem;
    }
    .academy-item {
        flex: 1;
    }

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    /* Projects page responsive */
    .filter-buttons {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .section { padding: 8rem 0; }

    .hero-bg-glow { width: 50vw; height: 50vw; top: 10%; }

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }

    .about-grid { grid-template-columns: 1fr 1fr; }

    .contact-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .whatsapp-cta { width: auto; }

    /* Projects page desktop */
    .projects-showcase {
        padding: 6rem 0 10rem;
    }

    .project-modal {
        max-width: 1000px;
    }
}

/* =========================================
   PROJECT MODAL STYLES
========================================= */
.project-modal {
    max-width: 900px;
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.project-modal .modal-body {
    padding: 2rem;
}

.project-modal h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.project-modal .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-meta-item i {
    color: var(--primary);
}

.project-modal .section-title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary);
}

.project-modal .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-modal .feature-list {
    list-style: none;
    padding: 0;
}

.project-modal .feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.project-modal .feature-list li:last-child {
    border-bottom: none;
}

.project-modal .feature-list li i {
    color: var(--secondary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.project-modal .project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.project-modal .btn {
    flex: 1;
    min-width: 150px;
}