/* ==========================================================================
   AXEV - Premium IT Solutions | Global Styles (Light Theme)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-base: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --secondary: #0284c7;
    --secondary-light: #0ea5e9;

    /* Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
}

/* ==========================================================================
   Background & Gradients
   ========================================================================== */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 70%);
    top: 30%;
    right: -150px;
    animation-delay: -5s;
}

.glow-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

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

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow:
        10px 10px 30px rgba(0, 0, 0, 0.08),
        -10px -10px 30px rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card>* {
    transform: translateZ(20px);
    transition: transform 0.4s ease;
}

.glass-card:hover {
    box-shadow:
        20px 20px 50px rgba(0, 0, 0, 0.12),
        -20px -20px 50px rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.glass-card:hover>* {
    transform: translateZ(40px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 6px 0 #312e81, 0 15px 20px rgba(99, 102, 241, 0.4);
    border: none;
    transform: translateY(0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #312e81, 0 20px 30px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0 #312e81, 0 5px 10px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    box-shadow: 0 6px 0 #cbd5e1, 0 10px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #94a3b8, 0 15px 25px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0 #94a3b8, 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transform: scale(5.5);
    transform-origin: center;
}

nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-links li a.btn-primary {
    opacity: 1;
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
.section {
    padding: 4rem 0;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.02);
}

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

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.card-body {
    padding: 2rem;
    background: #1e1e2e;
    /* Keeping the code block dark for contrast */
    color: #cdd6f4;
}

.mock-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.8;
}

.mock-code p {
    color: #cdd6f4;
    margin-bottom: 0;
}

.mock-code .keyword {
    color: #f38ba8;
}

.mock-code .variable {
    color: #89b4fa;
}

.mock-code .class {
    color: #f9e2af;
}

.mock-code .method {
    color: #a6e3a1;
}

.mock-code .string {
    color: #a6e3a1;
}

.mock-code .boolean {
    color: #fab387;
}

.mock-code .indent {
    padding-left: 2rem;
}

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

.service-card {
    text-align: left;
    background: #ffffff;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-glass);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Inner shadow for depth */
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-in;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(14, 165, 233, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(2px);
    pointer-events: none;
    /* Let the image clicks pass through */
}

.portfolio-overlay i {
    color: white;
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.portfolio-card:hover .portfolio-overlay i {
    transform: scale(1);
}

.portfolio-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: var(--text-main);
}

.portfolio-content p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Technologies Section (Marquee)
   ========================================================================== */
.technologies {
    overflow: hidden;
}

.tech-marquee {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #ffffff;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 3rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.tech-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    align-items: center;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 2rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.3s;
}

.tech-item:hover {
    color: var(--primary);
    opacity: 1;
}

.tech-item i {
    font-size: 2.5rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Clients Section
   ========================================================================== */
.clients {
    overflow: hidden;
}

.client-marquee {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #ffffff;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 3rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.client-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    align-items: center;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    /* Fixed width for consistent logo sizing if needed */
    height: 80px;
    /* Fixed height to keep track aligned */
    margin: 0 2rem;
    opacity: 0.6;
    transition: all 0.3s;
    filter: grayscale(100%);
}

.client-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Removed redundant marquee-client keyframes since we use the updated marquee keyframes */

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card,
.form-card {
    height: 100%;
    padding: 2.5rem;
    text-align: left;
}

.info-card h3,
.form-card h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.icon-wrapper-small {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.info-item p,
.info-item a {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
    text-decoration: none;
    line-height: 1.5;
}

.info-item a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    border: 1px solid rgba(39, 201, 63, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    border: 1px solid rgba(255, 95, 86, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    background: #ffffff;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.img-logo-small {
    height: 50px;
    width: auto;
    mix-blend-mode: multiply;
    transform: scale(5.5);
    transform-origin: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

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

.delay-3 {
    transition-delay: 0.6s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

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

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.pulsing {
    animation: pulse-glow 2s infinite;
}

@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin-slow 15s linear infinite;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        margin: 0 auto;
    }

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

    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-content {
        padding: 1rem;
    }

    .logo img {
        height: 40px;
        transform: scale(4);
        transform-origin: left center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-glass);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

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

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 10;
        margin-left: auto;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
}

/* ==========================================================================
   Image Modal
   ========================================================================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2010;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}