/* CSS Variables */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #111111;
    --color-surface-light: #1a1a1a;
    --color-text: #e0e0e0;
    --color-text-muted: #999999;
    --color-primary: #8B0000; /* Deep Burgundy Red */
    --color-primary-hover: #a50000;
    --color-accent: #D4AF37; /* Gold */
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor.hover {
    width: 20px;
    height: 20px;
    background: rgba(139, 0, 0, 0.5);
    border: 1px solid var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-title {
    font-size: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.max-w-md {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

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

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 8rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.w-100 {
    width: 100%;
}

.link-btn {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.link-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo-red {
    color: var(--color-primary);
    font-style: italic;
}

.nav-list {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text);
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 1px;
    background: var(--color-primary);
    transition: var(--transition);
}

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

/* Dropdown / Mega Menu */
.nav-item.dropdown {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: -2rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 700px;
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-col h4 {
    color: var(--color-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.dropdown-col ul {
    list-style: none;
}

.dropdown-col li {
    margin-bottom: 0.75rem;
}

.dropdown-col a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}

.dropdown-col a:hover {
    color: var(--color-primary);
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { bottom: 0; }

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}
.menu-btn.active span:nth-child(2) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-surface);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 2rem 0;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 100%);
}

.hero-content {
    width: 100%;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 500px;
    color: #ccc;
    margin-bottom: 3rem;
}

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

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 2px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-surface);
    padding: 2.5rem;
    border-left: 2px solid var(--color-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.experience-badge .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.experience-badge .text {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #ccc;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--color-surface);
    padding: 4rem 3rem;
    border: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--color-surface-light);
}

.service-card:hover::after {
    width: 100%;
}

.service-icon {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    opacity: 0.5;
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.5rem;
}

/* All Services Grid */
.all-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 4rem;
}

.all-services-col h4 {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.all-services-col ul {
    list-style: none;
}

.all-services-col li {
    margin-bottom: 0.75rem;
}

.all-services-col a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.all-services-col a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-info h3 {
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    color: var(--color-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

/* CTA Contact Section */
.cta-inner {
    background: var(--color-surface);
    padding: 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    background: var(--color-surface-light);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

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

.footer-col a {
    color: var(--color-text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a:hover {
    color: #fff;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes (handled by JS) */
.reveal-fade, .reveal-up, .reveal-scale {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-scale {
    transform: scale(0.95);
}

.reveal-fade.active, .reveal-up.active, .reveal-scale.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title { font-size: 2.5rem; }
    .about-inner { gap: 4rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { padding: 4rem; }
}

@media (max-width: 768px) {
    /* Hide custom cursor on mobile */
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }

    .nav { display: none; }
    .menu-btn { display: block; }
    
    .hero-title { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
    
    .about-inner { grid-template-columns: 1fr; }
    .experience-badge { bottom: -20px; right: 0; padding: 1.5rem; }
    
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    
    .cta-inner { grid-template-columns: 1fr; padding: 2rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Simple Dropdown Override */
.dropdown-menu.simple {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    list-style: none;
}
.dropdown-menu.simple li a {
    color: var(--color-text-muted);
    transition: var(--transition);
}
.dropdown-menu.simple li a:hover {
    color: var(--color-accent);
}

.two-column-text { column-count: 2; column-gap: 40px; margin-top: 40px; color: var(--color-text-muted); line-height: 1.8; font-size: 1.1rem; }
@media (max-width: 768px) { .two-column-text { column-count: 1; } }

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}
.breadcrumb li a {
    color: var(--color-accent);
    transition: var(--transition);
}
.breadcrumb li a:hover {
    color: var(--color-primary);
}
/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-progress-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-progress-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4); /* Glow effect with primary color (red) */
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke-dasharray: 138; /* 2 * pi * 22 approx 138 */
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-arrow {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
    transition: color 0.3s ease;
}

.scroll-progress-container:hover .scroll-arrow {
    color: #fff;
}
