/* Color Variables */
:root {
    --primary: #DC2626; /* Primary red */
    --secondary: #B91C1C; /* Darker red for accents */
    --accent: #FCA5A5; /* Light red for highlights */
    --dark: #1F2937; /* Dark gray/black */
    --light: #FFFFFF; /* Pure white */
    --gray: #6B7280; /* Medium gray */
    --light-gray: #F3F4F6; /* Light gray */
    --white: #FFFFFF;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin-top: 0.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    margin: 0.5rem auto 0;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
}

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

.btn-primary:hover {
    background-color: #00438c;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e55a00;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--gray);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
}

.logo-img {
    height: 40px;
    margin-right: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
    position: relative;
}

nav ul li a:after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Language Switcher */
.language-switch {
    display: flex;
    gap: 0.25rem;
    margin-left: 2rem;
}

.lang-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 40px;
    height: 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--primary), #003b73);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-img {
    flex: 1;
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#about-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.services-top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services-bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

/* News Section */
.news {
    background-color: var(--white);
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.news-item h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.news-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* Building Stories Section */
.building-stories {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.story-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.story-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 2rem;
    position: relative;
}

.company-logo h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: var(--white);
}

.story-category {
    margin-top: 0.5rem;
}

.story-category span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.story-content {
    padding: 2rem;
}

.story-content h4 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.story-content p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.story-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--dark);
    font-weight: 500;
}

.highlight-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Partners Section */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.partner-category {
    margin-bottom: 3rem;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.partner-logo {
    width: 120px;
    height: 120px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 80%;
    max-height: 80%;
}

.stekz-logo {
    background-color: #842CFF;
}

.tno-logo {
    background-color: #002484;
}

/* Contact Section */
.contact {
    background-color: var(--dark);
    color: var(--white);
}

.contact h2:after {
    background: var(--accent);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

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

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--light-gray);
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-link:hover {
    background-color: var(--secondary);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Media Queries */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    h2 {
        font-size: 2rem;
    }

    .grid-2, .grid-3, .grid-4, .partner-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-top-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-bottom-row {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .about-img, .about-text {
        flex: initial;
        width: 100%;
    }

    .hero-img {
        display: none;
    }

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

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

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .partner-grid, .news-grid, .stories-grid {
        grid-template-columns: 1fr;
    }

    .services-top-row,
    .services-bottom-row {
        grid-template-columns: 1fr;
    }

    .header-container {
        padding: 1rem;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        clip-path: circle(0px at top right);
        transition: all 0.5s ease-in-out;
    }

    nav.active {
        clip-path: circle(1500px at top right);
    }

    nav ul {
        flex-direction: column;
        padding: 2rem;
    }

    nav ul li {
        margin: 0 0 1.5rem 0;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

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

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

    .form-group.full {
        grid-column: span 1;
    }
}