/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff8800;
    --primary-light: #ffa030;
    --secondary: #0af;
    --dark: #0a0a0a;
    --dark-alt: #111;
    --gray: #1a1a1a;
    --light-gray: #333;
    --text: #fff;
    --text-muted: #aaa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #ff8800 0%, #e52e71 100%);
    --gradient-3: linear-gradient(135deg, #0af 0%, #667eea 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ===== WRAPPER ===== */
.wrapper {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

/* ===== HEADER WITH HERO BACKGROUND ===== */
.main-header {
    position: relative;
    min-height: 50vw;
    max-height: 960px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
}

.header-hero-bg {
    position: absolute;
    inset: 0;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    z-index: 0;
}

.header-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(10,10,10,0.8));
}

.header-content {
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.8s ease;
    max-width: 900px;
}

.logo {
    max-width: 700px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(255, 136, 0, 0.4));
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.logo:hover {
    transform: scale(1.02);
}

.slogan {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInDown 1s ease;
}

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

/* ===== SECTION STYLES ===== */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 15px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 20px;
    background: var(--dark-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, var(--gray) 0%, var(--light-gray) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 136, 0, 0.3);
    border-color: var(--primary);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 100px 20px;
    background: var(--dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-item {
    position: relative;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--gradient-2);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(255, 136, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-item:hover .view-btn {
    transform: translateY(0);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 20px;
    background: var(--dark-alt);
}

/* Contact Info Box - Centered */
.contact-info-box-centered {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item .icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.info-item strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.info-item p,
.info-item a {
    color: var(--text-muted);
    font-size: 1.1rem;
    display: block;
    margin: 5px 0;
}

.info-item a:hover {
    color: var(--primary-light);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 70px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px 30px;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10000;
    background: rgba(255, 136, 0, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    line-height: 1;
}

.nav:hover {
    background: rgba(255, 136, 0, 0.9);
    transform: translateY(-50%) scale(1.15);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .wrapper {
        width: 95%;
    }

    .main-header {
        min-height: 60vh;
        padding: 40px 15px;
    }

    .logo {
        max-width: 85%;
    }

    .slogan {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .services-section,
    .projects-section,
    .contact {
        padding: 60px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .project-item {
        height: 220px;
    }

    .contact-info-box-centered {
        padding: 30px;
    }

    .info-item {
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .info-item .icon {
        font-size: 2rem;
        min-width: 50px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .nav {
        font-size: 40px;
        padding: 15px 20px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .close {
        top: 15px;
        right: 15px;
        font-size: 35px;
    }

    .slogan {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .main-header {
        min-height: 50vh;
    }

    .logo {
        max-width: 90%;
    }

    .slogan {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
