@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #fe6700;
    --primary-dark: #e55c00;
    --secondary: #2c3e50;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container-width: 1100px;
}

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

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Increased height */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px; /* Reduced gap slightly to fit everything */
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    font-size: 13px; /* Slightly smaller font to fit on one line */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    position: relative;
    white-space: nowrap; /* Prevent wrapping */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero.png') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 103, 0, 0.3);
}

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

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

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-item p {
    font-weight: 600;
    color: var(--secondary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.specialty-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card ul {
    margin-top: 15px;
}

.service-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-card ul li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

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

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

/* Contact Footer */
.contact-banner {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
}

footer {
    background: #f8f9fa;
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .specialty-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .specialty-grid .service-card {
        padding: 20px 10px !important;
    }

    .specialty-grid h4 {
        font-size: 0.9rem;
        margin-top: 5px !important;
    }

    .specialty-grid i {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }

    .works-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* In a real app we'd add a hamburger menu */
    }
    nav {
        justify-content: center;
    }
    .logo {
        margin: 0 auto;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

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

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

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

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

/* Ticker Styles */
.ticker-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
}

.client-name {
    padding: 0 40px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    opacity: 0.6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.client-name:hover {
    opacity: 1;
    color: var(--primary);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Gallery Styles (Ordered) */
.scattered-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    background: var(--white);
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Image Modal (Lightbox) */
#image-modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Slightly more transparent */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

#image-modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

#image-modal .close-image-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    transition: var(--transition);
}

#image-modal .close-image-modal:hover {
    color: var(--primary);
    transform: scale(1.2);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .scattered-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}
