/* 
    ABY Contracting - Premium Design System
    Focus: Professionalism, Trust, and Modernity
*/

:root {
    --primary: #f26522; /* Vibrant Orange from logo */
    --primary-dark: #d45218;
    --secondary: #1a1a1a; /* Deep Charcoal */
    --accent: #f26522;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --bg: #0f0f0f;
    --surface: #1e1e1e;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

.accent-text {
    color: var(--primary);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 12rem 0; /* Further increased for ultra-premium spacing */
    position: relative;
}

#about, #contact {
    background-color: var(--bg);
}

#services, #projects {
    background-color: #141414; /* Subtle layer variation */
}

/* Glassmorphism Components */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Navigation */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1300px;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    transition: var(--transition);
}

header nav:hover {
    background: rgba(15, 15, 15, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    max-width: 60%;
    background: #ffffff; /* Light background for visibility */
    padding: 0.4rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo img {
    height: 35px; /* Slightly smaller to fit the new box */
    width: auto;
    max-width: 100%;
    filter: none !important; /* Ensure no grayscale/invert */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.8;
}

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

.cta-button {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none; /* Ensure no weird transforms */
    text-transform: none; /* Keep text case as defined */
}

.cta-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(242, 101, 34, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(15, 15, 15, 0.4) 50%, rgba(15, 15, 15, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: 2rem 1rem;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    margin-bottom: 2rem;
    line-height: 0.95;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-inline: auto;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    padding: 3rem;
    text-align: left;
}

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

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Projects/Gallery */
.projects-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scrollbar-width: none;
}

.projects-slider::-webkit-scrollbar {
    display: none;
}

.project-item {
    min-width: 400px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

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

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* Clients Scroller */
.clients-scroller {
    width: 100%;
    overflow: hidden;
    padding: 6rem 0;
    background: #141414;
    margin: 6rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.scroller-inner {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 60s linear infinite;
    padding: 0 1.5rem;
}

.client-card {
    background: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 101, 34, 0.2);
}

.client-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: none; /* Show original colors */
    opacity: 1;
}

@keyframes scroll {
    to { transform: translateX(calc(-50% - 2.5rem)); }
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem; /* Ensure space before footer */
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--bg); /* Match background for seamless transition */
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.8rem 1.5rem;
    z-index: 2000;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mobile-nav-item {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    opacity: 0.6;
    transition: var(--transition);
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    opacity: 1;
    color: var(--primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 4.5rem; }
}

@media (max-width: 768px) {
    section { padding: 6rem 0; }
    
    header { width: 98%; top: 0.5rem; }
    nav { padding: 0.6rem 1.2rem; border-radius: 20px; }
    .nav-links { display: none; }
    .logo { padding: 0.3rem 0.8rem; border-radius: 10px; }
    .logo img { height: 28px; }
    nav .cta-button { display: none; } /* Hide in top nav to save space */

    .mobile-bottom-nav { display: flex; } /* Show bottom nav */

    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; gap: 1rem; }
    .cta-button, .btn-secondary { width: 100%; }

    .contact-container { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .project-item { min-width: 280px; height: 350px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-tagline { font-size: 0.75rem; letter-spacing: 0.15em; }
    
    .section-title { font-size: 2.2rem; }
    .glass-card { border-radius: 16px; }
    .service-card { padding: 2rem; }
}
