/* ===== CUSTOM VARIABLES ===== */
:root {
    --accent-color: #e0b700;
    --dark-bg: #412a1b;
    --light-card-bg: #fffcec;
    --main-bg: #fff;
    --text-color: #666565;
    --heading-color: #412a1b;
    --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

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

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

/* ===== HEADER STYLES ===== */
.header-main {
    background-color: var(--dark-bg);
    box-shadow: var(--shadow-light);
    z-index: 1050;
}

.navbar-brand {
    color: var(--accent-color) !important;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 400;
    margin: 0 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== SECTION STYLES ===== */
.section-light {
    background-color: var(--main-bg);
}

.section-dark {
    background-color: var(--dark-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title.text-white {
    color: #fff !important;
}

/* Accent Lines */
.accent-line {
    display: inline-block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 1rem;
    vertical-align: middle;
}

.section-title .accent-line:first-child {
    margin-left: 0;
}

.section-title .accent-line:last-child {
    margin-right: 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 42, 27, 0.7), rgba(224, 183, 0, 0.3));
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== CARD STYLES ===== */
.development-card, .article-card, .testimonial-card, .pricing-card {
    background-color: var(--light-card-bg);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: none;
}

.development-card:hover, .article-card:hover, .testimonial-card:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.development-card:hover *, .article-card:hover *, .testimonial-card:hover * {
    color: var(--dark-bg) !important;
}

.development-card:hover .material-icons-outlined,
.article-card:hover .material-icons-outlined,
.testimonial-card:hover .material-icons-outlined {
    color: var(--dark-bg) !important;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.card-title {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.card-title .material-icons-outlined {
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* ===== ARTICLE CARDS ===== */
.article-title {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.article-title .material-icons-outlined {
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: 1.4rem;
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===== TOOLS SECTION ===== */
.tool-item {
    background-color: var(--light-card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.tool-item:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.tool-item:hover * {
    color: var(--dark-bg) !important;
}

.tool-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.tool-title .material-icons-outlined {
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    position: relative;
    color: #fff;
    overflow: hidden;
}

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

.pricing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 42, 27, 0.8), rgba(224, 183, 0, 0.2));
    z-index: -1;
}

.pricing-card {
    background-color: var(--light-card-bg);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--accent-color);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(15deg);
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.plan-features .material-icons-outlined {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-author h6 {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* ===== CONTACT FORM ===== */
.contact-form .form-control {
    background-color: var(--light-card-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Inconsolata', monospace;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(224, 183, 0, 0.25);
}

.contact-form .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-form .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--light-card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-item:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-item:hover * {
    color: var(--dark-bg) !important;
}

.contact-item .material-icons-outlined {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--heading-color);
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn-accent {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: var(--dark-bg);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: 'Inconsolata', monospace;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    background-color: var(--dark-bg);
    border-color: var(--dark-bg);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background-color: transparent;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-family: 'Inconsolata', monospace;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--dark-bg);
}

.btn-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 400;
}

.btn-link:hover {
    color: var(--accent-color);
}

/* ===== FOOTER ===== */
.footer-main {
    background-color: var(--dark-bg);
    color: #fff;
    margin-top: 4rem;
}

.footer-brand h5 {
    color: var(--accent-color);
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-link {
    color: #fff;
    font-weight: 400;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--accent-color);
}

.border-accent {
    border-color: var(--accent-color) !important;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-bg);
    color: #fff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-text .material-icons-outlined {
    color: var(--accent-color);
    font-size: 2rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .accent-line {
        width: 50px;
        margin: 0 0.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-top: 1rem;
    }
    
    .development-card, .article-card, .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .accent-line {
        width: 30px;
        margin: 0 0.3rem;
    }
    
    .development-card, .article-card, .testimonial-card, .pricing-card {
        padding: 1.5rem;
    }
    
    .contact-form .btn-accent {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== UTILITIES ===== */
.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.border-accent {
    border-color: var(--accent-color) !important;
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
