/* Custom CSS for SV Infra Projects */

/* Global Styles */
:root {
    /* Brand / Primary Colors */
    --orange: #F15A24;          /* Accent / CTA */
    --sky-blue: #29ABE2;        /* Highlight / Links */
    --green: #8CC63F;           /* Growth / Section Accents */
    --brown: #4C2E1F;           /* Navbar / Footer */
    
    /* Secondary Colors */
    --brick-red: #EF4423;       /* Alternate Accent */
    --light-gray: #F4F4F4;      /* Backgrounds / Sections */
    --dark-gray: #333333;       /* Text Primary */
    --white: #FFFFFF;           /* Main Background / Text Contrast */
    
    /* Legacy variables for compatibility */
    --primary-color: var(--orange);
    --secondary-color: var(--sky-blue);
    --accent-color: var(--green);
    --text-dark: var(--dark-gray);
    --text-light: #6b7280;
    --bg-light: var(--light-gray);
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--sky-blue));
    margin: 0 auto;
    border-radius: 2px;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: var(--brown) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--white) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--orange) !important;
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
    color: var(--white) !important;
}

.social-icons a:hover {
    color: var(--orange) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2073&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 46, 31, 0.4);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--brick-red));
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--sky-blue), var(--orange));
}

.btn-outline-primary {
    border: 2px solid var(--orange);
    color: var(--orange);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Value Items */
.value-item {
    padding: 2rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: var(--shadow);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-item h5 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Project Sections */
#projects {
    background: var(--light-gray);
}

.project-image img {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.02);
}

.project-content h3 {
    color: var(--dark-gray);
    font-weight: 700;
    border-bottom: 3px solid var(--orange);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.project-content .lead {
    color: var(--text-light);
    font-weight: 500;
}

.project-content ul li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.project-content ul li i {
    color: var(--orange);
}

.project-content ul li i.fa-check {
    color: var(--green);
}

/* Team Section */
.team-member {
    padding: 2rem;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-image img {
    border: 4px solid var(--orange);
    transition: all 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.team-member h4 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--orange);
    font-weight: 600;
}

/* Contact Section */
#contact {
    background: var(--white);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    color: var(--orange);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(241, 90, 36, 0.25);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: var(--brown);
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange) !important;
}

footer .social-icons a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    color: var(--orange) !important;
    transform: translateY(-2px);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Brand Colors - Override Bootstrap */
.text-warning {
    color: var(--orange) !important;
}

.text-info {
    color: var(--sky-blue) !important;
}

.text-success {
    color: var(--green) !important;
}

.bg-warning {
    background-color: var(--orange) !important;
}

.bg-info {
    background-color: var(--sky-blue) !important;
}

.bg-success {
    background-color: var(--green) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .project-content {
        margin-top: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Loading animation for images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}
