/* ==========================================================================
   1. GLOBAL STYLES & THEME VARIABLES (HIGH URGENCY DESIGN)
   ========================================================================== */
:root {
    --bg-white: #ffffff;       /* Base (60%) - Clean Pure White */
    --structure-dark: #000000; /* Structure (30%) - Bold Pitch Black */
    --accent-red: #d11a2a;     /* CTA Accent (10%) - Signature Crimson Red */
    
    --bg-card-light: #ffffff;  /* High contrast white for card items */
    --bg-section-alt: #f8f9fa; /* Subtle off-white to break up content sections */
    --text-dark: #111111;      /* Deep black for ultimate text readability */
    --text-muted: #555556;     /* Controlled neutral dark grey for copy paragraphs */
    --accent-yellow: #f1c40f;  /* Specialized highlight tracking text color */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* ==========================================================================
   2. REUSABLE COMPONENTS (TYPOGRAPHY & BUTTONS)
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--structure-dark);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Standard Crimson Red CTA Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-red);
    color: #ffffff;
    border: 2px solid var(--accent-red);
}

.btn-primary:hover {
    background-color: #b01220;
    border-color: #b01220;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(209, 26, 42, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--structure-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   3. FIXED HEADER NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    overflow: visible;
}

.logo-img {
    height: 75px !important;
    width: auto !important;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: calc(100% - 32px);
}

/* ==========================================================================
   4. HERO SECTION WITH IMAGE / SCROLL VIDEO EMULATION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 180px 20px 140px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 95vh;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.8)), 
                url('main.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.hero-content {
    max-width: 950px;
    position: relative;
    z-index: 5;
}

.hero-content .sub-title {
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.05rem;
    display: inline-block;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: 4.6rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.hero-content .highlight {
    color: var(--accent-yellow);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem;
    max-width: 740px;
    margin: 0 auto 45px auto;
    font-weight: 400;
    line-height: 1.7;
}

/* ==========================================================================
   5. ASYMMETRICAL OVERLAPPING INTERFACE (EXCLUSIVE BACKGROUND MATRIX CODE)
   ========================================================================== */
.about-section {
    background-color: var(--bg-white);
    position: relative;
    z-index: 10;
    margin-top: -120px; 
    padding-top: 0;
    overflow: hidden; /* Stops floating particle nodes from causing horizontal scrollbars */
}

/* Background Canvas Sizing Layer */
.about-bg-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Allows text highlighting and card tilt functions over the canvas background */
}

/* Pushes the container wrapper directly on top of canvas loop */
.about-section .container {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.95); /* High contrast transparency alpha overlay */
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--structure-dark);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--bg-section-alt);
    padding: 24px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateX(5px);
    border-left: 4px solid var(--accent-red);
    background-color: var(--bg-white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--structure-dark);
    margin-bottom: 4px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   6. SERVICES SECTION (WITH PREMIUM FLUID CORE HOVER VISUALS)
   ========================================================================== */
.services-section {
    background-color: #f8f9fa;
    padding: 100px 0;
}

section#services .services-grid, 
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 30px !important;
    margin-top: 40px;
}

.service-card {
    position: relative;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9));
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.card-content {
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.35rem;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.4s ease;
}

.service-card p {
    color: #555556;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.service-card:hover .card-image-overlay {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover h3 { color: #ffffff; }
.service-card:hover p { color: #dddddd; }

/* Responsive view overrides */
@media (max-width: 1024px) {
    section#services .services-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    section#services .services-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   7. PORTFOLIO / INSTAGRAM GRID
   ========================================================================== */
.portfolio-section {
    background-color: var(--bg-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-box {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.portfolio-box .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: transform 0.8s ease;
}

.portfolio-box:not(.red-bg)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.75));
    z-index: -1;
    transition: var(--transition);
}

.portfolio-box:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-box:hover .card-bg { transform: scale(1.08); }
.portfolio-box:hover:not(.red-bg)::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
}

.portfolio-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.red-bg { background-color: var(--accent-red); }
.red-bg h3 { color: #ffffff; }
.red-bg h2 { font-size: 3.5rem; font-weight: 900; color: #ffffff; }

.black-bg { background-color: var(--structure-dark); }
.black-bg h3 { font-size: 2.2rem; font-weight: 800; color: #ffffff; }
.black-bg p { color: var(--accent-yellow); font-weight: 700; font-size: 0.95rem; margin-top: 5px; }

.dark-bg { background-color: #16161a; }
.dark-bg h3 { font-size: 0.95rem; color: var(--accent-yellow); font-weight: 700; margin-bottom: 8px; }
.dark-bg p { font-size: 1.5rem; font-weight: 800; color: #ffffff; }

.item-caption {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* ==========================================================================
   8. INTEGRATED FOOTER AND CONTACT LAYOUT
   ========================================================================== */
footer {
    background-color: var(--structure-dark);
    padding: 0;
}

.footer-container {
    padding: 80px 20px 40px 20px !important;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    text-align: left;
}

/* Left side details styling */
.footer-info-side h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 20px 0 10px 0;
}

.footer-desc {
    color: #b3b3b3;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.contact-info-block p {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 20px 0;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.contact-info-block strong {
    color: var(--accent-red);
}

.social-icons {
    margin-top: 25px;
}

.social-icons a {
    color: #99999a;
    font-size: 1.6rem;
    margin-right: 20px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-red);
    transform: translateY(-2px);
}

/* Right side contact wrapper overrides inside footer */
.footer-form-side .contact-wrapper {
    max-width: 100%;
    background-color: #111111;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(209, 26, 42, 0.15);
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 14px;
    font-weight: 700;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 50px 0 25px 0;
}

.copyright-text {
    text-align: center;
    color: #777778;
    font-size: 0.9rem;
}

/* ==========================================================================
   10. VIEWPORT RESPONSIVENESS & MICRO-ANIMATIONS
   ========================================================================== */
@media (max-width: 992px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; height: 80px; }
    .logo-img { height: 60px !important; }
    .nav-links, .cta-button { display: none; }
    .hero-content h1 { font-size: 2.6rem; }
    .about-section { margin-top: -60px; }
    .about-section .container { padding: 30px 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .footer-form-side .contact-wrapper { padding: 25px 20px; }
    .service-card { grid-column: auto !important; }
}

/* Premium Entry Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content .sub-title { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.hero-content h1 { animation: fadeInUp 0.8s ease forwards 0.15s; opacity: 0; }
.hero-content p { animation: fadeInUp 0.8s ease forwards 0.3s; opacity: 0; }
.hero-buttons { animation: fadeInUp 0.8s ease forwards 0.45s; opacity: 0; }

/* --- Premium 3D Micro-Interactions --- */
.service-card, .stat-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.25);
}

/* Pushes internal text elements forward in 3D space */
.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
    transform: translateZ(30px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-icon, .service-card h3, .service-card p {
    transition: transform 0.5s ease;
}