/* ==========================================================================
   Modern CSS for Credo-v (Industrial Aluminum Theme)
   ========================================================================== */

:root {
    /* Colors */
    --primary-color: #ffc107; /* Bright Yellow */
    --primary-hover: #e0a800;
    --dark-bg: #111111;
    --darker-bg: #0a0a0a;
    --grey-bg: #222222;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --text-main: #333333;
    --text-light: #aaaaaa;
    --border-color: #e0e0e0;

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.25);
    --transition: all 0.3s ease;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-title.light {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

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

.btn-dark:hover {
    background-color: var(--grey-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.main-nav .menu {
    display: flex;
    gap: 30px;
}

.main-nav .menu a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 500;
}

.main-nav .menu a:hover,
.main-nav .menu li.current a {
    color: var(--primary-hover);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark-bg);
    font-weight: 600;
}

.phone-link i {
    margin-right: 8px;
    color: var(--primary-color);
}

.phone-link:hover {
    color: var(--primary-hover);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark-bg);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    width: 300px;
    height: 100vh;
    background-color: var(--darker-bg);
    z-index: 1001;
    transition: transform 0.3s ease, visibility 0.3s;
    padding: 60px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-menu-overlay.active {
    transform: translateX(0);
    visibility: visible;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    display: block;
    border-bottom: 1px solid var(--grey-bg);
    padding-bottom: 10px;
}

.mobile-menu a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    color: var(--text-light);
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.whatsapp-btn-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 100px 0 150px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/credo-v baner.jpg') center/cover no-repeat;
    opacity: 0.4;
}

/* Diagonal Cut at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white);
    transform: skewY(-2deg);
    z-index: 1;
}

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

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

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

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

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

.section-dark .section-title {
    color: var(--white);
}

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

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transform: skew(-2deg);
}

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

/* Advantages */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.adv-card {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.adv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary-color);
}

.adv-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: #000;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.8;
}

.project-card:hover img {
    opacity: 0.5;
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transition: var(--transition);
}

.project-card:hover .project-info {
    bottom: 0;
}

.project-info h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    background: var(--white);
}

.faq-question {
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
}

.faq-question i {
    transition: var(--transition);
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px; /* arbitrary max-height for animation */
}

/* Map Section */
.map-container {
    height: 400px;
    width: 100%;
    background-color: var(--grey-bg);
}

/* Media Queries */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .section { padding: 50px 0; }
}

/* Carousels */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 50px;
    box-sizing: border-box;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.carousel-item {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
}

.clients-carousel .carousel-item {
    flex: 0 0 200px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.clients-carousel .carousel-item img {
    max-height: 80px;
    opacity: 0.6;
    transition: var(--transition);
}

.clients-carousel .carousel-item:hover img {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--dark-bg);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--dark-bg);
    color: var(--primary-color);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 35px;
    }
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-card {
    padding: 20px;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.stat-text {
    color: var(--white);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Wow Effects */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-anim img {
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease !important;
}
.gallery-item-anim img:hover {
    transform: translateY(-5px) scale(1.02);
    opacity: 0.95;
    box-shadow: 0 15px 25px rgba(0,0,0,0.2) !important;
    z-index: 10;
}

.project-card, .adv-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover, .adv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Inner Pages Header */
.page-header {
    background-color: var(--dark-bg);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    transform: skewY(-2deg);
    z-index: 1;
}
.page-header h1 {
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

/* Form Styles Override if needed, but requested to remove forms */
