/*===================================
  VARIABLES & ROOT SETTINGS
====================================*/
:root {
    --primary-color: #940000;
    --secondary-color: #E40004;
    --text-dark: #222222;
    --text-light: #666666;
    --white: #ffffff;
    --black: #000000;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --navbar-height: 70px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: 0.3s ease;
    --border-radius: 5px;
}

/*===================================
  BASE STYLES & RESET
====================================*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*===================================
  UTILITY CLASSES
====================================*/
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/*===================================
  ACCESSIBILITY
====================================*/
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/*===================================
  NAVBAR STYLES
====================================*/
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--secondary-color);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    height: var(--navbar-height);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.logo-img {
    height: clamp(35px, 8vw, 50px);
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo .title {
    font-weight: 700;
    color: var(--white);
    font-size: clamp(0.75rem, 2vw, 1rem);
    line-height: 1.2;
}

.logo .subtitle {
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
    color: var(--white);
    opacity: 0.9;
}

/*===================================
  HERO SECTION STYLES
====================================*/
.hero {
    margin-top: var(--navbar-height);
    position: relative;
    height: calc(100vh - var(--navbar-height));
    overflow: hidden;
}

/* Slider Styles */
.slider {
    position: absolute;
    inset: 0;
    background: var(--black);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: clamp(2.5rem, 5vw, 3.5rem);
    height: clamp(2.5rem, 5vw, 3.5rem);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background-color var(--transition);
}

.prev-btn {
    left: clamp(1rem, 3vw, 2rem);
}

.next-btn {
    right: clamp(1rem, 3vw, 2rem);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn:focus-visible {
    outline: 2px solid var(--white);
    background: rgba(255, 255, 255, 0.5);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: clamp(1rem, 4vh, 2rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    z-index: 100;
}

.dot {
    width: clamp(8px, 1.5vw, 12px);
    height: clamp(8px, 1.5vw, 12px);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.8);
}

/* Hero Content */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.2;
}

/*===================================
  SERVICES SECTION STYLES
====================================*/
.services-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.services-heading {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    text-decoration: none;
    color: inherit;
}

.service-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-content:hover {
    transform: translateY(-5px);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 1.5rem;
    color: var(--white);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-link i {
    transition: transform var(--transition);
}

.service-content:hover .service-link i {
    transform: translateX(4px);
}

/*===================================
  FOOTER STYLES
====================================*/
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* Header Styles */
.footer-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-title {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.3;
}

.footer-title h2 {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.footer-title h3 {
    font-weight: 400;
    opacity: 0.9;
    font-size: 0.9em;
}

/* Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Section Headings */
.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
    opacity: 0.3;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.footer-section:hover h3::after {
    width: 60px;
    opacity: 0.5;
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-item:hover .contact-icon {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1) rotate(5deg);
}

.contact-item span {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Social Media */
.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.social-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.social-link span {
    font-size: 0.85rem;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/*===================================
  RESPONSIVE STYLES
====================================*/
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-list {
        align-items: stretch;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .contact-item:hover {
        transform: translateY(-3px);
    }

    .social-media {
        flex-direction: column;
    }

    .social-link {
        justify-content: center;
    }

    .footer-logo {
        height: 50px;
    }
}