:root {
    --primary-color: #d9232d; /* Red from the screenshot */
    --primary-hover: #b91d26;
    --dark-bg: #272930;
    --darker-bg: #1e1f24;
    --light-bg: #f4f4f4;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-gray: #888888;
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-gray);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 span {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-solid {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    border-radius: 4px;
}

.btn-solid:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 40px;
}

.nav > ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Dropdown Styles */
.nav li.has-dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.nav a i.fa-chevron-down {
    font-size: 0.6rem;
    margin-left: 6px;
    vertical-align: middle;
}

.nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-bg);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 18px; /* Bridging the gap from text to box */
}

/* Invisible bridge to keep hover state */
.nav .dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav li.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav .dropdown li {
    width: 100%;
}

.nav .dropdown a {
    padding: 12px 20px;
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.nav .dropdown li:last-child a {
    border-bottom: none;
}

.nav .dropdown a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.header-contact {
    font-size: 0.85rem;
    display: flex;
    gap: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding-top: 70px; /* Offset for header */
}

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

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.3;
}

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

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* What We Do Section */
.what-we-do {
    position: relative;
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 100px 0;
    overflow: hidden;
}

.what-we-do-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('img/what_we_do_bg_real.png');
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to right, transparent, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
    opacity: 0.7;
    z-index: 1;
}

.what-we-do-container {
    position: relative;
    z-index: 2;
}

.what-we-do-content {
    max-width: 600px;
}

.what-we-do-content p {
    color: #aaaaaa;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-item .icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: #ffffff;
}

.projects-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.projects-image {
    flex: 1;
}

.projects-image img {
    width: 100%;
    border-radius: 8px;
}

.projects-image .caption {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 15px;
}

.projects-image .caption span {
    color: var(--primary-color);
    font-weight: 600;
}

.projects-content {
    flex: 1;
}

.project-list {
    margin-top: 30px;
}

.project-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-list li i {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Video Placeholder Section */
.video-placeholder {
    background-color: #e5e5e5;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.video-error-box {
    color: #666;
}

.video-error-box .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #888;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px auto;
}

.video-error-box p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.video-error-box .error-code {
    font-size: 0.7rem;
    color: #aaa;
}

/* Footer Section */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 80px 0 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.contact-info .email {
    text-decoration: underline;
}

.addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.addresses p {
    font-size: 0.85rem;
    color: #aaaaaa;
}

.social-links p {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-right {
    flex: 1;
    max-width: 500px;
}

.footer-right h2 {
    font-size: 1.8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    background-color: #3b3d42;
    border: none;
    padding: 15px;
    border-radius: 4px;
    color: white;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}

.contact-form button {
    align-self: flex-start;
    padding: 10px 40px;
}

.footer-bottom {
    border-top: 1px solid #3b3d42;
    padding-top: 20px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
}

.footer-bottom a {
    color: #888;
    text-decoration: underline;
}

.made-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.habitat-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1e88e5; /* Sample color for habitat */
    font-weight: bold;
}

.recaptcha-text {
    text-align: center;
    font-size: 0.65rem;
    color: #666;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container, .projects-container {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .what-we-do-bg {
        width: 100%;
        mask-image: linear-gradient(to bottom, transparent, black 40%);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%);
    }
}

/* Glassmorphism & Image Overlays */
.glass-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 30px; border-radius: 10px; }
.hero-lead { font-size: 1.1rem; margin-top: 20px; line-height: 1.8; color: #f0f0f0; }
.image-wrapper { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.floating-stat { position: absolute; bottom: -20px; right: -20px; background: rgba(217, 35, 45, 0.9); padding: 20px; display: flex; flex-direction: column; align-items: center; border: none; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: white; }
.stat-text { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.8); }
.glass-overlay::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.3s; }
.image-wrapper:hover.glass-overlay::after { opacity: 1; }
.hover-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; opacity: 0; transition: opacity 0.3s; }
.image-wrapper:hover .hover-content { opacity: 1; }

