/* ===========================
   Global Styles
   =========================== */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffc107;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

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

.display-3, .display-4, .display-5, .display-6 {
    font-family: 'Montserrat', sans-serif;
}

/* ===========================
   Smooth Scrolling
   =========================== */
html {
    scroll-behavior: smooth;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

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

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('./construction-bg.jpg?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(52, 58, 64, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s;
    animation-fill-mode: backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

/* ===========================
   Service Cards
   =========================== */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.service-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9) 0%, rgba(255, 152, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    font-size: 4rem;
    color: white;
}

.service-body {
    padding: 2rem;
}

.service-body h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===========================
   Service Detail Sections
   =========================== */
.service-detail-image img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.service-detail-content .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.feature-box {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-box:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.feature-box i {
    font-size: 1.5rem;
}

/* ===========================
   Scrap Section
   =========================== */
.scrap-section {
    position: relative;
    background-image: url('./construction-bg.jpg?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 600px;
}

.scrap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.scrap-content {
    animation: fadeIn 0.8s ease-out;
}

.contact-box {
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.contact-box:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===========================
   Electronics Section
   =========================== */
.electronics-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.electronics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.electronics-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.electronics-image-container img {
    border-radius: 15px;
    object-fit: cover;
}

/* ===========================
   SEO Section
   =========================== */
.seo-feature {
    padding: 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
}

.seo-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.seo-image-container img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===========================
   Statistics Section
   =========================== */
.stat-box {
    transition: var(--transition);
}

.stat-box:hover {
    transform: scale(1.05);
}

.stat-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form-container {
    border-radius: 15px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-label {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ===========================
   Footer
   =========================== */
footer {
    position: relative;
    overflow: hidden;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* ===========================
   Back to Top Button
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

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

/* ===========================
   Buttons
   =========================== */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
}

.btn-warning {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-warning:hover {
    background: #e0a800;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.btn-dark {
    background: var(--primary-color);
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline-dark {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* ===========================
   Utilities
   =========================== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.object-fit-cover {
    object-fit: cover;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 991px) {
    .hero-section {
        height: auto;
        min-height: 70vh;
        padding: 100px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .electronics-icon {
        font-size: 2.5rem;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .navbar,
    .back-to-top,
    .btn {
        display: none;
    }
}

/* ===========================
   Loading Animation
   =========================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* ===========================
   Section Spacing
   =========================== */
section {
    padding: 80px 0;
}

@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }
}

/* ===========================
   Accessibility
   =========================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===========================
   Custom Scrollbar
   =========================== */
::-webkit-scrollbar {
    width: 12px;
}

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

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

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