/* ========================================
   GLOBAL STYLES & TYPOGRAPHY
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.about-grid {
    grid-template-columns: 1fr;
}

/* SCROLL ANIMATIONS */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    background-color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER SECTION */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 5%;
    border-bottom: 1px solid #1a1a1a;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

/* JOOMLA MENU ADJUSTMENTS */
.nav-container ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-container ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-container ul li a:hover {
    opacity: 0.6;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
}

/* HERO SECTION */
.hero {
    margin-top: 80px;
    padding: 100px 5% 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
}

.hero h1 {
    font-size: 72px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 24px;
    color: #999999;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #ffffff;
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #ffffff;
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* LOGO TICKER */
.logo-ticker {
    background-color: #000000;
    padding: 50px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.ticker-wrapper {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
}

.ticker-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.ticker-logo:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* PORTFOLIO SECTION */
.portfolio-section {
    padding: 100px 5%;
    background-color: #ffffff;
}

/* ABOUT SECTION */
.about-section {
    padding: 100px 5%;
    background-color: #000000;
    border-top: 1px solid #1a1a1a;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    font-size: 18px;
    color: #999999;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-card {
    background-color: rgba(169, 169, 169, 0.1);
    padding: 40px;
    border-radius: 0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(169, 169, 169, 0.2);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(169, 169, 169, 0.15);
    background-color: rgba(169, 169, 169, 0.15);
    border-color: rgba(169, 169, 169, 0.3);
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 16px;
    color: #999999;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 48px;
    color: #ffffff; /* Default, overridden in light sections */
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.portfolio-section .section-title {
    color: #000000;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: #666666;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background-color: rgba(169, 169, 169, 0.1);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(169, 169, 169, 0.2);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(169, 169, 169, 0.15);
    background-color: rgba(169, 169, 169, 0.15);
    border-color: rgba(169, 169, 169, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 28px;
    color: #000000;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.portfolio-content p {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
}

/* CONTACT SECTION */
.contact-section {
    padding: 100px 5%;
    background-color: #000000;
    border-top: 1px solid #1a1a1a;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

/* APPOINTMENT BOOKING */
.appointment-booking {
    text-align: center;
    margin-bottom: 60px;
}

.book-appointment-btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: #ffffff;
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.book-appointment-btn:hover {
    background-color: #ffffff;
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* POPUP STYLES */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background-color: #000000;
    border-radius: 0;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    padding: 40px;
    border: 1px solid #1a1a1a;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999999;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #ffffff;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
}

/* CALENDAR STYLES */
.booking-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    margin-bottom: 30px;
}

.calendar-container {
    background-color: #000000;
    padding: 25px;
    border-radius: 0;
    max-width: 100%;
    border: 1px solid #1a1a1a;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    padding: 5px 10px;
}

.calendar-month {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.calendar-grid, .calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    width: 100%;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 10px 5px;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    padding: 8px;
}

.calendar-day.weekend, .calendar-day.disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.calendar-day:hover:not(.disabled):not(.weekend) {
    background-color: #f0f0f0;
    color: #000000;
}

.calendar-day.selected {
    background-color: #000000;
    color: #ffffff;
    font-weight: 700;
}

.calendar-day.today:not(.weekend) {
    border: 2px solid #000000;
}

.calendar-day.other-month {
    color: #ccc;
}

/* TIME PICKER */
.time-picker-container {
    background-color: #000000;
    padding: 25px;
    border-radius: 0;
    min-width: 250px;
    border: 1px solid #1a1a1a;
}

.selected-date-display {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.time-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.time-wheel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-wheel label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.time-wheel select {
    padding: 12px 16px;
    border: 1px solid #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background-color: #0a0a0a;
    width: 80px;
    text-align: center;
}

.booking-actions {
    text-align: center;
    margin-top: 30px;
}

.booking-actions button {
    padding: 15px 40px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.booking-actions button:disabled {
    background-color: #1a1a1a;
    color: #666666;
    cursor: not-allowed;
}

.booking-form {
    display: none;
}

.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.form-field input, .form-field textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #1a1a1a;
    font-size: 16px;
    color: #ffffff;
    background-color: rgba(169, 169, 169, 0.05);
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* FOOTER */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 5% 30px;
    border-top: 1px solid #1a1a1a;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p, .footer-section a {
    font-size: 14px;
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #ffffff;
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333333;
    font-size: 14px;
    color: #999999;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-container {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.98);
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
        display: none;
        border-bottom: 1px solid #1a1a1a;
    }
    
    .nav-container.active {
        display: block;
    }

    .nav-container ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-container ul li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #1a1a1a;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: 70vh;
        padding: 60px 5% 60px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .popup-container {
        padding: 25px 20px;
        width: 95%;
    }
    
    .booking-content {
        grid-template-columns: 1fr;
    }
}