:root {
    --color-primary: #1A2B49;
    --color-primary-hover: #132037;
    --color-accent: #FF6B2B;
    --color-accent-hover: #E85A1C;
    --color-accent-soft: rgba(255, 107, 43, 0.08);
    --color-text-main: #1A2B49;
    --color-text-muted: #5A6A80;
    --color-border: #E2E8F0;
    --bg-main: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-subtle: #EEF2F6;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background: var(--bg-main);
    line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav */
header {
    background: var(--bg-main);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-logo img { height: 44px; }
.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--color-primary);
}
.brand-name span { color: var(--color-accent); }

.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-accent); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--color-accent); color: #FFF; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary { background: var(--color-primary); color: #FFF; }
.btn-secondary:hover { background: var(--color-primary-hover); }

/* Layout & Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto 28px;
}

/* Service Standard Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 40px 0 80px;
}
.card {
    background: var(--bg-main);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(26, 43, 73, 0.06);
}
.card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}
.card p { color: var(--color-text-muted); margin-bottom: 16px; }

/* 3D Animated Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 40px 0 80px;
    perspective: 1200px;
}

.project-card {
    position: relative;
    background: var(--bg-main);
    border-radius: 16px;
    padding: 1px;
    overflow: hidden;
    --glow-x: 50%;
    --glow-y: 50%;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(
            circle at var(--glow-x) var(--glow-y),
            var(--color-accent) 0%,
            var(--color-primary) 50%,
            transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    box-shadow: 0 16px 36px rgba(26, 43, 73, 0.09);
}

.card-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 15px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 4px 10px;
    border-radius: 6px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.status-indicator .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.card-preview {
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    transform: translateZ(20px);
    transition: transform 0.2s ease;
}

.browser-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
}

.browser-screen {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.code-line {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.project-card:hover .code-line { background: #CBD5E1; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-75 { width: 75%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    transform: translateZ(15px);
}

.card-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
    transform: translateZ(15px);
}

.tech-stack span {
    font-size: 0.75rem;
    background: var(--bg-subtle);
    color: var(--color-primary);
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-action svg {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-action {
    color: var(--color-accent);
}

.project-card:hover .card-action svg {
    transform: translateX(4px);
}

/* Forms */
.form-container {
    max-width: 650px;
    margin: 40px auto 80px;
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    border-color: transparent;
}
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-success { background: #E6F4EA; color: #137333; border: 1px solid #CEEAD6; }
.alert-error { background: #FCE8E6; color: #C5221F; border: 1px solid #FAD2CF; }

/* Footer */
footer {
    background: var(--color-primary);
    color: #FFF;
    padding: 60px 0 24px;
}
footer a { color: #A0AEC0; text-decoration: none; }
footer a:hover { color: var(--color-accent); }
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #A0AEC0;
    font-size: 0.9rem;
}