/* css/style.css */

/* --- CSS Variables --- */
:root {
    --color-bg-dark: #0A0A0A;
    --color-bg-medium: #1A1A1A;
    --color-bg-light: #2C2C2C;
    --color-text-primary: #F0F0F0;
    --color-text-secondary: #B0B0B0;
    --color-accent-blue: #00FFFF; /* Electric Blue */
    --color-accent-green: #00FF00; /* Neon Green */
    --color-accent-orange: #FF9900; /* Sharp Orange */
    --color-border-gray: #444444;
    --color-error: #FF6B6B;

    --font-heading: 'Inter', sans-serif; /* Modern, clean */
    --font-body: 'Lato', sans-serif;     /* Readable, comfortable */
    --font-mono: 'Fira Code', monospace; /* For code snippets */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem units */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.lead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-accent-green);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    white-space: nowrap; /* Prevent buttons from wrapping text */
}

.btn-primary {
    background-color: var(--color-accent-blue);
    color: var(--color-bg-dark);
    border: 2px solid var(--color-accent-blue);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent-blue);
}

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

.btn-secondary:hover {
    background-color: var(--color-accent-blue);
    color: var(--color-bg-dark);
}

/* --- Header --- */
.main-header {
    background-color: var(--color-bg-dark);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent-blue);
    text-transform: lowercase;
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px; /* Adjust as needed */
    margin-right: 0.5rem;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links li a {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav-links li a:hover,
.nav-links li a.active { /* For active page highlighting */
    color: var(--color-accent-blue);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-accent-blue);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(0,255,255,0.05) 0%, rgba(0,0,0,0) 50%, rgba(0,255,0,0.05) 100%), var(--color-bg-dark);
    min-height: 70vh; /* Make hero section taller */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Service & Project Cards (General Component) --- */
.card {
    background-color: var(--color-bg-medium);
    border: 1px solid var(--color-border-gray);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: left;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-blue);
}

.card h3 {
    color: var(--color-accent-blue);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--color-text-secondary);
    flex-grow: 1; /* Make cards same height */
}

.card ul {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-sm);
    color: var(--color-text-secondary);
}

.card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.card ul li::before {
    content: '›'; /* Simple bullet */
    color: var(--color-accent-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* --- About Page Specifics --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.team-member-card {
    text-align: center;
    background-color: var(--color-bg-medium);
    border: 1px solid var(--color-border-gray);
    padding: var(--spacing-md);
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.team-member-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-green);
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    border: 3px solid var(--color-accent-blue);
}

.team-member-card h3 {
    margin-bottom: 0.25rem;
}

.team-member-card .title {
    color: var(--color-accent-green);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.team-member-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-md);
    background-color: var(--color-bg-medium);
    border: 1px solid var(--color-border-gray);
    border-radius: 8px;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border-gray);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

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

.form-submit {
    text-align: right;
}

/* --- Code Blocks (for blog or examples) --- */
pre {
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    padding: var(--spacing-sm);
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.4;
}

code {
    font-family: var(--font-mono);
    background-color: var(--color-bg-light);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-bg-medium);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border-gray);
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.footer-nav a {
    color: var(--color-text-secondary);
}

.footer-nav a:hover {
    color: var(--color-accent-blue);
}

.social-links a {
    margin: 0 0.8rem;
    color: var(--color-text-secondary); /* or a specific color */
    font-size: 1.5rem; /* Adjust icon size */
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--color-accent-blue);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .hero .lead { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .nav-links {
        display: none; /* Hidden by default for mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--color-bg-dark);
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--color-border-gray);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: var(--spacing-xs) 0;
    }
    .nav-links li a {
        display: block;
        padding: var(--spacing-sm);
        border-radius: 5px;
    }
    .nav-links li a.btn {
        margin-top: var(--spacing-sm);
    }
    .menu-toggle {
        display: block;
    }

    .hero {
        padding: var(--spacing-lg) 0;
        min-height: 60vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    .main-footer .container {
        flex-direction: column;
    }
    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}