/* Base Variables */
:root {
    --color-bg: #050505;
    --color-bg-alt: #121212;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-primary: #ff5500;
    /* Vivid Orange */
    --color-primary-hover: #ff7733;
    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --section-padding: 100px;
    --border-radius: 8px;

    --transition: all 0.3s ease;
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('../images/cursor-ams.png'), auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.bg-darker {
    background-color: var(--color-bg-alt);
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.owl-loader {
    width: 150px;
    height: auto;
    /* Fly in from left, pause slightly, then zoom past the screen */
    animation: owlFlyAndZoom 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes owlFlyAndZoom {
    0% {
        transform: translate(-150vw, -50vh) scale(0.1) rotate(-20deg);
        opacity: 0;
    }

    30% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }

    70% {
        transform: translate(0, 0) scale(1.1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) scale(40);
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 85, 0, 0.2);
}

.btn-outline {
    border-color: #fff;
    background: transparent;
    color: #fff;
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--color-bg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 120px;
    /* Adjust based on actual logo aspect ratio */
}

.logo img {
    height: 40px;
    /* Constrain height to fit navbar */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 400;
    font-size: 0.95rem;
    opacity: 0.8;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed header */
    background: url('../images/home-bg.jpg') no-repeat center center/cover;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    /* Or keep it generic white, but lets try an outline effect style or just primary color */
    /* Let's go with just text for now to be safe and clean */
    -webkit-text-stroke: 0;
    color: #fff;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    margin-left: -80px;
    /* Shift buttons further left */
}

/* Abstract Shapes */
.hero-shape {
    display: none;
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation: float 10s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #444;
    /* Dark Grey Accent */
    bottom: 50px;
    left: -50px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* About Section */
.about-image {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 85, 0, 0.1));
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin-top: 10px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
}

/* Services */
.section-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #1a1a1a;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    background: #202020;
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Work/Portfolio */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.view-all-link {
    color: var(--color-primary);
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background: #222;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* Mock Images for demo */
.portfolio-item:nth-child(1) .portfolio-img {
    background-image: linear-gradient(135deg, #333 0%, #000 100%);
}

.portfolio-item:nth-child(2) .portfolio-img {
    background-image: linear-gradient(135deg, #444 0%, #111 100%);
}

.portfolio-item:nth-child(3) .portfolio-img {
    background-image: linear-gradient(135deg, #555 0%, #222 100%);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    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-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.portfolio-overlay p {
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* Contact */
.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.social-links a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.contact-form {
    background: #1a1a1a;
    padding: 3rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #050505;
}

/* Custom Checkbox for Services */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    user-select: none;
    transition: var(--transition);
}

.custom-checkbox:hover {
    color: #fff;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
    transition: var(--transition);
}

.custom-checkbox:hover input~.checkmark {
    border-color: var(--color-primary);
}

.custom-checkbox input:checked~.checkmark {
    background-color: transparent;
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark+span,
.custom-checkbox input:checked {
    color: #fff;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-bottom-links {
    margin-top: 1rem;
}

.footer-bottom-links a {
    margin: 0 10px;
    color: #666;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
}

.team-card {
    text-align: center;
    position: relative;
    /* group-hover style logic handled via direct hover on container if needed, but per card is better */
}

.team-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.team-card:hover .team-img-wrapper {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.3);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

.team-info h3 {
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #fff;
}

.team-info .team-role {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Interaction / Animation Classes */
.reveal-up,
.reveal-left,
.reveal-right,
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.active-reveal {
    opacity: 1;
    transform: translate(0);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
        /* Hide for now, toggle via JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-shape {
        display: none;
    }

    /* Simplify for mobile */

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        background-size: contain !important;
        background-position: top center !important;
        background-color: transparent !important;
        height: 100vh !important;
        align-items: flex-end;
        padding-bottom: 10vh;
    }

    .hero-content>div {
        margin-top: 0 !important;
    }

    .hero-btns {
        margin-left: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-btns a {
        margin: 0 !important;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #000;
    color: var(--color-primary);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #111;
    color: var(--color-primary-hover);
    transform: scale(1.1);
}

/* Add an SVG icon or use an image for WhatsApp logo inside the link */
.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: #000;
}

@media (max-width: 768px) {
    #scrollToTopBtn {
        bottom: 110px;
        /* sit higher up than whatsapp */
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float {
        bottom: 30px;
        left: 20px;
    }
}

/* SEO Utilities */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}