/* Root Variables - RAD Technology Design System */
:root {
    --primary-color: #E8820C;
    --primary-hover: #cf7105;
    --bg-light: #F2F2F0;
    --bg-dark: #111111;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --text-light: #ffffff;
    --border-subtle: #e6e6e2;
    --border-dark: #2a2a2a;
    
    --font-body: 'Barlow', sans-serif;
    --font-heading: 'Barlow Condensed', sans-serif;
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 4px;
    
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-orange { color: var(--primary-color); }
.text-white { color: var(--text-light); }
.mt-4 { margin-top: 2rem; }
.text-xs { font-size: 0.85rem; color: var(--text-muted); }
.w-100 { width: 100%; }

/* Typography Extras */
.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(232, 130, 12, 0.2);
}

.btn-primary-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

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

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: white;
    color: var(--bg-dark);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

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

.logo img {
    height: 40px;
}

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

.nav-links a:not(.btn-primary-outline) {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bg-dark);
    position: relative;
}

.nav-links a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-outline):hover::after {
    width: 100%;
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--bg-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    z-index: -2;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 50%, rgba(17,17,17,0.4) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--text-light);
    max-width: 800px;
    text-align: left;
    margin: 0;
}

.hero-content .subheading {
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.hero-content .main-heading {
    font-size: 72px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-desc {
    font-size: 20px;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.accent-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 4px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    border-bottom: 4px solid var(--primary-color);
}

.stat-card h3 {
    font-size: 36px;
    color: var(--bg-dark);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text-main);
    transition: var(--transition);
}

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

.card-img {
    height: 220px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sectors Section */
.sector-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.sector-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sector-img-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.sector-img-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sector-info h3 {
    font-size: 32px;
    color: var(--bg-dark);
    margin-bottom: 20px;
}

.sector-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.orange-bullets {
    list-style: none;
}

.orange-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--bg-dark);
    font-weight: 500;
}

.orange-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Contact Section */
.contact-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary-color);
}

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

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row .label {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 5px;
}

.contact-row .value {
    font-size: 18px;
    font-family: var(--font-heading);
    color: white;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

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

input, select, textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    background: #fafaf8;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(232, 130, 12, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-dark);
}

.footer-logo {
    height: 46px;
    margin: 0 auto 20px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.footer p {
    color: #666;
    font-size: 14px;
}

/* 
   Note: GSAP handles animations now. 
   Initial CSS states are kept hidden to prevent FOUC (Flash of Unstyled Content).
*/
/* 
   Note: GSAP handles animations now. 
   We removed strict opacity/visibility restraints so the text doesn't vanish.
*/
.reveal, .slide-up {
    /* No default hidden CSS needed, GSAP will manually manage opacity */
}

/* Responsive Options */
@media (max-width: 991px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .sector-item {
        grid-template-columns: 1fr;
    }
    
    .sector-item.reverse .sector-info {
        order: 2;
    }
    .sector-item.reverse .sector-img-box {
        order: 1;
    }

    .hero-content .main-heading {
        font-size: 54px;
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* simple mobile nav hide for now */
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content .main-heading {
        font-size: 42px;
    }
}

/* Secondary Page Headers */
.page-header {
    padding: 150px 0 60px;
    background: var(--bg-dark);
    text-align: center;
    color: var(--text-light);
}

.dark-section .section-title {
    color: var(--text-light);
}

.dark-section p {
    color: #cccccc;
}

.dark-section ul li {
    color: #e0e0e0;
}

.page-header h1 {
    font-size: 54px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-subtle);
}

.blog-card .blog-img {
    height: 200px;
    background: var(--bg-dark);
}

.blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.blog-card .blog-body {
    padding: 30px;
}

.blog-meta {
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 20px;
    color: var(--bg-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Generic Content Boxes */
.content-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.content-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Lightbox Feature */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    font-family: sans-serif;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-color);
}
