/* CSS Variables */
:root {
    --background: hsl(30, 30%, 96%);
    --foreground: hsl(20, 15%, 20%);
    --primary: hsl(25, 100%, 50%);
    --secondary: hsl(30, 15%, 90%);
    --border: hsl(30, 20%, 88%);
    --font-sans: 'Inter', 'Open Sans', sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', monospace;
    --radius: 6px;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    overflow-x: hidden;
}

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

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-brand h2 {
    color: var(--foreground);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1;
    margin: 0;
}

.nav-subtitle {
    color: hsl(20, 10%, 50%);
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

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

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

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

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    background: var(--background);
    text-align: center;
}

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

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: hsl(20, 10%, 40%);
    margin-bottom: 1.5rem;
}

.hero-cta {
    font-size: 1.05rem;
    color: hsl(20, 10%, 40%);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--foreground);
}

/* Services Section */
.services {
    background: white;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius);
}

.service-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-photo {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.service-card p {
    color: hsl(20, 10%, 45%);
    line-height: 1.6;
}

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

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.project-card p {
    color: hsl(20, 10%, 45%);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.project-link:hover {
    background: var(--primary);
    color: white;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-photo {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: translateY(-5px);
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.about-role {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: hsl(20, 10%, 45%);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    text-align: center;
    background: var(--background);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    width: 64px;
    height: 64px;
    color: var(--primary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-subtitle {
    font-size: 1rem;
    color: hsl(20, 10%, 45%);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-form-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: hsl(20, 10%, 40%);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    background: white;
    color: var(--foreground);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: hsl(20, 10%, 60%);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(25, 100%, 50%, 0.1);
}

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

.submit-button {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-button:hover:not(:disabled) {
    background: hsl(25, 100%, 45%);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 1rem;
    padding: 10px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Footer */
footer {
    background: var(--background);
    color: var(--foreground);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}

.footer-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-left span {
    color: hsl(20, 10%, 45%);
    font-weight: 400;
    font-size: 0.875rem;
}

.footer-center {
    justify-self: center;
    text-align: center;
}

.footer-center p {
    color: hsl(20, 10%, 55%);
    font-size: 0.875rem;
    margin: 0;
}

.footer-right {
    justify-self: end;
    text-align: right;
}

.footer-right p {
    color: hsl(20, 10%, 55%);
    font-size: 0.875rem;
    margin: 0;
}

.footer-right a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: hsl(25, 100%, 45%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description,
    .hero-cta {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        justify-self: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-photo {
        max-width: 250px;
    }
}

html {
    scroll-behavior: smooth;
}
