/* === CSS Variables === */
:root {
    --primary: #8b0000;
    --primary-light: #b22222;
    --primary-dark: #660000;
    --secondary: #1a1a1a;
    --dark-bg: #111111;
    --light-bg: #fdfbf7;
    --white: #ffffff;
    --accent: #d4af37;

    --text-dark: #1f1f1f;
    --text-muted: #666666;
    --text-light: #f5f5f5;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --max-width: 1200px;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* === Typography Helpers === */
.subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 1.5rem;
}

.divider-left {
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 0 1.5rem 0;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 1px;
    transition: 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* === Card Hover === */
.card-hover {
    transition: 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* === Fade In Animation === */
.reveal {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Header / Navbar === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: 0.3s ease;
    background-color: rgba(0, 0, 0, 0.7);
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 0.8rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

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

.logo {
    color: var(--white);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
}

.logo .tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    tap-highlight-color: transparent;
    -webkit-tap-highlight-color: transparent;
}

/* === Footer === */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0 0;
    border-top: 4px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.brand-section h2 {
    color: var(--white);
    margin-bottom: 0;
}

.brand-section .tagline {
    display: block;
    color: var(--primary-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.brand-desc {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary);
    transition: 0.2s ease;
}

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

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--white);
}

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

.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
}

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

.separator {
    margin: 0 0.5rem;
}

/* === Keyframes === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive === */
@media (max-width: 992px) {

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .about-image-wrapper {
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 2rem;
    }

    .experience-badge {
        bottom: -15px;
        right: 15px;
        width: 110px;
        height: 110px;
        padding: 1rem;
    }

    .experience-badge .years {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-button {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-button .btn {
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        align-items: center;
        transition: 0.4s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--white) !important;
        padding: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
        position: relative;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

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

    .container {
        padding: 0 16px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .nav-links {
        width: 100%;
    }
}

@media (max-width: 640px) {
    :root {
        --max-width: 100%;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content .welcome-text {
        font-size: 1.3rem;
    }

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

    .subtitle {
        font-size: 0.75rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem 1rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.4rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-section h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }

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

    .hero-button {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    h1, h2, h3, h4 {
        word-break: break-word;
    }
}

/* === Mobile Nav Overlay === */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}