:root {
    --bg-main: #050505;
    --bg-secondary: #0a0a0a;
    --accent: #E2E8F0;
    --accent-hover: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    
    --glass-bg: rgba(255, 255, 255, 0.015);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 40px 80px 0 rgba(0, 0, 0, 0.8);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    
    --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

.section {
    padding: 100px 0;
}

.alt-bg {
    background-color: var(--bg-secondary);
}

/* Glassmorphism Utilities - Double Bezel Technique */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--glass-shadow);
    position: relative;
    padding: 12px; /* Space for inner core */
    transition: transform 0.6s var(--ease-fluid);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    overflow: visible; /* Prevent clipping outer glow */
}

/* Inner Core */
.glass-card::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
    z-index: 0;
    pointer-events: none;
}

.glow-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s ease;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px; /* Pill shape */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-fluid);
    text-align: center;
    position: relative;
}

.btn-icon-wrapper {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s var(--ease-fluid);
}

.btn-primary {
    background-color: var(--text-primary);
    color: #000;
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(0.98);
}

.btn-primary:hover .btn-icon-wrapper {
    transform: translate(2px, -2px) scale(1.1);
    background: rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 14px 0;
}

.btn-text:hover {
    color: var(--text-secondary);
}

.w-100 {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.glass-nav {
    background: rgba(15, 16, 20, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

.logo {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.nav-logo-img {
    height: 52px;
    width: 280px;
    object-fit: contain;
    mix-blend-mode: lighten;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

/* Background Glow (Mesh Gradient) */
.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(138,43,226,0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
.hero-bg-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(43,226,138,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* Performance Dashboard Card */
.performance-dashboard {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 32px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 16px;
}

.dash-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; opacity: 0.8; }
.dot.yellow { background: #ffbd2e; opacity: 0.8; }
.dot.green { background: #27c93f; opacity: 0.8; }

.dash-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dash-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.dash-value {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-chart-container {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.03);
}

.metric-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    margin-top: 12px;
}

.chart-bar {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s var(--ease-fluid);
}
.chart-bar.accent-bg {
    background: var(--text-primary);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.eyebrow {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.services-header {
    text-align: left;
    max-width: 600px;
    margin-bottom: 80px;
}
.services-header h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Services */
/* Glass Card overrides for services */
.service-card {
    padding: 40px; /* Overrides the double bezel inner padding slightly for text layout */
    text-align: left;
}

.service-card-middle { transform: translateY(30px); }
.service-card-right { transform: translateY(60px); }

.service-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
}

/* About Container */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Stats Card */
.stats-card {
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(15, 16, 20, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: var(--accent);
    font-weight: bold;
}

.stat-bar-bg {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    background: var(--text-primary);
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Portfolio */
.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-main);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.placeholder-1 {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.placeholder-2 {
    background: linear-gradient(135deg, #374151, #1f2937);
}

.portfolio-info {
    padding: 30px;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-form-wrapper {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.5);
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    text-align: center;
    border: 1px solid rgba(39, 201, 63, 0.4);
}

.hidden {
    display: none;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    margin-left: 24px;
    font-size: 0.9rem;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Animations - 120fps Optimized */
.reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0); /* Force GPU acceleration */
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .hero-content { gap: 40px; }
}

@media (max-width: 992px) {
    .section { padding: 80px 0; }
    .hero-content, .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .services-header { text-align: center; margin-left: auto; margin-right: auto; }
    .service-card-middle, .service-card-right { transform: translateY(0); }
    .service-card { text-align: center; }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-visual { margin-top: 40px; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 0; }
    .nav-container { justify-content: center; }
    .logo { font-size: 1.2rem; flex-shrink: 0; }
    .nav-logo-img { height: auto; width: 180px; max-width: 100%; }
    .nav-links { display: none; }
    .navbar .btn-outline { display: none; } /* Hide 'Get a Quote' on mobile to prevent squishing */
    .hero-text h1 { font-size: 2.5rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .contact-form-wrapper { padding: 30px 20px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links a { margin: 0 12px; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .logo { font-size: 1.1rem; }
    .nav-logo-img { height: auto; width: 140px; }
    .about-visual { height: 300px !important; padding: 20px !important; }
}
