:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #10b981;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1000px; margin: 0 auto; padding: 4rem 1.5rem; }

header { text-align: center; margin-bottom: 5rem; }

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(to right, #fff, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.description {
    max-width: 650px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- AI Prompt Interface --- */
.ai-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.ai-box label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

#usersQuestion {
    width: 100%;
    background: #0f172a;
    color: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    font-family: inherit;
    resize: none;
    margin-bottom: 1rem;
}

.abt-me-button {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: white;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#responseBubble {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: #0f172a;
    border-radius: 1rem;
    border-left: 4px solid var(--accent);
    display: none;
    font-size: 0.95rem;
    text-align: left;
}

/* --- Sections --- */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 4rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: "";
    height: 1px;
    background: var(--border);
    flex-grow: 1;
}

/* --- Projects & Services --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.project-card {
    background: linear-gradient(145deg, #1e293b, #111827);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.project-tech {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    display: inline-block;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.project-link:hover {
    color: var(--text-main);
}

.project-link svg {
    transition: transform 0.2s;
}

.project-link:hover svg {
    transform: translate(3px, -3px);
}
        
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--card-bg); border-radius: 1rem; padding: 1.5rem; border-left: 4px solid var(--primary); }
.service-price { font-size: 1.25rem; font-weight: 800; margin-top: 1rem; }

/* --- Contact Form Section --- */
.contact-section {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 3.5rem 2rem;
    margin-top: 6rem;
    border: 1px solid var(--border);
}

.contact-header { text-align: center; margin-bottom: 2.5rem; }

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.full-width { grid-column: span 2; }

#contactForm input, #contactForm select, #contactForm textarea {
    width: 100%;
    background: #0f172a;
    color: #fff;
    padding: 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border);
    font-family: inherit;
}

#contactForm textarea { height: 120px; }

.submit-contact-btn {
    grid-column: span 2;
    padding: 1rem;
    background: var(--accent);
    color: #0f172a;
    border: none;
    border-radius: 0.6rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.submit-contact-btn:hover { background: #0da371; transform: scale(1.02); }

footer { text-align: center; padding: 4rem 0 2rem; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 640px) {
    #contactForm { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .submit-contact-btn { grid-column: span 1; }
}