/* CSS Variables - Dark Mode Theme with Guideline Orange */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Guideline Orange and Gradients */
    --primary: #f59e0b; /* Golden Orange */
    --primary-hover: #fbbf24;
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(10, 10, 15, 0.9);
}

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

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

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

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,15,0.7) 0%, rgba(10,10,15,0.9) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero .btn-primary {
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.quote {
    margin-top: 30px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    background: var(--bg-card);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 1.1rem;
}

.quote span {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    font-style: normal;
    color: var(--primary);
}

.about-images {
    position: relative;
    height: 500px;
}

.about-images img {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.about-images img:hover {
    transform: scale(1.05);
    z-index: 10;
}

.img-float1 {
    width: 70%;
    top: 0;
    left: 0;
    border: 1px solid var(--glass-border);
}

.img-float2 {
    width: 60%;
    bottom: 0;
    right: 0;
    border: 2px solid var(--primary);
}

/* Expertise Section */
.expertise-subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0.8;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.expertise-card p {
    color: var(--text-muted);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.portfolio-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-item:hover .portfolio-media {
    transform: scale(1.08);
}

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

.portfolio-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

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

/* Contact Section */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: rgba(0,0,0,0.2);
}

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

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item strong {
    color: var(--primary);
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 5px;
}

.contact-form-container {
    padding: 50px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Clients Section */
.clients {
    background-color: var(--bg-dark);
}

.clients-container {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* Portfolio Tabs */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.portfolio-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.portfolio-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Nav Logo */
.nav-logo {
    height: 45px;
    display: block;
    /* Adding a subtle white glow so the dark grey text remains readable on the dark navbar background */
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.7));
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-box {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Marquee Animation for Clients */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px 0;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
    gap: 40px;
    align-items: center;
}

.marquee-content img {
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.marquee-content img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); } /* Half the total width to reset seamlessly */
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.video-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
}

.modal-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    background: #000;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}
