/* 
   S-tech Centro Automotivo 
   Style Sheet 
*/

:root {
    /* Colors extracted from logo/brief */
    --primary-blue: #0065BD;
    --primary-dark: #004a8c;
    --accent-red: #E30613;
    --accent-green: #28a745;
    /* For agriculture connection details */

    --text-main: #333333;
    --text-light: #666666;
    --text-white: #ffffff;

    --bg-light: #f4f6f9;
    --bg-dark: #1a1a1a;
    --bg-darker: #111111;

    --font-main: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Scrollbar Clean */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-white);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-cta {
    background-color: #004e92;
    /* Rich Tech Blue */
    color: var(--text-white);
    border: 1px solid #4fc3f7;
    /* Soft neon border */
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.5), 0 0 20px rgba(79, 195, 247, 0.3);
    /* Refined glow */
}

.btn-cta:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.7), 0 0 30px rgba(79, 195, 247, 0.5);
}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-blue);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.section-title.text-white {
    color: var(--text-white);
}

.title-bar {
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin-bottom: 30px;
}

.title-bar-center {
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 0 auto 40px auto;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: color 0.3s;
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-blue);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list .btn-primary {
    color: white;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    text-align: center;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    padding: 20px 0;
}

.mobile-menu li {
    margin: 15px 0;
}

.mobile-menu a {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 10px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('../assets/images/hero-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax Effect */
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: #f0f0f0;
}

/* About Section */
.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image {
    flex: 1;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #ccc url('../assets/images/about-img.png') center/cover;
    /* Will generate */
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--accent-red);
}

.highlight-card {
    background: #fbfdff;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.service-card ul {
    padding-left: 20px;
}

.service-card li {
    margin-bottom: 10px;
    list-style-type: disc;
    color: var(--text-light);
}

.card-note {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* Courses */
.courses {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.course-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-white);
    /* White to match theme */
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-center {
    text-align: center;
}

/* Partnerships */
.agro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.agro-text {
    flex: 1.5;
    min-width: 300px;
}

.agro-features {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.feature-item span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Differentiators */
.grid-diffs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.diff-item {
    background: #fff;
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.diff-item i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* Footer Banner */
.footer-banner {
    background: var(--bg-dark);
    padding: 60px 15px;
    text-align: center;
    color: white;
    border-top: 5px solid var(--accent-red);
}

.banner-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.banner-content p {
    font-size: 1.2rem;
    color: #aeaeae;
}

/* Footer Main */
.footer {
    background: var(--bg-darker);
    color: #888;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-col p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
    color: white;
    background: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-blue);
}

.footer-cta-col {
    text-align: left;
    max-width: 300px;
}

.footer-call {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Animations & Effects */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.pulse-anim {
    background-color: #25D366;
    /* WhatsApp Green */
    animation: pulse 2s infinite;
}

.pulse-anim:hover {
    background-color: #128C7E;
    animation: none;
}

/* Location Map */
.map-container {
    width: 100%;
    max-width: 1000px;
    /* Limit max width for better large screen appearance */
    margin: 0 auto;
    /* Center the container */
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #ddd;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.address-box p {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav-list {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .hero {
        margin-top: 60px;
        height: auto;
        padding: 100px 0;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        height: 300px;
    }

    .agro-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-cta-col {
        text-align: center;
        margin: 0 auto;
    }

    .footer-col p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-grid,
    .courses-grid,
    .agro-features,
    .grid-diffs {
        grid-template-columns: 1fr;
    }

    .footer-col p {
        flex-direction: column;
        gap: 5px;
    }
}

/* ------------------------
   Scroll Reveal Animations 
   ------------------------ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-left {
    transform: translateX(-50px);
}

.reveal.fade-right {
    transform: translateX(50px);
}

.reveal.fade-left.active,
.reveal.fade-right.active {
    transform: translateX(0);
}

.reveal.zoom-in {
    transform: scale(0.9);
}

.reveal.zoom-in.active {
    transform: scale(1);
}

/* Stagger delays for grids */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Enhanced Card Hover */
.service-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 101, 189, 0.03);
    transition: height 0.4s ease;
    z-index: -1;
}

.service-card:hover::before {
    height: 100%;
}