/* 
   Geely Auto - Stylesheet
   Brand Colors:
   Primary: Forest Green/Dark Green (#006D5B)
   Secondary: Light Beige/Cream (#F4F1DE) and Pure White (#FFFFFF)
   Accent: Bright Mint Green (#70e000)
*/

:root {
    --primary-color: #006D5B;
    --primary-dark: #004d40;
    --secondary-color: #F4F1DE;
    --white: #FFFFFF;
    --accent-color: #70e000;
    --accent-hover: #5cb800;
    --text-main: #333333;
    --text-muted: #666666;
    
    --transition-speed: 0.3s;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.section-headers h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-headers p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--primary-dark) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: linear-gradient(rgba(0, 109, 91, 0.6), rgba(0, 109, 91, 0.8)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.intro-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Expertise Section */
.expertise-section {
    background-color: var(--white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 109, 91, 0.15);
}

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

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.tech-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Technology Section */
.technology-section {
    background-color: var(--secondary-color);
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.feature-img {
    flex: 1;
}

.feature-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

/* Projects Section */
.projects-section {
    background-color: var(--white);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 109, 91, 0.9), rgba(0, 109, 91, 0.2));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

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

.contact-section .section-headers h2,
.contact-section .section-headers p {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 16px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cyber Form */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cyber-form label {
    font-weight: 500;
    font-size: 0.9rem;
}

.cyber-form input,
.cyber-form select,
.cyber-form textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, background var(--transition-speed) ease;
}

.cyber-form input:focus,
.cyber-form select:focus,
.cyber-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.cyber-form select option {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-brand .motto {
    font-style: italic;
    opacity: 0.8;
}

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

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}
