/* ========================================
   CSS CUSTOM PROPERTIES & RESET
======================================== */
:root {
    /* Color Palette */
    --primary: #1a47fb;
    --accent: #00d9ff;
    --background: rgba(240, 242, 254, 0.85);
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a47fb 0%, #00d9ff 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 71, 251, 0.9) 0%, rgba(0, 217, 255, 0.9) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    /* Backgrounds */
    --background-transparent: rgba(240, 242, 254, 0.7);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(26, 71, 251, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 71, 251, 0.12);
    --shadow-lg: 0 8px 32px rgba(26, 71, 251, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   CONTAINER & LAYOUT
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
}

/* ========================================
   NAVIGATION BAR
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: white;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--dark);
}

.logo img {
    width: 70px;
    object-fit: contain;
    transition: var(--transition);
}

/* Logo white version (default) */
.logo-white {
    display: block;
}

.logo-black {
    display: none;
}

/* When scrolled, swap logos */
.navbar.scrolled .logo-white {
    display: none;
}

.navbar.scrolled .logo-black {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: white;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--dark);
}

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

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

.nav-link.active {
    color: var(--accent);
}

.navbar.scrolled .nav-link.active {
    color: var(--primary);
}

.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar.scrolled .language-switcher {
    background: var(--light-gray);
}

.lang-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    color: white;
}

.navbar.scrolled .lang-btn {
    color: var(--dark);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: rgba(26, 71, 251, 0.1);
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .mobile-toggle span {
    background: var(--dark);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 100px;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

/* Ensure content stays on top */
section {
    position: relative;
    z-index: 1;
    background-color: transparent;
    /* Default transparent to show animation */
}

/* Sections that should hide the background */
section.bg-white {
    background-color: white !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroFloat 4s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s 0.2s ease-out backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.4s ease-out backwards;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SECTION TITLES
======================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(26, 71, 251, 0.08);
    position: relative;
    z-index: 2;
    /* Ensure card is above background */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Service Detail Page Styles */
.services-grid-detail {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.service-card-detail {
    padding: 36px 32px;
}

.service-card-detail .service-desc {
    margin-bottom: 20px;
    font-size: 15px;
}

.service-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(26, 71, 251, 0.1);
    padding-top: 20px;
}

.service-sub-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.5;
}

.service-sub-list li i {
    color: var(--primary);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.service-sub-list li span {
    color: var(--gray);
}

/* ========================================
   PORTFOLIO SECTION
======================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

/* Removed hover effects as requested */
/* .portfolio-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
} */

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

/* Removed zoom effect */
/* .portfolio-item:hover img {
    transform: scale(1.1);
} */

/* Removed overlay styles */
.portfolio-overlay {
    display: none;
}

.project-count {
    font-size: 11px;
    color: var(--gray);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

.portfolio-card-info {
    padding: 20px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-card-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

.portfolio-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-view-detail {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-view-detail:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-view-detail i {
    font-size: 10px;
}

.portfolio-category {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.portfolio-tech {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--background);
}

.portfolio-tech i {
    color: var(--primary);
    font-size: 14px;
}

.portfolio-tech span {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.author-info h5 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--gray);
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 24px;
    margin: 80px 0;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* ========================================
   STATS SECTION
======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 32px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

/* ========================================
   TEAM GRID
======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.team-member {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: 700;
}

.member-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.member-role {
    color: var(--gray);
    font-size: 14px;
}

/* ========================================
   PROCESS TIMELINE (VERTICAL)
======================================== */
.process-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
}

.process-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step-vertical {
    display: flex;
    gap: 24px;
    position: relative;
    padding-bottom: 40px;
}

.process-step-vertical:last-child {
    padding-bottom: 0;
}

.process-step-vertical:last-child .step-line {
    display: none;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 60px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
    /* White halo */
}

.step-line {
    flex: 1;
    width: 2px;
    background: rgba(26, 71, 251, 0.2);
    margin-top: 10px;
    min-height: 60px;
}

.step-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    transition: var(--transition);
    border: 1px solid rgba(26, 71, 251, 0.05);
}

.step-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 71, 251, 0.3);
}

.step-content h4 {
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Image Side */
.process-image-wrapper {
    position: sticky;
    top: 100px;
}

/* 
.process-image-placeholder {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 10px;
} */

.process-image-placeholder img {
    width: 80%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.process-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.process-overlay i {
    font-size: 48px;
    opacity: 0.8;
}

.process-overlay span {
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Responsive Process */
@media (max-width: 991px) {
    .process-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-image-wrapper {
        position: relative;
        top: 0;
        order: -1;
        /* Image on top for mobile/tablet */
        max-width: 500px;
        margin: 0 auto;
    }

    .process-image-placeholder img {
        max-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .process-step-vertical {
        gap: 16px;
    }

    .step-marker {
        width: 40px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ========================================
   CONTACT FORM
======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 71, 251, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.info-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.footer-logo img {
    width: 90px;
    object-fit: contain;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: start;
    gap: 12px;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes heroFloat {

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

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



/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 42px;
    }

    .section-title h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero {
        margin-top: -70px;
        padding: 60px 0;
        min-height: auto;
        padding-top: 170px;
    }

    .hero-split {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image,
    .modal-info {
        flex: 1 1 100%;
    }

    .modal-image {
        height: 250px;
    }

    .modal-info {
        padding: 30px;
    }

    .modal-info h3 {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   GLOBAL MODAL STYLES (Fix for scoping issues)
======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    display: block;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    /* Centered vertically/horizontally */
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    /* Default to row on desktop */
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #333;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    z-index: 100;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-image {
    flex: 1 1 50%;
    min-width: 300px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    flex: 1 1 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-cat {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.modal-info h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark);
}

.modal-info p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.modal-tech {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-tech strong {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

.modal-tech span {
    color: var(--primary);
}

/* Owl Carousel Navigation Override */
.portfolio-section {
    position: relative;
}

.owl-theme .owl-nav {
    margin-top: 0;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    pointer-events: none;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white !important;
    color: var(--primary) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 20px !important;
    transition: all 0.3s ease;
    margin: 0;
    position: absolute;
    pointer-events: all;
}

.owl-carousel .owl-nav button.owl-prev {
    left: -60px;
}

.owl-carousel .owl-nav button.owl-next {
    right: -60px;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: scale(1.1);
}

/* Responsive Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        margin: 10% auto;
        width: 95%;
    }

    .modal-image {
        height: 250px;
        flex: none;
    }

    .modal-info {
        padding: 25px;
    }

    .modal-info h3 {
        font-size: 24px;
    }
}

/* ========================================
   TECHNOLOGY SECTION
======================================== */
.tech-section {
    padding: 100px 0;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: default;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.2);
}

.tech-icon {
    font-size: 40px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

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

.tech-img {
    height: 40px;
    width: auto;
    max-width: 45px;
    object-fit: contain;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-img {
    transform: scale(1.1);
}


.tech-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-laravel {
    color: #FF2D20;
}

.tech-wordpress {
    color: #21759B;
}

.tech-flutter {
    color: #02569B;
}

.tech-figma {
    color: #F24E1E;
}

.tech-postgres {
    color: #336791;
}

.tech-google {
    color: #4285F4;
}

.tech-nodejs {
    color: #339933;
}

.tech-react {
    color: #61DAFB;
}

.tech-php {
    color: #777BB4;
}

.tech-python {
    color: #3776AB;
}

.tech-vue {
    color: #4FC08D;
}

.tech-roblox {
    color: #000000;
}

.tech-godot {
    color: #478CBF;
}

.tech-mysql {
    color: #4479A1;
}

.tech-icon.roblox-tilt {
    transform: rotate(15deg);
}

.tech-card:hover .tech-icon.roblox-tilt {
    transform: rotate(15deg) scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .tech-card {
        padding: 20px 15px;
    }

    .tech-icon {
        font-size: 32px;
    }

    /* Mobile Header Fix */
    .navbar {
        margin-top: -1px;
        /* Fix white gap */
    }

    /* Mobile Language Switcher */
    .language-switcher {
        transform: scale(0.9);
        /* Slightly smaller */
    }

    .lang-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}