/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Professional Gothic Palette based on Logo */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-glass: rgba(20, 20, 20, 0.8);
    
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    
    --accent-color: #d4af37; /* Subtle metallic gold accent for professional edge, or stick to monochrome. Let's stick to monochrome/silver */
    --accent-color: #cccccc;
    --border-color: #333333;
    
    --font-heading: 'Yu Gothic Medium', 'Yu Gothic', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Typography - Gothic Elements
   ========================================================================== */
.gothic-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: 2px;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.gothic-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: normal;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.large-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline-light:hover {
    border-color: var(--text-primary);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: padding var(--transition-speed);
}

.navbar.scrolled {
    padding: 10px 0;
}

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

.logo img {
    height: 60px;
    filter: invert(1); /* Invert logo if it's black text on white bg to fit dark theme */
    transition: height var(--transition-speed);
}

.navbar.scrolled .logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a.active {
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 5px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 4px 0;
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../Budgetburg logo.jpg') center/cover;
    opacity: 0.05;
    pointer-events: none;
    filter: invert(1);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero .gothic-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.sub-headline {
    font-size: 1.2rem;
    font-weight: 300;
    color: #e0e0e0;
    margin-bottom: 40px;
    border-left: 2px solid var(--text-primary);
    padding-left: 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.glass-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.dark-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 20px auto 0;
}

.gothic-border {
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
}

.gothic-border::before, .gothic-border::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--text-primary);
}

.gothic-border::before {
    top: -5px;
    left: -5px;
}

.gothic-border::after {
    bottom: -5px;
    right: -5px;
}

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

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.languages-box {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
}

.languages-box h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.about-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
    min-height: 400px;
}

.about-crest {
    max-width: 80%;
    filter: invert(1);
    opacity: 0.8;
}

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

.gothic-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.gothic-card:hover {
    transform: translateY(-5px);
    border-color: #555;
}

.highlight-card {
    background: radial-gradient(circle at top right, #2a2a2a 0%, var(--bg-secondary) 100%);
    border-color: #555;
}

/* ==========================================================================
   Inner Pages (Chainage App)
   ========================================================================== */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
}

.page-header .gothic-title {
    font-size: 3.5rem;
}

.page-header .sub-headline {
    border: none;
    padding: 0;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.features-list .feature-item {
    padding: 30px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.contact-info {
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.email-display {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.email-display a {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    word-break: break-all;
}

.address-display {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.contact-form-wrapper {
    background-color: var(--bg-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all var(--transition-speed);
}

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

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 2px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4ade80;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #f87171;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #050505;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero .gothic-title {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.4s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hero .gothic-title {
        font-size: 2.5rem;
    }
    
    .gothic-title {
        font-size: 2.2rem;
    }
    
    .page-header {
        padding-top: 120px;
    }
    
    .page-header .gothic-title {
        font-size: 2.5rem;
    }
}
