/* ==========================================
   CSS Custom Properties & Tokens (Light Startup Theme)
   ========================================== */
   :root {
    /* Colors */
    --clr-bg: #ffffff;
    --clr-bg-alt: #f8fafc;
    --clr-text: #0f172a;
    --clr-text-muted: #64748b;
    
    --clr-primary: #3b82f6; /* Vibrant Blue */
    --clr-primary-glow: rgba(59, 130, 246, 0.4);
    --clr-secondary: #0ea5e9; /* Light Blue */
    --clr-accent: #f59e0b; /* Bright Amber */
    
    --clr-border: rgba(15, 23, 42, 0.08); /* Darkened border for light theme */
    --clr-glass-bg: rgba(255, 255, 255, 0.85); /* Light glass bg */
    --clr-glass-border: rgba(15, 23, 42, 0.05);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Layout */
    --nav-height: 70px;
    --container-padding: 2rem;
    --container-max: 1200px;
    
    /* Transitions & Shadows */
    --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);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 10px 25px -5px var(--clr-primary-glow);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.text-light { color: var(--clr-text); }
.text-sm { font-size: 0.875rem; }

/* ==========================================
   Containers & Layout
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

/* Reduce gap between Hero and About Us */
#despre.section {
    padding-top: 2.5rem;
}

.dark-bg {
    background-color: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--clr-text), var(--clr-text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    border-radius: 2px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 8px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--clr-primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--clr-bg);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--clr-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.w-100 { width: 100%; }

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--clr-text), var(--clr-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.1em; /* Prevent clipping of the 'S' */
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.9));
}

.logo-text .dot {
    color: var(--clr-primary);
    -webkit-text-fill-color: var(--clr-primary);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 1000; /* Maximum requested bold */
    color: var(--clr-text-muted);
    position: relative;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(255, 255, 255, 0.8);
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-text);
    text-shadow: 0 1px 4px rgba(255, 255, 255, 1), 0 2px 8px rgba(255, 255, 255, 0.9);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

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

.btn-contact {
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    border: none;
    color: var(--clr-bg);
    background: var(--clr-primary);
    font-weight: 600;
    text-shadow: none; /* override nav-link shadow */
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
    transition: all var(--transition-normal);
}

.btn-contact::after { display: none; }
.btn-contact:hover, .nav-link.active.btn-contact {
    background: var(--clr-secondary);
    color: var(--clr-bg);
    text-shadow: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--clr-text);
    transition: all var(--transition-normal);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Top padding accounts for the fixed navbar, bottom adds breathing room */
    padding: calc(var(--nav-height) + 3rem) var(--container-padding) 5rem;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-image: 
        linear-gradient(to right, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.8) 40%, rgba(248, 250, 252, 0.4) 100%), 
        url('hero-bg.png');
    background-size: cover;
    background-position: center;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Less blur for light theme so gradients pop more */
    opacity: 0.6; /* Slightly more opaque */
    animation: float 20s infinite alternate;
}

.sphere-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--clr-primary) 0%, transparent 70%);
}

.sphere-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--clr-secondary) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--clr-primary-glow);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(15, 23, 42, 0.15);
}

.highlight {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.7)); /* Drop shadow works better than text shadow on background-clip text */
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    font-weight: 500; /* Made slightly bolder for readability */
    margin-bottom: 2.5rem;
    max-width: 650px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

.about-card {
    background: var(--clr-bg); /* Use base background */
    border: 1px solid var(--clr-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm); /* Add subtle shadow */
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3); /* Primary border on hover */
    box-shadow: var(--shadow-md);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--clr-text-muted);
}

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

.service-card {
    background: var(--clr-bg-alt); /* slightly inset background */
    border: 1px solid var(--clr-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1); /* Lighter shadow */
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--clr-text-muted);
    position: relative;
    z-index: 2;
}

/* ==========================================
   Contact Section Professional Redesign
   ========================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: stretch; /* Make both columns equal height */
}

.text-muted { color: var(--clr-text-muted); }

/* Left Column Flex Container */
.contact-cards-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.contact-card {
    display: flex;
    align-items: flex-start; /* Changed from center to top align with icon */
    gap: 1.5rem;
    padding: 1.5rem 2rem; /* Give it slightly more horizontal padding */
    background: var(--clr-bg-alt); /* Match corporate box */
    border: 1px solid var(--clr-border);
    border-radius: 16px; /* Match corporate box */
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-card-icon {
    font-size: 1.5rem; /* Match corporate icon better */
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-content h4 {
    font-size: 1.125rem;
    color: var(--clr-text);
    margin-bottom: 0.25rem;
}

.contact-card-content p {
    color: var(--clr-text-muted);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.contact-card-content a {
    color: var(--clr-text);
    transition: color var(--transition-fast);
}

.contact-card-content a:hover {
    color: var(--clr-primary);
}

/* Contact Form Container */
.contact-form-container {
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--clr-text-muted);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

.form-group input, 
.form-group textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--clr-bg); /* Use solid color, no transparency */
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    color: var(--clr-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); /* Updated stroke color to slate-500 */
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-select option {
    background-color: var(--clr-bg);
    color: var(--clr-text);
}

.form-group input:focus, 
.form-group textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: var(--clr-bg);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--clr-text-muted);
    opacity: 0.7;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: auto; /* Push submit button to bottom of form */
}

.btn-icon {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn:hover:not(:disabled) .btn-icon {
    transform: translateX(4px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.text-success { color: var(--clr-accent); }
.text-error { color: #ef4444; }

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    color: var(--clr-text-muted);
    margin-top: 0.5rem;
    max-width: 300px;
}

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

.footer-links a {
    color: var(--clr-text-muted);
    font-weight: 500;
}

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

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

/* ==========================================
   Animations & Interactivity
   ========================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .corporate-details-block {
        margin-top: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--clr-bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s ease-in-out;
    }
    
    .nav-links.nav-active {
        left: 0;
    }
    
    .nav-links li {
        opacity: 0;
    }
    
    .nav-links.nav-active li {
        opacity: 1;
        transition: opacity 0.5s ease 0.3s;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 6rem var(--container-padding) 3rem;
    }
    
    
    .footer-content {
        flex-direction: column;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
} /* Această închidere aparținea de @media (max-width: 768px) anterior. O las intactă. */

/* =========================================
   Cookie Consent Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 450px;
    background-color: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-header svg {
    color: var(--clr-primary);
}

.cookie-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--clr-text);
}

.cookie-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

.cookie-body a {
    color: var(--clr-primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.cookie-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.btn-outline:hover {
    background: var(--clr-bg-alt);
    border-color: var(--clr-text-muted);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}
