/* ==========================================
   GALVIS TECH SOLUTIONS - DESIGN SYSTEM
   High-End Boutique Software Agency
   ========================================== */

/* ===== CSS VARIABLES & DESIGN TOKENS ===== */
:root {
    /* Color Palette - Galvis Tech Brand */
    --color-deep-navy: #1a3d6b;
    --color-navy-light: #2563a8;
    --color-navy-lighter: #2196F3;

    --color-brand-blue: #2196F3;
    --color-brand-blue-light: #42A5F5;
    --color-brand-blue-dark: #1E88E5;

    --color-gray-brand: #9E9E9E;
    --color-gray-brand-light: #BDBDBD;
    --color-gray-brand-dark: #757575;

    --color-white: #FFFFFF;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-700: #374151;
    --color-black: #0D0D0D;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes - Responsive Scale */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */
    --text-7xl: 4.5rem;
    /* 72px */
    --text-8xl: 6rem;
    /* 96px */

    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Shadows - Premium Depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow-blue: 0 0 20px rgba(33, 150, 243, 0.3);
    --shadow-glow-blue-bright: 0 0 30px rgba(33, 150, 243, 0.4);

    /* Border Radius */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-2xl: 1.5rem;
    /* 24px */

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-popover: 400;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-200);
    background-color: var(--color-deep-navy);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-brand-blue-dark) 0%, var(--color-brand-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-6);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top right, rgba(33, 150, 243, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(158, 158, 158, 0.04) 0%, transparent 50%),
        var(--color-deep-navy);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: var(--z-base);
    max-width: 1100px;
    text-align: center;
    padding: 0 var(--space-6);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 800;
    margin-bottom: var(--space-8);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-gray-300);
    margin-bottom: var(--space-12);
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-brand-blue-dark) 0%, var(--color-brand-blue-light) 100%);
    border: none;
    border-radius: var(--radius-2xl);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue-bright), var(--shadow-xl);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-arrow {
    transition: transform var(--transition-base);
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--space-24) var(--space-6);
    background: linear-gradient(180deg, var(--color-deep-navy) 0%, var(--color-navy-light) 100%);
    position: relative;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--color-gray-300);
    text-align: center;
    margin-bottom: var(--space-16);
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.2), var(--shadow-xl);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--color-brand-blue);
}

.service-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.service-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-gray-300);
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-section {
    padding: var(--space-24) var(--space-6);
    background: var(--color-navy-light);
}

.about-description {
    max-width: 900px;
    margin: 0 auto var(--space-16);
    text-align: center;
}

.about-text {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-gray-200);
    margin-bottom: var(--space-6);
    font-weight: 400;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--color-brand-blue-light);
    font-weight: 600;
}


.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: var(--space-8);
    transition: transform var(--transition-base);
}

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

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.05) 100%);
    border-radius: 50%;
    color: var(--color-brand-blue);
}

.why-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.why-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-gray-300);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--space-24) var(--space-6);
    background: var(--color-deep-navy);
    position: relative;
    z-index: 10;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.info-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-blue);
    flex-shrink: 0;
}

.info-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
    color: var(--color-white);
}

.info-content p {
    color: var(--color-gray-300);
    font-size: var(--text-base);
    overflow-wrap: break-word;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-200);
    margin-left: var(--space-1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: var(--space-4);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-brand-blue);
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Select Styling */
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    cursor: pointer;
}

/* Validation */
.error-message {
    color: #EF4444;
    font-size: var(--text-xs);
    margin-top: 4px;
    height: 0;
    overflow: hidden;
    transition: all var(--transition-fast);
    opacity: 0;
}

.form-group.has-error .error-message {
    height: auto;
    opacity: 1;
    margin-top: 4px;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #EF4444;
}

/* Success State */
.contact-success {
    text-align: center;
    padding: var(--space-4);
}

.success-icon {
    margin-bottom: var(--space-6);
}

.contact-success h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    color: #10B981;
}

.contact-success p {
    color: var(--color-gray-300);
}

.text-link {
    background: none;
    border: none;
    color: var(--color-brand-blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: var(--text-base);
}

.hidden {
    display: none !important;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Adjustments for specific elements */
.overflow-visible {
    overflow: visible !important;
}

/* Desktop Width */
.w-full {
    width: 100%;
}

/* FOOTER */
.footer {
    background: var(--color-black);
    padding: var(--space-16) var(--space-6) var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-gray-300);
}

.footer-heading {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-gray-300);
    font-size: var(--text-base);
    transition: color var(--transition-base);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brand-blue);
    transition: width var(--transition-base);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.newsletter-form {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-brand-blue);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-input::placeholder {
    color: var(--color-gray-300);
}

.newsletter-button {
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--color-brand-blue-dark) 0%, var(--color-brand-blue-light) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-heading);
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-gray-300);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
    transform: translateY(-2px);
}

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

.copyright {
    font-size: var(--text-sm);
    color: var(--color-gray-300);
}

/* Responsive Breakpoints & Mobile Optimization */

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

@media (max-width: 768px) {
    :root {
        --space-16: 3rem;
        --space-20: 3.5rem;
        --space-24: 4rem;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .section-subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-8);
    }

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

    .contact-container {
        padding: var(--space-6);
        border-radius: var(--radius-xl);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .info-content p {
        font-size: var(--text-sm);
    }
    
    .hero-section {
        padding-top: var(--space-24);
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

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

    .service-card {
        padding: var(--space-6);
    }
}

/* Accessibility: Keyboard Focus */
.keyboard-nav *:focus {
    outline: 2px solid var(--color-brand-blue-light) !important;
    outline-offset: 3px !important;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}