/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: white;
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

header.shrink {
    padding: 12px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}

header.shrink .logo {
    height: 50px;
}

header nav {
    display: flex;
    gap: 35px;
}

header nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

header nav a:hover {
    color: #0078D7;
}

header nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #0078D7;
    transition: width 0.3s ease;
}

header nav a:hover:after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 115px;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero .btn {
    background: #FF6600;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    display: inline-block;
}

.hero .btn:hover {
    background: #e05500;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #FF6600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.stat p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 20px;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.bg-light {
    background: #f8f9fa;
}

/* ===== ABOUT SECTION ===== */
#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== SERVICES CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #0078D7;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: #0078D7;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    line-height: 1.6;
    color: #666;
}

/* ===== PROJECTS GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.gallery img:hover {
    transform: scale(1.05);
}

/* ===== CONTACT SECTION ===== */
#contact .container {
    text-align: center;
    max-width: 800px;
}

#contact p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

#contact h2 {
    margin-bottom: 40px;
}

/* ===== FOOTER ===== */
footer {
    background: #0078D7;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* ===== ANIMATIONS ===== */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Devices (768px and below) */
@media (max-width: 768px) {
    /* Header - Keep logo on left, nav on right */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    header nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    header nav a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    header .logo {
        height: 50px;
    }
    
    /* Hero */
    .hero {
        margin-top: 110px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat {
        padding: 15px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    /* Sections */
    .section {
        padding: 60px 20px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    /* Cards */
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    /* Gallery */
    .gallery {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    #contact p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Header */
    header .container {
        padding: 0 15px;
    }
    
    header nav {
        gap: 8px;
    }
    
    header nav a {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    header .logo {
        height: 40px;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat {
        padding: 12px;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .stat p {
        font-size: 0.9rem;
    }
    
    /* Sections */
    .section h2 {
        font-size: 1.8rem;
    }
    
    /* Contact */
    #contact p {
        font-size: 1rem;
    }
}
/* ===== ENHANCED PROJECTS GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 25px 20px 20px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive Projects */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .project-overlay {
        padding: 20px 15px 15px;
    }
    
    .project-overlay h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}