/*
    CSS Variables for easy theming (The latest in CSS)
    The primary color is an energetic orange, and the dark background
    provides a high-contrast, professional, and modern look.
*/
:root {
    --color-primary-orange: #FF6A00; /* Your desired energetic orange */
    --color-primary-dark: #1E1E1E;   /* Deep charcoal/black for background */
    --color-secondary-light: #F4F4F4;/* Off-white for light sections */
    --color-text-light: #FFFFFF;     /* White text on dark background */
    --color-text-dark: #333333;      /* Dark text on light background */
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2);
}

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

a:hover {
    color: #ff9d5e; /* Lighter orange on hover */
}

h2, h3, h4 {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary-orange);
}

/* Utility Class for CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button.primary {
    background-color: var(--color-primary-orange);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-orange);
}

.cta-button.primary:hover {
    background-color: #ff8533; /* Slightly darker orange on hover */
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--color-primary-orange);
    border: 2px solid var(--color-primary-orange);
}

.cta-button.secondary:hover {
    background-color: var(--color-primary-orange);
    color: var(--color-primary-dark);
}


/* 🌟 Header/Navigation Styling */
.main-header {
    background-color: var(--color-primary-dark);
    border-bottom: 2px solid var(--color-primary-orange);
    padding: 1rem 0;
}

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


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

nav ul li {
    margin-left: calc(var(--spacing-unit) * 2);
}

nav ul a:not(.cta-button) {
    color: var(--color-text-light);
    padding: 0.5rem 0;
}

/* 🏠 Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #3a3a3a 100%);
    padding: 8rem 0;
    text-align: center;
}

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

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 strong {
    color: var(--color-primary-orange);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #cccccc;
}

/* 🔧 Services Section */
.services-section {
    background-color: var(--color-secondary-light);
    padding: 5rem 0;
    color: var(--color-text-dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
}

.service-card {
    background-color: var(--color-text-light);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--color-primary-orange);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h4 {
    color: var(--color-primary-orange);
    font-size: 1.5rem;
}

/* 📊 Portfolio/App Showcase Section (The core feature) */
.portfolio-section {
    padding: 5rem 0;
    background-color: var(--color-primary-dark);
}

.app-showcase-item {
    display: grid;
    /* Two columns: one for image/mockup, one for text */
    grid-template-columns: 1fr 1.5fr; 
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 5);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 10px;
    background-color: #2a2a2a; /* Slightly lighter dark background for contrast */
}

/* Layout for alternating sections (image on the right) */
.app-showcase-item.reverse {
    grid-template-columns: 1.5fr 1fr;
    background-color: #242424;
}

.app-image-mockup {
    /* Ensures the mockup placeholder is visually contained */
    background-color: var(--color-primary-dark); 
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    /* For alternating layout: moves image to the right */
    order: 1; 
}

.app-showcase-item.reverse .app-image-mockup {
    order: 2; /* Move image to the right */
}

.mockup-placeholder {
    /* A visible box to represent where an actual screenshot/video would go */
    height: 350px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3d3d3d;
    color: #999999;
    font-style: italic;
    border-radius: 6px;
    border: 1px dashed #555555;
}

.app-description {
    order: 2;
}

.app-showcase-item.reverse .app-description {
    order: 1; /* Move description to the left */
}

.app-description h4 {
    color: var(--color-primary-orange);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.app-description .tagline {
    font-style: italic;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.app-description ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.app-description ul li {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.app-description ul li strong {
    color: var(--color-primary-orange);
    font-weight: 600;
}

/* 📞 Contact Section */
.contact-section {
    background-color: var(--color-secondary-light);
    padding: 5rem 0;
    text-align: center;
    color: var(--color-text-dark);
}

.contact-section h3 {
    margin-bottom: 1rem;
}

.contact-section .contact-info {
    font-size: 1.1rem;
    margin: 1rem 0;
}

.contact-section a {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* 📄 Footer */
footer {
    background-color: var(--color-primary-dark);
    color: #aaaaaa;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #333333;
}

/* 📱 Media Queries for Responsiveness (Latest in CSS/Mobile-First Approach) */

/* Target devices smaller than a standard desktop/large tablet */
@media (max-width: 900px) {
    .app-showcase-item,
    .app-showcase-item.reverse {
        /* On smaller screens, stack the image and text vertically */
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
        padding: calc(var(--spacing-unit) * 2);
    }

    .app-image-mockup,
    .app-showcase-item.reverse .app-image-mockup {
        /* Revert order for stacking: image on top, text below */
        order: 1 !important; 
    }

    .app-description,
    .app-showcase-item.reverse .app-description {
        order: 2 !important;
    }
}

/* Target mobile devices */
@media (max-width: 600px) {
    .main-header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 5rem 0 3rem;
    }
}