/* =========================================
   DESIGN SYSTEM & VARIABLES
========================================= */
:root {
    --bg-base: #140d0b;
    --bg-surface: rgba(30, 20, 18, 0.6);
    --bg-surface-hover: rgba(45, 30, 25, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #ffcdb2;
    
    --accent-primary: #f34c44;
    --accent-secondary: #ff8c5a;
    --accent-tertiary: #d63328;
    
    --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    
    --border-light: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET & BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, .logo {
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   LAYOUT & UTILITIES
========================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.mt-12 { margin-top: 3rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 76, 68, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 76, 68, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(243, 76, 68, 0.05);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background: #140d0b;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20, 13, 11, 0.4) 0%, rgba(20, 13, 11, 0.95) 100%);
    z-index: 1;
}

/* Ambient Backgounds */
.ambient-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-primary {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-primary);
}

.blob-secondary {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-secondary);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* =========================================
   COMPONENTS
========================================= */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(20, 13, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-brand);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    padding: 2rem;
}

.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    z-index: 2;
    background: linear-gradient(180deg, rgba(30,20,18,0.8), rgba(20,13,11,0.9));
}

.card-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.bar {
    flex: 1;
    background: var(--border-light);
    border-radius: 6px 6px 0 0;
    animation: growBar 2s ease-out forwards;
    transform-origin: bottom;
}

.bar-1 { height: 40%; animation-delay: 0.5s; }
.bar-2 { height: 60%; animation-delay: 0.7s; }
.bar-3 { height: 30%; animation-delay: 0.9s; }
.bar-4 { height: 100%; background: var(--gradient-brand); animation-delay: 1.1s; }

.metric {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.float-card-1 {
    position: absolute;
    bottom: 20%;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    animation: floatVertical 4s ease-in-out infinite alternate;
}

.circle-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-secondary);
}

@keyframes floatVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}
@keyframes growBar {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

/* Sections Global */
.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-surface-hover);
    border-color: rgba(243, 76, 68, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

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

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

/* Projects */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    display: block;
}

.project-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-item:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-category {
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.project-name {
    font-size: 1.75rem;
}

.project-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.project-item:hover .project-arrow {
    background: var(--gradient-brand);
    color: #fff;
    transform: rotate(45deg);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-glass {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.image-glass img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.float-animation {
    animation: floatVertical 5s ease-in-out infinite alternate;
}

.exp-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.exp-text {
    font-weight: 600;
    line-height: 1.2;
}

.about-text {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-features li {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding-top: 4rem;
    background: rgba(0,0,0,0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS & REVEALS
========================================= */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.fade-up { transform: translateY(50px); }
.fade-left { transform: translateX(50px); }
.fade-right { transform: translateX(-50px); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE DESIGN (Media Queries)
========================================= */
@media (max-width: 992px) {
    .hero-content, .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title { font-size: 3.5rem; }
    
    .contact-wrapper { padding: 2rem; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .projects-gallery { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .hero-title { font-size: 2.75rem; }
    
    .section-title { font-size: 2.25rem; }
    
    .section-padding { padding: 4rem 0; }
}
