/* Global Reset and Variables */
:root {
    --color-dark: #121212;
    --color-medium-dark: #1e1e1e;
    --color-light: #f0f0f0;
    --color-accent: #ff4500; /* Deep Orange/Red for premium feel */
    --color-text: #cccccc;
    --color-text-light: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dark-bg {
    background-color: var(--color-medium-dark);
}

h1, h2 {
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--color-text-light);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

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

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

.secondary-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

/* =========================================
   1. HEADER & NAVIGATION
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9); /* Semi-transparent dark background */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
}

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

nav ul li a {
    color: var(--color-text);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--color-accent);
}

/* =========================================
   2. HERO SECTION
   ========================================= */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Background Geometry Placeholder (CSS only) */
    background-image: radial-gradient(circle at 50% 0%, rgba(30, 30, 30, 0.8) 0%, rgba(18, 18, 18, 1) 100%),
                      repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 2px);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 800px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #aaa;
}

/* =========================================
   3. SERVICES SECTION
   ========================================= */
#services {
    background-color: var(--color-dark);
}

.services-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.service-card {
    background-color: var(--color-medium-dark);
    padding: 40px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.2);
    border-bottom: 3px solid var(--color-accent);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* =========================================
   4. PORTFOLIO SECTION
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

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

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.project-card:hover img {
    filter: brightness(1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--color-text-light);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

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

.overlay h4 {
    color: var(--color-accent);
    margin-bottom: 5px;
}

/* =========================================
   5. PROCESS/TIMELINE SECTION
   ========================================= */
.timeline {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    justify-content: space-between;
    text-align: left;
}

.timeline-step {
    flex: 1;
    padding: 20px;
    background-color: var(--color-medium-dark);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--color-accent);
}

.timeline-step .icon-circle {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.timeline-step h3 {
    color: var(--color-accent);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

/* =========================================
   6. ABOUT US SECTION
   ========================================= */
.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    min-height: 350px;
    background-color: #2a2a2a;
    border-radius: 10px;
    /* Placeholder for team photo/graphic */
    background-image: linear-gradient(135deg, #333 0%, #121212 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
}

.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.stat-item {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-item p {
    font-size: 1rem;
    color: #aaa;
    margin-top: 5px;
}

/* =========================================
   7. CONTACT & FOOTER
   ========================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    gap: 20px;
    margin-top: 30px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #333;
    background-color: #222;
    color: var(--color-text-light);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

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

footer {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* =========================================
   8. ANIMATION (Initial State)
   ========================================= */
/* Initial state for reveal items (hidden/off-screen) */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active state (will be added by JS) */
.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Special handling for Hero content to ensure it's visible immediately */
#hero .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 900px) {
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
    .service-card {
        width: 90%;
        max-width: 400px;
    }
    .about-flex {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        text-align: center;
    }
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    .timeline {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .subtitle {
        font-size: 1.1rem;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }
    nav ul li a {
        padding: 5px 10px;
    }
}
