/* Variables and General Setup */
:root {
    --primary-blue: #23345A;
    --secondary-blue: #3E5181;
    --dark-blue: #1A2740;
    --accent-blue: #304E98;
    --text-dark: #1F2937;
    --text-light: #5A6A85;
    --red-wire: #D63939;
    --green-wire: #2DAE5B;
    --blue-wire: #2A83C8;
    --bg-light: #F4F7FC;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Base */
h1, h2, h3, h4 {
    color: var(--primary-blue);
    line-height: 1.2;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 36px;
    justify-content: center;
}

.logo-icon span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    position: relative;
}

.logo-icon span::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid #fff;
}

.logo-icon .red-line { background-color: var(--red-wire); margin-left: 0px; }
.logo-icon .red-line::before { background-color: var(--red-wire); }
.logo-icon .green-line { background-color: var(--green-wire); margin-left: 8px; }
.logo-icon .green-line::before { background-color: var(--green-wire); }
.logo-icon .blue-line { background-color: var(--blue-wire); margin-left: 16px; }
.logo-icon .blue-line::before { background-color: var(--blue-wire); }

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 14px;
    color: var(--secondary-blue);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.language-selector {
    display: flex;
    background: #EAF0FF;
    border-radius: 30px;
    padding: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.lang {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.lang.active {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lang:hover:not(.active) {
    color: var(--primary-blue);
    background: rgba(255,255,255,0.5);
}

.lang img {
    border-radius: 3px;
    width: 20px;
    height: 14px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 200px;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 39, 64, 0.95) 0%, rgba(26, 39, 64, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h2 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero .subtitle-it {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero .subtitle-it strong {
    font-weight: 700;
}

.hero .subtitle-en {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 50px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(48, 78, 152, 0.4);
}

.btn-primary:hover {
    background: #3B5BBD;
    border-color: #3B5BBD;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 78, 152, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Decorative SVG Lines */
.dec-lines-container {
    position: absolute;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

.hero-lines {
    bottom: -40px;
    height: 100px;
}

.middle-lines {
    top: -40px;
    height: 80px;
    transform: scaleX(-1); /* Flips the direction slightly for visual interest */
}

.dec-lines-container svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* About Section */
.about {
    padding: 120px 0;
    position: relative;
    background: transparent;
    z-index: 2;
}

.about-inner {
    display: flex;
    gap: 80px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about h3, .contact h3 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about h3::after, .contact h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
    border-radius: 2px;
}

.about-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent-blue);
}

.about-content h4 {
    font-size: 24px;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--dark-blue);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
}

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

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(35, 52, 90, 0.2);
    display: block;
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(48, 78, 152, 0.4) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

/* Contact Section */
.contact {
    padding: 60px 0 120px;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    display: flex;
    overflow: hidden;
    margin-top: 50px;
    position: relative;
}

.card-bg-lines {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 600px;
    height: 600px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.contact-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.info-wrapper {
    padding: 60px 50px;
    background: linear-gradient(145deg, #F8FAFC 0%, #FFFFFF 100%);
    height: 100%;
}

.small-logo {
    margin-bottom: 30px;
}

.small-logo .logo-text h4 {
    font-size: 20px;
    color: var(--primary-blue);
}

.address-block {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-blue);
}

.contact-details {
    list-style: none;
    margin-bottom: 40px;
}

.contact-details li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-details li.faded {
    color: var(--text-light);
    font-size: 15px;
}

.icon {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.faded .icon {
    color: #9CA3AF;
}

.footer-logo-inline {
    margin-top: 50px;
    opacity: 0.9;
}

.footer-logo-inline h2 {
    font-size: 18px;
}

.contact-form-area {
    flex: 1.2;
    padding: 24px;
    background: #FAFAFA;
    border-left: 1px solid #F1F5F9;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.map-placeholder {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #E5E7EB;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: #F8FAFC;
    transition: all 0.3s;
    color: var(--text-dark);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #9CA3AF;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(48, 78, 152, 0.1);
}

.btn.compact {
    padding: 14px 28px;
    font-size: 14px;
}

.full-width {
    width: 100%;
}

/* Footer Section */
.site-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.footer-top p {
    font-size: 15px;
    color: #CBD5E1;
}

.footer-top a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.footer-top a:hover {
    color: #93C5FD;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94A3B8;
}

.footer-details .col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about-inner {
        flex-direction: column;
    }
    
    .contact-card {
        flex-direction: column;
    }
    
    .map-placeholder {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero {
        padding: 120px 0 160px;
    }
    
    .hero h2 {
        font-size: 40px;
    }
    
    .hero .subtitle-it {
        font-size: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-top, .footer-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .info-wrapper {
        padding: 40px 24px;
    }
}
