@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #9B59B6;
    --secondary-color: #ebe703cc;
    --text-color: #2C3E50;
    --light-text: #666;
    --white: #FFFFFF;
    --surface-color: #FFFFFF;
    --input-bg: #fbe7ff;
    --input-border: #ffc4fd;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --button-hover: #E67E22;
    --nav-link-color: #F1C40F;
    --navbar-border: rgba(201, 166, 70, 0.2);
    --background-color: #fdebfc;
}

body.dark-mode {
    --background-color: #121826;
    --text-color: #fdfdff;
    --surface-color: #1f2a3b;
    --input-bg: #162036;
    --input-border: rgba(255, 255, 255, 0.15);
    --shadow: rgba(0, 0, 0, 0.5);
    --nav-link-color: #F1C40F;
    --navbar-border: rgba(241, 196, 15, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--navbar-border);
}

#navbar.scrolled {
    background-color: var(--background-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img,
.footer-logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

#navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active,
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
    color: var(--primary-color);
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 14px;
    margin-left: 16px;
    font-size: 1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(241, 196, 15, 0.12);
}

#navbar.scrolled .theme-toggle {
    border-color: var(--text-color);
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    background-image: linear-gradient(rgba(99, 3, 102, 0.26)), url("img/Centry\ Hero\ Image.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: var(--button-hover);
    color: var(--white);
}

/* Page Header */
#page-header {
    height: 40vh;
    background-image: url('img/centyworkImg02.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px; /* To account for fixed navbar */
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.header-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 0 20px;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    will-change: transform;
    contain: layout;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
    backface-visibility: hidden;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.5rem;
}

.service-card p {
    padding: 0 20px 20px;
    color: var(--light-text);
}

.learn-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 0 20px 20px;
    transition: var(--transition);
}

.learn-more:hover {
    color: var(--text-color);
}

/* Gallery Preview */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    contain: layout;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--primary-color);
}

/* Services Detailed */
.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) .service-content {
    direction: ltr;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.service-image img:hover {
    transform: scale(1.02);
}

.service-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--light-text);
    text-align: center;
}


.service-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-content ul {
    list-style: none;
    padding: 0;
}

.service-content li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.service-content li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Video Showcase */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background-color: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    will-change: transform;
    contain: layout;
}

.video-card:hover {
    transform: translateY(-5px);
    backface-visibility: hidden;
}

.video-card video {
    width: 100%;
    display: block;
    height: 220px;
    object-fit: cover;
    background-color: #000;
}

.video-card h3 {
    padding: 20px;
    font-size: 1.3rem;
}

.section-copy {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 20px;
    color: var(--light-text);
    font-size: 1rem;
}

/* CTA Section */
.cta-content {
    text-align: center;
    background-color: var(--surface-color);
    padding: 60px;
    border-radius: 10px;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h2,
.contact-info h2 {
    margin-bottom: 30px;
}

body.dark-mode #navbar {
    border-bottom-color: var(--navbar-border);
}

body.dark-mode #navbar.scrolled {
    background-color: rgba(18, 24, 38, 0.96);
}

body.dark-mode .theme-toggle:hover {
    background-color: rgba(241, 196, 15, 0.18);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--input-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(201, 166, 70, 0.3);
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.secondary-button,
.cta-button {
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-button {
    background-color: transparent;
    color: var(--text-color);
}

.secondary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
}

.secondary-button:hover:not(:disabled),
.cta-button:hover {
    transform: translateY(-1px);
}

#submitBooking:not([hidden]) {
    background-color: var(--primary-color);
    color: var(--white);
}

#submitBooking:not([hidden]):hover {
    transform: translateY(-1px);
}

#nextStep[hidden],
#submitBooking[hidden] {
    display: none;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
}

.form-note {
    margin-top: 20px;
    color: var(--light-text);
    font-size: 0.95rem;
}

.section-copy {
    margin-bottom: 25px;
    color: var(--light-text);
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Map */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.map-placeholder {
    height: 100%;
    background-color: var(--surface-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Footer */
#footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
    color: var(--primary-color);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-links {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    #page-header {
        padding-top: 160px;
        padding-bottom: 100px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--surface-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 5px 15px var(--shadow);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        background-color: var(--primary-color);
    }

    .theme-toggle {
        position: fixed;
        right: 80px;
        top: 20px;
        border-color: var(--primary-color);
        color: var(--primary-color);
        margin-left: 0;
        z-index: 999;
    }

    .theme-toggle:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .service-detail,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    #page-header {
        padding-top: 250px;
        padding-bottom: 200px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    .services-grid,
    .testimonials-grid,
    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
}