
:root {
    --dark-bg: #1a1a1a;
    --metal-gray: #333;
    --light-gray: #ccc;
    --accent-rust: #c55a11;
    --font-title: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--light-gray);
    background-image: url('images/grunge-wall.png');
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    color: white;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-rust);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
    border-bottom: 1px solid var(--metal-gray);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-10deg);
}

.navbar nav ul {
    display: flex;
    list-style: none;
}

.navbar nav li:not(:last-child) {
    margin-right: 25px;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: 1.8rem;
    font-family: var(--font-body);
    text-transform: none;
    margin-bottom: 30px;
}

.hero h2::after {
    display: none;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-rust);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--accent-rust);
    margin: 0 10px;
}

.cta-button:hover {
    background-color: #e06a1a;
    transform: translateY(-3px);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
}

.cta-button.secondary:hover {
    background-color: var(--accent-rust);
}

/* General Section Styling */
main section {
    padding: 80px 0;
}

/* Services Section */
.services {
    background-color: rgba(0,0,0,0.2);
}

.services-grid {
    display: grid;
    gap: 30px;
}

.service-card {
    background: var(--metal-gray);
    background-image: url('images/brushed-metal.png');
    padding: 40px;
    text-align: center;
    border: 2px solid #444;
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-rust);
}

.service-icon {
    display: block;
    margin: 0 auto 20px;
    height: 80px;
    width: 80px;
    filter: invert(43%) sepia(88%) saturate(1501%) hue-rotate(358deg) brightness(89%) contrast(91%);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: 3px solid var(--metal-gray);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    border-color: var(--accent-rust);
}

/* Footer */
footer {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--metal-gray);
}

.kapi-branding a {
    font-weight: bold;
}

/* About Us Section */
.about-us-content, .team-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-direction: column;
}

.about-us-content img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--metal-gray);
}

.team-content img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    border: 5px solid var(--metal-gray);
}

.about-us .text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Location Section */
.location-content {
    display: flex;
    gap: 40px;
    flex-direction: column;
}

.contact-details {
    flex-basis: 40%;
}

.contact-details h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details .cta-button {
    margin-top: 20px;
}

.map {
    flex-basis: 60%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Partners Section */
.partners {
    background-color: rgba(0,0,0,0.2);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.partner-item {
    background-color: var(--dark-bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.partner-item img, .partner-item video {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-item a:hover img,
.partner-item a:hover video,
.partner-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed var(--metal-gray);
    border-radius: 10px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .navbar nav {
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-us-content {
        flex-direction: row;
    }
    .team-content {
        flex-direction: row-reverse;
    }
    .about-us-content .text, .team-content .text {
        flex: 1;
    }
    .location-content {
        flex-direction: row;
    }
    .map {
        padding-bottom: 40%;
    }
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.whatsapp-float:hover {
    width: 180px;
    transform: scale(1.05);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: translateX(-55px);
}

.whatsapp-float span {
    position: absolute;
    transform: translateX(40px);
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}

.whatsapp-float:hover span {
    opacity: 1;
}
