/* 
 * Chris Tech Electrical - Modern Styling (Light Theme)
 * Colors: White/Off-White (Backgrounds), Deep Blue (Accents), Dark Slate (Text)
 */

 :root {
    --bg-dark: #f8fafc; /* Changed to off-white */
    --bg-card: #ffffff; /* White cards */
    --bg-card-hover: #f1f5f9; /* Light grey hover */
    --accent-blue: #2563eb; /* Deeper blue for contrast */
    --accent-blue-glow: rgba(37, 99, 235, 0.3);
    --text-main: #0f172a; /* Dark text */
    --text-muted: #475569; /* Medium dark text */
    --transition-speed: 0.3s;
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    font-weight: 300;
}

span {
    color: var(--accent-blue);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.95); /* Dark background for white text */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 4px;
}

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

.nav-links a {
    color: #ffffff; /* White font for nav links */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-speed);
}

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

.btn-nav {
    background: transparent;
    border: 1px solid #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    color: #ffffff !important; /* White font for nav button */
    transition: all var(--transition-speed);
}

.btn-nav:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff !important;
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

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

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    flex: 1;
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #f1f5f9, #ffffff);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    max-width: 80%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.icon-pulse {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-blue-glow);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.glass-card h3 {
    margin-bottom: 10px;
}

/* Services Section */
.services {
    background-color: #f1f5f9;
}

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

.service-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-speed);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.1);
}

.service-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.service-content {
    padding: 30px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.service-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform var(--transition-speed);
}

.service-link:hover {
    transform: translateX(5px);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 60px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.contact-info {
    flex: 1;
    padding: 50px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, #ffffff 100%);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.info-icon {
    color: var(--accent-blue);
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-form {
    flex: 1.5;
    padding: 50px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
    background: #0f172a;
    color: #ffffff;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #94a3b8;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #38bdf8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-reveal.left {
    transform: translateX(-50px);
}

.scroll-reveal.right {
    transform: translateX(50px);
}

.scroll-reveal.bottom {
    transform: translateY(50px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container, .contact-container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}
