/* --- Google Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #a855f7; 
    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --purple-glow: 0 10px 30px -5px rgba(168, 85, 247, 0.15);
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo { font-weight: 800; font-size: 1.25rem; }
.logo span {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 5px;
}

nav ul { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
nav ul li a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.9rem; }
.btn-contact { background: var(--primary-color); color: white; padding: 0.6rem 1.5rem; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 8%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content h1 { font-size: 3.8rem; font-weight: 800; line-height: 1; margin-bottom: 1.5rem; letter-spacing: -2px; }
.hero-content h1 span { color: var(--text-dark); }
.hero-content p { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 520px; }

.btn-primary { 
    background: var(--primary-gradient);
    color: white; padding: 1rem 2.5rem; border-radius: 12px; border: none; 
    font-weight: 700; cursor: pointer; box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
    transition: transform 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); }

.hero-image img { width: 100%; max-width: 420px; border-radius: 30px; box-shadow: var(--card-shadow); }

.stats-bar {
    display: flex; gap: 3rem; background: var(--white); padding: 1.5rem 2.5rem;
    border-radius: 20px; box-shadow: var(--card-shadow); width: fit-content; margin-top: 3rem;
}
.stat strong { display: block; font-size: 1.6rem; color: var(--text-dark); }
.stat span { font-size: 0.75rem; color: var(--text-gray); font-weight: 600; text-transform: uppercase; }

/* --- About Card --- */
.about-card { padding: 8rem 8%; background: var(--white); }
.card-inner {
    background: #f1f5f9; border-radius: 40px; padding: 5rem;
    display: flex; gap: 6rem; align-items: center; max-width: 1200px; margin: 0 auto;
}
.about-image img { border-radius: 25px; width: 320px; box-shadow: var(--card-shadow); }
.about-text h2 { font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; }
.about-text p { color: var(--text-gray); font-size: 1.05rem; margin-bottom: 2.5rem; }
.about-btns { display: flex; gap: 1.2rem; }
.btn-secondary { background: var(--text-dark); color: white; padding: 1rem 2rem; border-radius: 12px; border: none; font-weight: 600; cursor: pointer; }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 1rem 2rem; border-radius: 12px; font-weight: 600; cursor: pointer; }

/* --- ENHANCED Work Process (Visual Overhaul) --- */
.process-section {
    padding: 8rem 8%;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 5rem;
}

.process-header { flex: 1; }
.process-header h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.process-header p { color: var(--text-gray); font-size: 1.1rem; max-width: 400px; }

.process-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.process-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--card-shadow), var(--purple-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.process-item:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color);
    background: var(--white);
}

.icon-box {
    background: var(--primary-gradient);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 15px rgba(168, 85, 247, 0.2);
}

.process-item h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.process-item p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.6; }

/* --- Portfolio --- */
.portfolio-section { padding: 8rem 8%; text-align: center; }
.portfolio-section h2 { font-size: 3rem; font-weight: 800; margin-bottom: 4rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1300px; margin: 0 auto; }
.project-card { 
    background: #e2e8f0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; 
    transition: transform 0.4s; cursor: pointer; border: 1px solid rgba(0,0,0,0.05);
}
.project-card:hover { transform: scale(1.02); }
.project-card img { width: 100%; height: 100%; object-fit: cover; }

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .hero, .card-inner, .process-section { flex-direction: column; text-align: center; padding: 4rem 5%; }
    .hero-content p, .process-header p { margin: 1.5rem auto 2.5rem; }
    .process-grid { grid-template-columns: 1fr 1fr; width: 100%; }
    .stats-bar, .about-btns { justify-content: center; margin: 2rem auto; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .process-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .card-inner { padding: 3rem 1.5rem; }
    .about-image img { width: 100%; }
    :root{
        html {
            font-size: 14px;
        }
    }
}

/* --- Contact Section Styles --- */
.contact-section {
    padding: 8rem 8%;
    background: var(--white);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    text-align: left;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

@media (max-width: 768px) {
    .contact-form { padding: 2rem 1.5rem; }
}