/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #131316;
    --bg-tertiary: #1a1a1e;
    --border-color: #2a2a30;
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-dim: #6b7280;
    
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    
    --font-main: 'Inter', sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s ease;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-dim {
    color: var(--text-dim);
}

.text-gradient {
    color: var(--accent-orange);
}

.highlight-text {
    color: var(--accent-orange);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-secondary);
    background-color: rgba(255,255,255,0.05);
}

.btn-block {
    width: 100%;
    padding: 1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background-color: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a.active {
    color: var(--accent-orange);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-orange);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem; /* account for navbar */
    position: relative;
    overflow: hidden;
}

/* Background blob */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, rgba(10,10,12,0) 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.visual-card {
    width: 450px;
    height: 450px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Circuit pattern mock */
.circuit-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.circuit-pattern::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -20%;
    width: 80%;
    height: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: rotate(45deg);
}

.status-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: rgba(26, 26, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.icon-orange {
    color: var(--accent-orange);
    width: 24px;
    height: 24px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.status-text small {
    color: var(--text-dim);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.status-text strong {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Section Shared --- */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.split-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-label {
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.underline {
    width: 40px;
    height: 2px;
    background-color: var(--accent-orange);
    margin-top: 1.5rem;
}

/* --- Core Expertise --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.large-card {
    grid-column: span 2;
}

.tall-card {
    grid-row: span 2;
}

.wide-card {
    grid-column: span 2;
    flex-direction: row;
    overflow: hidden;
    padding: 0;
}

.wide-card .card-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.wide-card .card-visual {
    flex: 1;
    background-color: var(--bg-tertiary);
    border-left: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: auto;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.service-tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.service-link {
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1.5rem;
    display: inline-block;
}

/* Mockup */
.code-snippet-mockup {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.code-line { height: 6px; background: var(--border-color); border-radius: 3px; }
.w-80 { width: 80%; } .w-60 { width: 60%; } .w-90 { width: 90%; }
.w-40 { width: 40%; } .w-70 { width: 70%; } .w-50 { width: 50%; }
.indent-1 { margin-left: 1rem; } .indent-2 { margin-left: 2rem; }
.accent { background: var(--accent-orange); }

/* --- About Section --- */
.about {
    border-top: 1px solid var(--border-color);
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    flex: 1;
}

.office-image-placeholder {
    width: 100%;
    height: 500px;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    filter: grayscale(100%) contrast(1.2);
}

.office-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent 50%);
}

.about-content {
    flex: 1;
}

.about-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Testimonials --- */
.testimonials {
    background-color: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-family: serif;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    background-size: cover;
}

.avatar-1 { background-image: url('https://randomuser.me/api/portraits/men/32.jpg'); }
.avatar-2 { background-image: url('https://randomuser.me/api/portraits/women/44.jpg'); }

.author-info strong {
    display: block;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: rgba(255,255,255,0.2);
}

/* --- Contact Section --- */
.form-container-wrapper {
    max-width: 800px;
}

.contact-form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.select-wrapper {
    position: relative;
}

select {
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.form-message.success { color: #4ade80; }
.form-message.error { color: #f87171; }

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background-color: var(--bg-primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-part {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.25rem;
}

.secondary-footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* --- Responsive Layouts --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero::before { right: auto; left: 50%; transform: translateX(-50%); }
    .split-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .large-card, .tall-card, .wide-card { grid-column: span 1; grid-row: auto; }
    .wide-card { flex-direction: column; }
    .about-container { flex-direction: column; }
    .office-image-placeholder { height: 350px; }
    .footer-container { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.8rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .visual-card { width: 100%; height: 350px; }
    .status-badge { left: 10px; bottom: 10px; right: 10px; justify-content: center;}
}
