:root {
    --primary-color: #033C42; /* Deep teal/blue from security */
    --accent-color: #BF550C; /* Safety orange */
    --secondary-accent: #AF9A7E; /* Warm sand/gold */
    --bg-light: #EAE9E5; /* Light grey/sand */
    --bg-dark: #1E1B19; /* Very dark brown/grey */
    --text-main: #333333;
    --text-light: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Typography Selection */
::selection {
    background-color: var(--accent-color);
    color: var(--text-light);
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #d96515);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(191, 85, 12, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(191, 85, 12, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(3, 60, 66, 0.9) 0%, rgba(30, 27, 25, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Section Common */
section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Services Grid */
.services-section {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--text-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.maintenance-bg {
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?q=80&w=2070&auto=format&fit=crop');
}

.security-bg {
    background-image: url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?q=80&w=2070&auto=format&fit=crop');
}

.cleaning-bg {
    background-image: url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?q=80&w=2070&auto=format&fit=crop');
}

.card-content {
    padding: 2rem;
    position: relative;
    background: var(--text-light);
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-content p {
    color: #555;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    background-color: var(--text-light);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    font-size: 1.1rem;
    color: var(--bg-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    border: 3px solid var(--secondary-accent);
    border-radius: 20px;
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(3, 60, 66, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.1);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-color);
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Contact Section */
.contact-section {
    background: var(--bg-dark);
    color: var(--text-light);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    background: rgba(255,255,255,0.05);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-accent);
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.info-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.2rem;
}

.contact-form {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1.2rem;
}

.form-row .input-group {
    flex: 1;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.input-group select option {
    background: var(--bg-dark);
    color: var(--text-light);
}

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

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #0f0d0c;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 3rem 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

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

/* Animations Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Staggered form fields */
.stagger-fade-up .input-group, 
.stagger-fade-up .form-row,
.stagger-fade-up button {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stagger-fade-up.in-view .input-group:nth-child(1),
.stagger-fade-up.in-view .form-row:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-fade-up.in-view .input-group:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-fade-up.in-view .input-group:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-fade-up.in-view button { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .about-container, .contact-container {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .image-wrapper::before {
        display: none;
    }

    .experience-badge {
        bottom: -20px;
        left: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile state */
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }
}
