/* =========================================
   Digital Innovations - Premium CSS Design System
   ========================================= */

/* --- Variables & Theming --- */
:root {
    /* Color Palette */
    --bg-main: #0D0D0D;
    --bg-secondary: #1A1A1A;
    --bg-glass: rgba(26, 26, 26, 0.7);
    --bg-glass-hover: rgba(38, 38, 38, 0.8);

    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;

    --accent-blue: #3B82F6;
    --accent-blue-hover: #2563EB;
    --accent-purple: #8b5cf6;
    --accent-teal: #14b8a6;
    --accent-green: #10b981;
    --accent-wa: #25D366;
    /* WhatsApp Green */

    --gradient-primary: linear-gradient(135deg, #60A5FA 0%, var(--accent-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;

    /* Effects */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-light: 1px solid rgba(255, 255, 255, 0.15);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* --- Utility Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.dark-bg {
    background-color: var(--bg-secondary);
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-2 {
    margin-top: 2rem;
}

.w-100 {
    width: 100%;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(59, 130, 246, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

/* --- Backgrounds & Effects --- */
.bg-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.bg-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.bg-2 {
    bottom: 20%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue-hover) 0%, transparent 70%);
    animation-delay: -5s;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
    background: rgba(13, 13, 13, 0.3);
    /* Faded black / Glass effect */
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 0;
    /* removes gap below logo image */
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-blue);
}

.nav-logo {
    height: 75px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin: 0;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.85;
}

.footer-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    mix-blend-mode: screen;
}

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

.nav-links {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-normal);
}

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

.nav-links:hover,
.nav-links.active {
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 6rem);
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.glow-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.stat h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.stat p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}



.hero-graphic {
    position: relative;
    height: 500px;
}

.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 70%;
    z-index: 2;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
}

.card-header {
    height: 30px;
    border-bottom: var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots .r {
    background: #ef4444;
}

.dots .y {
    background: #f59e0b;
}

.dots .g {
    background: #10b981;
}

.url {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 4px;
}

.card-body {
    padding: 1.5rem;
}

.mock-nav {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 20px;
}

.mock-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.mock-title {
    width: 60%;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.mock-subtitle {
    width: 40%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.mock-box {
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.floating-card {
    position: absolute;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    animation: float 6s ease-in-out infinite;
}

.icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-wrapper.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.icon-wrapper.green {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.floating-card h4 {
    font-size: 1rem;
}

.floating-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.f-1 {
    top: 10%;
    right: -12%;
    z-index: 3;
    animation-delay: 0s;
}

.f-2 {
    bottom: 20%;
    left: -10%;
    z-index: 3;
    animation-delay: 1.5s;
}

.f-3 {
    bottom: 5%;
    right: 10%;
    z-index: 3;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- Section Headers --- */
.section-header {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 2000px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.img-wrapper {
    position: relative;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-main));
    border: var(--border-glass-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}

.display-icon {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.features-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.features-list li {
    display: flex;
    gap: 1.2rem;
}

.f-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.f-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.f-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

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

.project-card {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.project-img {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-p1 {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.bg-p2 {
    background: linear-gradient(135deg, #374151, #111827);
}

.bg-p3 {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.p-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.project-card:hover .p-icon {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
}

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

.view-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--bg-main);
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.project-card:hover .view-btn {
    transform: translateY(0);
}

.project-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1.5rem;
    z-index: 3;
    pointer-events: none;
    transform: translateY(0);
    transition: var(--transition-normal);
}

.p-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-card:hover .project-info {
    transform: translateY(-5px);
}

/* --- Contact Section --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.c-card {
    padding: 2.5rem;
    height: 100%;
}

.c-items {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.c-item {
    display: flex;
    gap: 1rem;
}

.c-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.c-icon.whatsapp {
    color: var(--accent-wa);
    background: rgba(37, 211, 102, 0.1);
}

.c-item h5 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.c-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.chat-link {
    font-size: 0.9rem;
    color: var(--accent-wa);
    font-weight: 500;
}

.chat-link:hover {
    text-decoration: underline;
}

.s-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.s-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border-glass-light);
}

.s-icons a:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

#contactForm {
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: var(--border-glass-light);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-normal);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-group label {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    pointer-events: none;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-secondary);
    padding: 0 0.4rem;
    color: var(--accent-blue);
    border-radius: 4px;
}

textarea {
    resize: vertical;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-main);
    padding: 4rem 0 2rem;
    border-top: var(--border-glass);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a,
.footer-links li {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: var(--border-glass-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal {
    display: flex;
    gap: 1.5rem;
}

.legal a:hover {
    color: white;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-secondary);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    border: var(--border-glass);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

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

.modal-content {
    overflow-y: auto;
    padding-bottom: 2rem;
}

.m-header {
    height: 250px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
}

.m-body {
    padding: 2.5rem;
}

.m-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.m-tags .tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: none;
}

.m-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.m-review {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass-light);
    border-left: 4px solid var(--accent-blue);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.m-review p {
    font-style: italic;
    margin-bottom: 1rem;
}

.m-review span {
    font-weight: 600;
    color: var(--accent-blue);
}

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

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

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.reveal.fade-in-left.active,
.reveal.fade-in-right.active {
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* --- Responsive --- */
@media (max-width: 992px) {

    .hero-layout,
    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-graphic {
        height: 400px;
        display: none;
    }

    /* Hide heavy graphic on mobile */
    .hero-layout {
        display: block;
        text-align: center;
    }

    .hero-subtitle {
        margin: 1.5rem auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }

    .badge {
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .contact-layout {
        padding: 0 16px; /* equal space left and right */
    }

    .c-card {
        padding: 1rem;
        width: 100%;
        margin-right: -5px;
    }
}


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

    /* Reset horizontal transitions on mobile to prevent horizontal viewport stretch and text clipping */
    .fade-in-left,
    .fade-in-right {
        transform: translateY(15px);
    }
    
    .reveal.fade-in-left.active,
    .reveal.fade-in-right.active {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .contact {
    padding-top: 120px;
    min-height: 80vh;
}

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        padding-bottom: 10vh;
        visibility: hidden; /* Hide offscreen menu from viewport calculations when closed */
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Process steps timeline mobile view */
    .process-steps::before {
        display: none;
    }

    .process-steps {
        gap: 2rem;
    }

    /* Trust items adjust spacing */
    .trust-items {
        gap: 2.5rem;
    }

    /* Stats divider hide on mobile */
    .stat-divider {
        display: none;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    /* Experience badge responsive offset */
    .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 1rem;
    }

    .experience-badge .number {
        font-size: 2rem;
    }

    /* CTA box container padding scaling */
    .cta-box {
        padding: 45px 24px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    /* Contact Form responsive sizing */
    #contactForm {
        padding: 1.8rem;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .why-stats {
        grid-template-columns: 1fr;
    }

    #contactForm {
        padding: 1.2rem;
    }

    .modal-container {
        width: 95%;
        border-radius: 16px;
    }

    .m-header {
        height: 180px;
    }

    .m-body {
        padding: 1.5rem;
    }

    .m-title {
        font-size: 1.5rem;
    }
}