:root {
    /* Brand Palette */
    --bg-color: #1f1f1f;
    /* Neutral Black C */
    --text-color: #e5f0ec;
    /* Off-white */
    --text-muted: #a0a0a0;
    --primary-color: #0000d6;
    /* Blue */
    --accent-color: #cc3d3d;
    /* Red */
    --card-bg: #1a1a1a;
    /* Slightly darker than bg */

    /* Typography */
    --font-heading: 'Oswald', 'Roc Grotesk', sans-serif;
    /* Using Oswald as close match for Roc Grotesk Condensed */
    --font-display: 'Unbounded', 'Roc Grotesk Wide', sans-serif;
    /* For extra wide impact */
    --font-body: 'Inter', sans-serif;

    --spacing-container: 1200px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    /* Deep gradient background with subtle texture feel */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 0, 214, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(204, 61, 61, 0.05), transparent 25%);
    background-attachment: fixed;
    /* Ensures gradient covers full scroll */
    min-height: 100vh;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    /* Roc Grotesk style often uppercase */
}

h1 {
    font-family: var(--font-display);
    /* Use the wide font for main title */
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.highlight {
    color: var(--primary-color);
    /* Blue highlight */
}

/* Layout */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically */
    background: transparent !important;
    /* Force transparent */
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1000;
    height: auto;
    pointer-events: none;
}

.navbar>* {
    pointer-events: auto;
}

.logo {
    display: block;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.logo img {
    height: 130px !important;
    /* Reduced by ~20% */
    width: auto;
    display: block;
    max-height: none !important;
    /* Visual adjustment to ignore transparent whitespace */
    margin-top: -25px;
    margin-left: -20px;
}

.nav-links {
    /* Notch Style - Centered Pill */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 2rem;
    /* Fixed distance from top */

    display: flex;
    gap: 2.5rem;
    background: rgba(5, 5, 5, 0.6);
    /* Reduced opacity from 0.9 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 0.8rem 3rem;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Slightly softer shadow */
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    /* White text */
    opacity: 0.9;
    /* Increased text opacity for contrast against lighter bg */
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav-cta {
    position: absolute;
    top: 2rem;
    /* Match nav-links top */
    right: 3rem;
    /* Match container padding */

    padding: 0.8rem 2rem;
    background: rgba(5, 5, 5, 0.6);
    /* Reduced opacity from 0.9 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-color: #000;
}

.hero-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.6;
    /* Keep the dimming for text readability */
}

/* Add an overlay to ensure text readability */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    /* Wider to match cinematic feel */
    padding: 0 2rem;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 5rem;
    /* Larger impact */
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-color);
}

.primary-button {
    display: inline-block;
    background: var(--primary-color);
    /* Blue button */
    color: var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 0px;
    /* Sharper edges for modern feel */
    font-weight: 600;
    margin-top: 1rem;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--primary-color);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--primary-color);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(31, 31, 31, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

/* Navbar Glass Update */
.navbar {
    background: rgba(5, 5, 5, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Portfolio Horizontal Scroll */
.portfolio-section {
    overflow: hidden;
    padding: 4rem 0;
    position: relative;
}

.portfolio-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 5vw;
    scroll-snap-type: x mandatory;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
    perspective: 1000px;
    cursor: grab;
}

.portfolio-scroll-container:active {
    cursor: grabbing;
}

.portfolio-scroll-container::-webkit-scrollbar {
    height: 6px;
    display: block;
    /* Show scrollbar as requested */
}

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

.portfolio-info .client {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.portfolio-info .meta-info p {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
}

.portfolio-info .award {
    color: var(--accent-color) !important;
    /* Red */
    font-weight: 600;
    margin-top: 0.5rem;
}

.portfolio-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.portfolio-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Aspect Ratios */
.portfolio-item {
    width: 570px;
    /* Increased by 25% from 455px */
    height: 570px;
    /* 1:1 Square */
    flex: 0 0 auto;
    scroll-snap-align: center;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    background: #000;
    /* Default bg for video containers */
}

/* Remove specific horizontal/vertical sizing since all are now 1:1 */
.portfolio-item.horizontal,
.portfolio-item.vertical {
    width: 570px;
    height: 570px;
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

/* Ensure iframes fit perfectly */
.portfolio-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    /* Optional: prevents interaction with video controls on hover if desired, or remove to allow play */
}

.portfolio-item:hover .portfolio-thumb {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    padding: 1.5rem;
    /* Glassmorphism for info card */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy reveal */
}

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

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

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 214, 0.15);
    /* Blue glow using primary color */
}

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

/* Contact */
.contact-pills {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    /* Center the form */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 1rem;
    color: var(--text-color);
    font-family: var(--font-body);
    border-radius: 4px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid #222;
    margin-top: 4rem;
    text-align: center;
    color: #555;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Stagger delays for grid items */
.portfolio-item:nth-child(1) {
    transition-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    transition-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
        /* Smaller on mobile */
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ============================================ */

/* Tablet & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {

    /* Typography Scaling */
    h1 {
        font-size: 2.5rem;
        letter-spacing: -0.01em;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Navbar - Stacked Layout */
    nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .logo {
        position: static;
        margin: 0;
    }

    .logo img {
        height: 80px !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
    }

    .nav-links {
        position: static;
        transform: none;
        width: 100%;
        max-width: 400px;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-cta {
        position: static;
        width: 100%;
        max-width: 400px;
        text-align: center;
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        min-height: 70vh;
        padding: 16rem 0 4rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Portfolio Section */
    .portfolio-scroll {
        gap: 1.5rem;
        padding: 0 1rem 2rem;
    }

    .portfolio-item {
        min-width: 400px;
        width: 400px;
        height: 400px;
    }

    .portfolio-info {
        padding: 1.5rem;
    }

    .portfolio-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .portfolio-info .client {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .portfolio-info .meta-info p {
        font-size: 0.8rem;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

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

    /* About Section */
    .about-content {
        max-width: 100%;
    }

    /* Contact Section */
    .contact-pills {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .contact-pill {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .contact-form {
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }

    button[type="submit"] {
        width: 100%;
        padding: 1rem;
    }
}

/* Mobile Phone (480px and below) */
@media (max-width: 480px) {

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Navbar */
    .navbar {
        position: absolute;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .logo img {
        height: 120px !important;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        max-width: 100%;
        border-radius: 16px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-cta {
        max-width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
        padding: 22rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }

    /* Portfolio */
    .portfolio-scroll {
        gap: 1rem;
        padding: 0 0.75rem 1.5rem;
    }

    .portfolio-item {
        min-width: 280px;
        width: 280px;
        height: 280px;
    }

    .portfolio-info {
        padding: 1rem;
    }

    .portfolio-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-info .client {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-info .meta-info p {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .portfolio-info .award {
        font-size: 0.75rem;
    }

    /* Services */
    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* About */
    .about h2 {
        margin-bottom: 1rem;
    }

    /* Contact */
    .contact h2 {
        margin-bottom: 1.5rem;
    }

    .contact-pill {
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-pill svg {
        width: 18px;
        height: 18px;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    button[type="submit"] {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .portfolio-item {
        min-width: 240px;
        width: 240px;
        height: 240px;
    }

    .nav-links {
        padding: 0.75rem;
    }
}