/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #0056b3;       /* Corporate Blue */
    --primary-dark: #004494;  /* Darker Blue */
    --accent: #ff9800;        /* Orange Accent (similar to Ravin's highlights) */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --footer-bg: #1a1a1a;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-info span { margin-right: 20px; }
.top-bar-info i { margin-right: 5px; color: var(--accent); }
.social-links a { margin-left: 10px; color: var(--white); }
.social-links a:hover { color: var(--accent); }

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo span { color: var(--text-dark); margin-left: 5px; }

.nav-menu { display: flex; align-items: center; gap: 30px; }

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.menu-toggle { display: none; cursor: pointer; color: var(--text-dark); font-size: 1.5rem; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   4. STATS STRIP
   ========================================= */
.stats-strip {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; }
.stat-item p { font-size: 1rem; text-transform: uppercase; opacity: 0.9; }

/* =========================================
   5. ABOUT & SECTIONS
   ========================================= */
.section-title { margin-bottom: 50px; text-align: center; }
.section-title span { color: var(--primary); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-title h2 { font-size: 2.2rem; font-weight: 700; color: var(--text-dark); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-content h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.3; }
.about-content p { margin-bottom: 20px; color: var(--text-light); }
.about-img img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.industry-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
}

.industry-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.industry-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.industry-card h4 { font-size: 1rem; font-weight: 600; }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.service-card:hover { border-bottom-color: var(--primary); transform: translateY(-5px); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--text-dark); font-weight: 700; }
.service-card p { color: var(--text-light); margin-bottom: 20px; font-size: 0.9rem; }
.service-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.service-link:hover { text-decoration: underline; }

/* =========================================
   6. CONTACT FORM SECTION
   ========================================= */
.contact-section { background: var(--bg-light); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form h3 { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}
.form-group textarea { height: 100px; resize: none; }
.contact-sidebar { background: var(--primary); color: var(--white); padding: 30px; border-radius: 4px; }
.contact-sidebar h3 { margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.contact-sidebar p { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }

/* =========================================
   7. FOOTER
   ========================================= */
footer { background: var(--footer-bg); color: #aaa; padding-top: 60px; font-size: 0.9rem; }
.footer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; text-transform: uppercase; }
.footer-col p { margin-bottom: 10px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #333; padding: 20px 0; text-align: center; }

/* Inner Page Header (For other pages) */
.page-header {
    height: 300px;
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.9)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; left: -100%; top: 80px; width: 100%; background: var(--white);
        flex-direction: column; padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */

/* The starting state (Hidden) */
.hidden-element {
    opacity: 0;
    transform: translateY(50px); /* Push it down 50px */
    transition: all 0.8s ease-out; /* Smooth transition duration */
    filter: blur(4px); /* Slight blur effect */
}

/* The ending state (Visible) */
.show-element {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
    filter: blur(0);
}

/* Staggering effect for cards (Optional polish) */
/* This makes cards appear one by one instead of all at once */
.service-card:nth-child(2), .feature-card:nth-child(2), .stat-item:nth-child(2) { transition-delay: 100ms; }
.service-card:nth-child(3), .feature-card:nth-child(3), .stat-item:nth-child(3) { transition-delay: 200ms; }
.service-card:nth-child(4), .feature-card:nth-child(4), .stat-item:nth-child(4) { transition-delay: 300ms; }