/* --- GLOBAL RESET & SAFETY --- */
:root {
    --bg-color: #080808;
    --bg-secondary: #121212;
    --card-bg: #1a1a1a;
    --gold-main: #FFD700;
    --gold-dim: #b89b00;
    --text-white: #ffffff;
    --text-gray: #bbbbbb;
    --error-red: #ff4444;
    --font-display: 'Teko', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* This stops the black bar */
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea { user-select: text; }

/* UTILITIES */
.text-gold { color: var(--gold-main); }
.container { 
    width: 100%; 
    padding: 0 20px; 
    margin: 0 auto; 
    max-width: 1200px;
}

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(8, 8, 8, 0.95); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.logo {
    font-family: var(--font-display); font-size: 2rem; font-weight: 600;
    letter-spacing: 1px; color: var(--text-white);
    border-left: 3px solid var(--gold-main); padding-left: 10px;
    text-decoration: none; cursor: pointer; transition: color 0.3s;
}
.logo:hover { color: var(--gold-main); }

.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a {
    text-decoration: none; color: var(--text-gray); font-family: var(--font-body);
    font-weight: 600; font-size: 1.1rem; text-transform: uppercase;
    letter-spacing: 1px; transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-main); }

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center; 
    position: relative; 
    padding-top: 80px;
    width: 100%;
    overflow: hidden; /* Ensures glow doesn't push width */
}

/* Constrained Glow */
.hero-glow {
    position: absolute; 
    width: 80vw; 
    height: 80vw;
    max-width: 600px; 
    max-height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, rgba(0,0,0,0) 70%);
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: -1; 
    pointer-events: none;
}

/* --- LOGO BOX FIX --- */
.hero-logo-container {
    margin-bottom: 30px; 
    display: inline-block; 
    border: 4px solid var(--text-white);
    padding: 15px 20px; 
    position: relative;
    /* KEY FIX: Limits width so corners (-10px) don't overflow screen */
    width: auto;
    max-width: 80%; 
}

/* Corners positioned absolutely */
.hero-logo-container::after {
    content: ''; position: absolute; bottom: -10px; right: -10px; width: 30px; height: 30px;
    border-bottom: 4px solid var(--gold-main); border-right: 4px solid var(--gold-main);
}
.hero-logo-container::before {
    content: ''; position: absolute; top: -10px; left: -10px; width: 30px; height: 30px;
    border-top: 4px solid var(--gold-main); border-left: 4px solid var(--gold-main);
}

.logo-main-text {
    display: block; 
    font-family: var(--font-display); 
    /* Fluid typography: 12% of viewport width ensures it fits any mobile */
    font-size: 13vw; 
    line-height: 0.9; 
    color: var(--text-white); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 700;
}

.logo-sub-text {
    display: block; font-family: var(--font-body); font-size: 1.2rem; color: var(--gold-main);
    text-transform: uppercase; letter-spacing: 0.4em; margin-top: 5px; font-weight: 700;
    text-align: center;
}

/* Hero Text */
.hero-title {
    font-family: var(--font-display); 
    font-size: clamp(2rem, 5vw, 4rem); 
    line-height: 1;
    margin-bottom: 20px; 
    text-transform: uppercase; 
    font-weight: 400;
    padding: 0 10px;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--text-gray); max-width: 600px;
    margin: 0 auto 40px auto; font-weight: 400; padding: 0 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block; padding: 16px 45px; background-color: var(--gold-main);
    color: #000; text-decoration: none; font-family: var(--font-body);
    font-weight: 700; font-size: 1.1rem; text-transform: uppercase;
    letter-spacing: 2px; border-radius: 2px; transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary:hover {
    background-color: #fff; transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* SERVICES */
.services-section { background-color: var(--bg-secondary); padding: 80px 0; }
.section-title {
    font-family: var(--font-display); font-size: 3rem; margin-bottom: 60px;
    text-align: center; text-transform: uppercase;
}
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}
.card {
    background-color: var(--card-bg); padding: 40px 30px;
    border-top: 3px solid var(--gold-dim); border-radius: 4px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.card:hover { transform: translateY(-10px); background-color: #222; }
.card h3 {
    font-family: var(--font-display); font-size: 2rem; margin-bottom: 15px;
    color: var(--text-white); text-transform: uppercase;
}
.card p { color: var(--text-gray); font-size: 1.1rem; line-height: 1.6; }

/* PORTFOLIO */
.portfolio-section { padding: 80px 0; background-color: var(--bg-color); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.portfolio-item {
    position: relative; height: 300px; background-color: #222; overflow: hidden;
    border: 1px solid #333; cursor: pointer;
}
.portfolio-img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 0.7;
}
.portfolio-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-img { transform: scale(1.1); opacity: 1; }
.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }
.project-cat {
    color: var(--gold-main); font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 2px; font-weight: 700;
}
.project-title {
    font-family: var(--font-display); font-size: 2rem; color: white; line-height: 1;
}

/* FOOTER */
.site-footer {
    background-color: #050505; border-top: 1px solid #222; padding: 50px 0 20px;
    color: #888; font-size: 0.9rem;
}
.footer-content {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 30px;
}
.footer-brand { flex: 1; min-width: 250px; }
.footer-brand h2 {
    font-family: var(--font-display); font-size: 2rem; color: white; margin-bottom: 5px;
}
.footer-links-group { display: flex; gap: 50px; }
.footer-links h3 {
    color: white; margin-bottom: 10px; font-family: 'Teko'; font-size: 1.3rem; letter-spacing: 1px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 5px; }
.footer-links a { text-decoration: none; color: #888; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-main); }
.footer-bottom {
    text-align: center; border-top: 1px solid #1a1a1a; padding-top: 20px; font-size: 0.8rem;
}

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 2000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
}
.form-container {
    width: 95%; max-width: 650px; background: var(--card-bg);
    border: 1px solid #333; padding: 30px 20px; position: relative;
    overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.8); margin: 10px;
}
.close-modal-btn {
    position: absolute; top: 15px; right: 15px; background: transparent;
    border: none; color: #666; font-size: 1.5rem; cursor: pointer; z-index: 10;
    transition: color 0.3s;
}
.close-modal-btn:hover { color: var(--error-red); }
.form-heading { margin-bottom: 20px; font-family: 'Teko'; text-transform: uppercase; }

/* WIZARD */
.progress-bar { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.progress-bar::before {
    content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 2px;
    background: #333; z-index: 0;
}
.progress-step { position: relative; z-index: 1; text-align: center; width: 33.33%; }
.step-circle {
    width: 30px; height: 30px; background: #333; color: #888; border-radius: 50%;
    margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
    font-weight: bold; transition: all 0.3s ease; border: 2px solid var(--bg-secondary);
}
.step-label {
    font-size: 0.8rem; color: #888; text-transform: uppercase; font-family: var(--font-display); letter-spacing: 1px;
}
.progress-step.active .step-circle { background: var(--gold-main); color: #000; box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.progress-step.active .step-label { color: var(--gold-main); }
.progress-step.completed .step-circle { background: var(--text-white); color: #000; }

.form-step { display: none; }
.form-step.active { display: block; }
.input-group { position: relative; margin-bottom: 25px; }
.form-input {
    width: 100%; padding: 15px 0; background: transparent; border: none;
    border-bottom: 2px solid #333; color: white; font-size: 1.1rem;
    font-family: var(--font-body); outline: none; transition: border-color 0.3s;
}
.form-input:focus { border-color: var(--gold-main); }
.form-input.error { border-color: var(--error-red); }
.form-label {
    position: absolute; top: 15px; left: 0; color: #666; font-size: 1.1rem;
    pointer-events: none; transition: 0.3s ease all; text-transform: uppercase;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -10px; font-size: 0.8rem; color: var(--gold-main);
}
.step-actions { display: flex; justify-content: space-between; margin-top: 30px; }
.step-actions.end { justify-content: flex-end; }
.btn-prev {
    background: transparent; color: #666; border: 1px solid #333; padding: 15px 30px;
    text-transform: uppercase; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-prev:hover { color: white; border-color: white; }

.success-message {
    text-align: center; display: none; flex-direction: column; align-items: center; justify-content: center; height: 300px;
}
.checkmark {
    width: 60px; height: 60px; border-radius: 50%; background: var(--gold-main);
    color: black; font-size: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.success-title { font-family: 'Teko'; font-size: 2.5rem; margin-bottom: 10px; }
.success-message p { color: #888; }
.close-msg { margin-top: 20px; }

/* BACK TO TOP */
#scrollTopBtn {
    position: fixed; bottom: 30px; right: 30px; z-index: 99;
    background-color: var(--gold-main); color: black; border: none;
    width: 50px; height: 50px; font-size: 1.5rem; font-weight: bold;
    cursor: pointer; border-radius: 4px; opacity: 0; visibility: hidden;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
#scrollTopBtn:hover { background-color: white; transform: translateY(-5px); }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    /* Hide desktop nav links */
    .nav-links { display: none; }
    
    /* Ensure navbar fits */
    .navbar { padding: 20px; width: 100%; } 
    
    /* Fix Hero Section spacing */
    .hero-section { padding-top: 60px; }
    
    /* FOOTER MOBILE */
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .footer-brand { margin-bottom: 10px; }
    .footer-links-group { justify-content: center; gap: 40px; text-align: left; }
    
    /* DESKTOP RESTORATION */
    /* If screen gets larger, scale up the text */
}

@media (min-width: 769px) {
    .logo-main-text { font-size: 5rem; }
    .hero-logo-container { padding: 20px 40px; max-width: 100%; }
    .hero-logo-container::after, .hero-logo-container::before { width: 40px; height: 40px; }
}
