@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #050505; /* Deep brutalist black */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-red: #e02424;
    --card-bg: rgba(20, 20, 20, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-primary); line-height: 1.5; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; transform: translateZ(0); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-red { color: var(--accent-red); }
.text-center { text-align: center; }
.relative { position: relative; z-index: 1; }

/* Buttons & Pills */
.btn-primary { background: var(--accent-red); color: white; padding: 14px 28px; border-radius: 100px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); }
.btn-primary:hover { background: #b01b1b; }
.btn-secondary { background: rgba(255,255,255,0.05); color: white; padding: 14px 28px; border-radius: 100px; font-weight: 600; border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Liquid Glass with Colors */
.liquid-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform, backdrop-filter;
}

/* Glow Blobs for Liquid Glass effect */
.glow-blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: float-blob 10s ease-in-out infinite alternate;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
}
.blob-hero-1 { background: var(--accent-red); width: 300px; height: 300px; top: 0; left: 10%; }
.blob-hero-2 { background: #4a00e0; width: 250px; height: 250px; bottom: 0; right: 10%; animation-delay: -5s; }
.blob-services-1 { background: #e02424; width: 350px; height: 350px; top: -100px; left: -100px; }
.blob-services-2 { background: #ff007b; width: 200px; height: 200px; bottom: -50px; right: -50px; animation-delay: -3s; }

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* Spatial UI & Hover Effects */
.spatial-hover, .spatial-tilt { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); transform-style: preserve-3d; }
.spatial-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255,255,255,0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.spatial-float {
    animation: float 6s ease-in-out infinite alternate;
}
@keyframes float { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }

/* Navbar */
.navbar-wrapper { position: absolute; top: 15px; left: 0; width: 100%; z-index: 100; display: flex; justify-content: center; padding: 0 10px; pointer-events: none; }
.floating-nav { border-radius: 100px; display: flex; align-items: center; justify-content: space-between; padding: 6px; pointer-events: auto; max-width: 100%; flex-wrap: wrap; gap: 4px; }
.nav-pill { padding: 6px 12px; font-weight: 500; font-size: 0.85rem; border-radius: 100px; transition: background 0.3s; white-space: nowrap; }
.nav-pill:hover { background: rgba(255, 255, 255, 0.1); }
.logo-pill { display: flex; align-items: center; gap: 8px; padding-left: 6px; background: rgba(255, 255, 255, 0.05); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; }
.btn-contact { background: var(--accent-red); color: white; }

/* Brutalism Hero */
.hero { padding-top: 140px; padding-bottom: 60px; }
.hero-title-wrapper { text-align: center; position: relative; display: flex; justify-content: center; align-items: center; min-height: 200px; }
.brutal-text {
    font-size: 16vw; 
    line-height: 0.85; 
    font-weight: 900; 
    letter-spacing: -0.04em; 
    position: relative; 
    z-index: 1;
    text-transform: uppercase;
    -webkit-text-stroke: 2px rgba(255,255,255,0.8);
    color: transparent;
}
.brutal-text .text-filled {
    color: var(--text-primary);
    -webkit-text-stroke: 0;
}
.hero-avatar-container { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    z-index: 2; width: 60vw; max-width: 320px; 
}
.enhance-avatar {
    width: 100%;
    display: block;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.7)) contrast(1.15) saturate(1.1) brightness(1.05);
}
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 60px; text-align: center; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 400px; font-weight: 500; }

/* Hero Vector Icons Marquee */
.hero-icon-marquee-container {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    position: relative;
    z-index: 3;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.hero-icon-marquee {
    display: flex;
    overflow: hidden;
}
.hero-marquee-track {
    display: flex;
    gap: 40px;
    padding-right: 40px; /* crucial for seamless loop math */
    animation: icon-marquee 8s linear infinite; /* Increased speed */
    width: max-content;
}
.marquee-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}
.marquee-icon-item svg {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}
@keyframes icon-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sections Common */
section { margin-bottom: 120px; }
.section-title { font-size: 2.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 50px; letter-spacing: -0.02em; }
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }

/* Split Layouts (Desktop) */
.split-layout { display: grid; grid-template-columns: 1fr; gap: 60px; }
@media (min-width: 768px) {
    section { margin-bottom: 200px; }
    .split-layout { grid-template-columns: 4fr 6fr; gap: 80px; }
    .sticky-pane { position: sticky; top: 120px; height: fit-content; }
    .hero-bottom { flex-direction: row; justify-content: space-between; text-align: left; margin-top: 120px; padding: 0 50px; }
}

/* Bento Grid */
.bento-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .card-span-2 { grid-column: span 2; }
}

/* Projects */
.project-card { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.project-card-header { padding: 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 768px) { .project-card-header { flex-direction: row; justify-content: space-between; padding: 24px; } }
.project-meta h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.project-meta p { color: var(--text-secondary); font-size: 0.9rem; }
.view-project { padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; }
.project-image { padding: 0 20px 20px 20px; height: 100%; }
@media (min-width: 768px) { .project-image { padding: 0 24px 24px 24px; } }
.project-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; transition: transform var(--transition); }
.project-card:hover .project-image img { transform: scale(1.03); }
.view-all-wrapper { text-align: center; margin-top: 40px; }
.view-all { color: var(--text-secondary); font-weight: 500; padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border-color); }

/* Quote (Brutalism) */
.quote-section { text-align: center; max-width: 800px; margin: 80px auto; padding: 0 10px; }
@media (min-width: 768px) { .quote-section { margin: 120px auto; } }
.brutal-quote { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 30px; letter-spacing: -0.03em; }
@media (min-width: 768px) { .brutal-quote { font-size: 2.5rem; margin-bottom: 40px; } }
.quote-author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.quote-author img { width: 48px; height: 48px; }
.quote-author div { text-align: left; display: flex; flex-direction: column; }
.quote-author span { color: var(--text-secondary); font-size: 0.9rem; }

/* Services */
.tools-label { color: var(--text-secondary); margin-bottom: 16px; font-weight: 500; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-icon { padding: 12px; border-radius: 16px; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.service-card { border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .service-card { padding: 32px; } }
.service-icon { font-size: 2rem; color: var(--text-primary); }
.service-content h3 { font-size: 1.5rem; margin-bottom: 8px; }
.service-content p { color: var(--text-secondary); }

/* About */
.about-split { display: grid; grid-template-columns: 1fr; gap: 60px; margin-top: 80px; }
@media (min-width: 768px) { .about-split { grid-template-columns: 350px 1fr; gap: 100px; } }
.profile-card { border-radius: 24px; overflow: hidden; }
.profile-photo { width: 100%; height: 350px; object-fit: cover; }
.profile-info { padding: 24px; }
.profile-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.profile-info .role { color: var(--accent-red); font-size: 0.9rem; font-weight: 500; }
.card-pad { padding: 24px; border-radius: 24px; margin-bottom: 40px; }
@media (min-width: 768px) { .card-pad { padding: 32px; } }
.about-bio p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 16px; }

/* Newspaper UI Integration (Vintage Retro) */
.newspaper-ui {
    background-color: #f1e4c3; /* Vintage yellowed paper */
    background-image: radial-gradient(circle, transparent 50%, rgba(139, 107, 72, 0.15) 120%); /* Aged vignette edges */
    color: #2b2b2b; /* Faded charcoal ink */
    border-radius: 2px; /* Sharp paper edges */
    border: 1px solid #c2b29a;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 12px 12px 0px rgba(0,0,0,0.8), inset 0 0 30px rgba(139, 107, 72, 0.1); /* Brutalist shadow + inner aging */
    font-family: 'Playfair Display', serif;
}
@media (min-width: 768px) { .newspaper-ui { padding: 32px; } }
.newspaper-ui p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: left;
}
@media (min-width: 768px) { .newspaper-ui p { font-size: 1.05rem; line-height: 1.6; text-align: justify; } }
.newspaper-header {
    border-bottom: 1px solid #2b2b2b;
    border-top: 5px double #2b2b2b; /* Classic vintage double line */
    padding: 12px 0;
    margin-bottom: 24px;
    text-align: center;
}
.newspaper-date, .newspaper-author {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    display: block;
}
.newspaper-headline {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 12px 0;
    text-transform: uppercase;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) { .newspaper-headline { font-size: 2rem; } }
.newspaper-columns {
    column-count: 1;
    column-gap: 30px;
}
@media (min-width: 1024px) {
    .newspaper-columns {
        column-count: 2;
    }
}
.drop-cap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 0px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: #a82727; /* Faded vintage red */
}
@media (min-width: 768px) { .drop-cap { font-size: 4.5rem; } }

.work-history-section { margin-top: 40px; }
.history-title { font-size: 1.5rem; margin-bottom: 24px; }
.history-card { border-radius: 16px; padding: 24px; display: flex; justify-content: space-between; align-items: center; }
.history-info h4 { font-size: 1.2rem; }
.history-info p { color: var(--text-secondary); }
.history-date { background: var(--accent-red); color: white; padding: 6px 14px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; }

/* FAQs */
.accordion { border-radius: 24px; padding: 10px 20px; }
@media (min-width: 768px) { .accordion { padding: 10px 30px; } }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header { width: 100%; text-align: left; background: none; border: none; color: white; padding: 20px 0; font-size: 1.05rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; }
@media (min-width: 768px) { .accordion-header { padding: 24px 0; font-size: 1.1rem; } }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.accordion-content p { padding-bottom: 24px; color: var(--text-secondary); }

.cta-discovery-card { border-radius: 24px; padding: 32px 20px; }
@media (min-width: 768px) { .cta-discovery-card { padding: 40px; } }
.cta-discovery-card h3 { font-size: 1.8rem; margin-bottom: 16px; line-height: 1.1; font-weight: 800; }
@media (min-width: 768px) { .cta-discovery-card h3 { font-size: 2.2rem; } }
.cta-discovery-card p { color: var(--text-secondary); margin-bottom: 8px; }
.cta-discovery-card .sub-text { margin-bottom: 32px; font-size: 0.9rem; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { padding-top: 60px; }
@media (min-width: 768px) { .footer { padding-top: 80px; } }
.footer-top { margin-bottom: 60px; }
@media (min-width: 768px) { .footer-top { margin-bottom: 80px; } }
.footer-title { font-size: 3rem; line-height: 1; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-title { font-size: 4rem; margin-bottom: 60px; } }
.footer-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (min-width: 768px) { .footer-links-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-label { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a { font-weight: 500; font-size: 1rem; transition: color 0.3s; }
@media (min-width: 768px) { .footer-col a { font-size: 1.1rem; } }
.footer-col a:hover { color: var(--accent-red); }

/* Marquee with Cement Wall Texture */
.marquee-container { border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden; padding: 20px 0; background: #111; }
.cement-texture {
    display: inline-block; 
    white-space: nowrap; 
    animation: marquee 30s linear infinite; 
    font-size: 10vw; 
    font-weight: 900; 
    letter-spacing: -0.02em;
    
    /* Grey color with rough cement SVG noise filter mapped to background-clip */
    background-color: #888888;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.7'/%3E%3C/svg%3E");
    background-blend-mode: multiply;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Adds depth to the cracks */
    -webkit-text-stroke: 1px rgba(0,0,0,0.8);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transform: translate3d(0, 0, 0); /* Force GPU compositing for heavy text filter */
    will-change: transform;
}
.cement-texture span { padding-right: 50px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Pop-up Animations */
.pop-up {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.pop-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}
