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

:root {
    --primary-color: #00a8e8;
    --dark-bg: #1f1f1f;
    --text-dark: #2b2b2b;
    --text-light: #ffffff;
    --text-gray: #666666;
    --light-bg: #f5f5f5;
    --section-padding: 80px 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-menu li {
    padding: 0 25px;
    position: relative;
}

.nav-menu li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    color: #555;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 16px;
    transition: color 0.3s;
}

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s;
}

/* ========================
   Hero Section
   ======================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1541976590-713941681591?w=1920') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    margin-top: 80px;
}

.hero-content {
    max-width: 1200px;
    padding: 0 20px;
}

.hero-logo {
    font-size: 120px;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 18px 50px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.cta-button:hover {
    background-color: #0090c9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.3);
}

.hero-tagline {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ========================
   Page Sections
   ======================== */
.section {
    padding: var(--section-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================
   Services Section
   ======================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    padding: 40px 30px;
    background: var(--light-bg);
    text-align: center;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.service-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================
   Projects Section
   ======================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

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

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 40px 30px;
    color: var(--text-light);
    transform: translateY(60%);
    transition: transform 0.3s;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-overlay p {
    font-size: 14px;
    line-height: 1.6;
}

/* ========================
   About Section
   ======================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 10px;
}

/* ========================
   Contact Section
   ======================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 30px;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.submit-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 40px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background-color: #0090c9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.3);
}

/* ========================
   Footer
   ======================== */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 20px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    color: #aaa;
    line-height: 2;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    color: #777;
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu li::after {
        display: none;
    }

    .hero-logo {
        font-size: 60px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        font-size: 40px;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }

    .hero-tagline {
        font-size: 16px;
    }

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