/* Color Variables */
:root {
    --primary-color: #007C7C; /* Teal / Cyan */
    --primary-dark: #005a5a;
    --secondary-color: #f4f6f8;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.w-100 {
    width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 124, 124, 0.2);
    color: var(--white);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 600;
}

.nav-links a:not(.btn-primary) {
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-color);
}

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

.mobile-menu-btn:hover {
    color: var(--primary-dark);
}

/* Page Headers */
.page-header {
    padding: 120px 0 40px;
    background: var(--secondary-color);
    text-align: center;
    border-bottom: 1px solid #edf2f7;
}

.page-header h1 {
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 2.8rem;
}

/* Fix for services page where we don't want massive top padding */
body:not(.home) .services-section {
    padding-top: 60px;
    padding-bottom: 100px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/hero_bg.png') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

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

.hero-content p {
    color: #e2e8f0;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Geometric Dividers */
.diagonal-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vw;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.diagonal-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8vw;
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 1;
}

.diagonal-bottom-reverse {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vw;
    background: var(--white);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 20px;
}

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

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 30px;
}

.stat-box {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border-left: 5px solid var(--primary-color);
    flex: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-text {
    font-weight: 600;
    color: var(--text-dark);
}

/* Services Section */
.services-section {
    background: var(--secondary-color);
    position: relative;
    padding-top: calc(100px + 8vw);
    padding-bottom: calc(100px + 8vw);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 124, 124, 0.15);
}

.card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 124, 124, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.2rem;
}

.overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.overlay span {
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

.service-card:hover .overlay {
    opacity: 1;
}

.card-content {
    padding: 30px 20px;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Before / After Section */
.before-after-section {
    background: var(--white);
    padding-bottom: 100px;
}

.ba-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ba-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ba-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 500px;
}

.ba-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ba-item:hover img {
    transform: scale(1.05);
}

.ba-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    z-index: 2;
}

@media (max-width: 768px) {
    .ba-row {
        grid-template-columns: 1fr;
    }
    .ba-item {
        height: 300px;
    }
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--secondary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-form-container {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 15px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 124, 124, 0.1);
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
    text-align: center;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    color: #a0aec0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: #000;
}

.modal-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 40px 20px;
        gap: 25px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a.btn-primary {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 100px;
        text-align: center;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary-color);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-content-wrapper { max-width: 95%; }
}


/* Climber Image Silhouette Animation */
.climber-image-container {
    position: absolute;
    top: 0;
    right: 8%;
    width: 2px;
    height: 400px;
    z-index: 10;
    pointer-events: none;
    transform: translateY(-500px);
    animation: dropDown 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.rope-line {
    width: 2px;
    height: 100%;
    background: #141e23;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.climber-img {
    position: absolute;
    bottom: -110px;
    left: 50%;
    transform: translateX(-48%);
    width: 140px;
    height: auto;
}

@keyframes dropDown {
    0% { transform: translateY(-500px); }
    100% { transform: translateY(0); }
}
