/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: #2c2c2c;
}

h3 {
    font-size: 1.5rem;
    color: #2c2c2c;
}

h4 {
    font-size: 1.2rem;
    color: #2c2c2c;
}

p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.section-title {
    text-align: left;
    margin-bottom: 2rem;
    color: #2c2c2c;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-left, .nav-right {
    display: flex;
    gap: 2rem;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo h2 {
    font-family: 'Playfair Display', serif;
    color: #2c2c2c;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 3px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8B7355;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #8B7355;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
}

.nav-link-mobile {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: #8B7355;
}

/* Home Section */
.home-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-split {
    width: 100%;
    height: 100%;
}

@media (min-width: 769px) {
    .carousel-split {
        display: flex;
    }
    .carousel-split .carousel-image {
        height: 100%;
    }
    .carousel-split .carousel-image.split-left {
        width: 38.77%; /* 1163/(1163+1833) = 0.3877 */
    }
    .carousel-split .carousel-image.split-right {
        width: 61.23%; /* 1833/(1163+1833) = 0.6123 */
    }
    .carousel-slide[data-skip-desktop] {
        display: none;
    }
    .carousel-indicators .indicator[data-skip-desktop] {
        display: none;
    }
}

@media (max-width: 768px) {
    .carousel-split .split-right {
        display: none;
    }

    /* Center the TV in T3 image on mobile */
    .carousel-slide img[src*="T3.jpg"] {
        object-position: 60% center;
    }
}
.carousel-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.carousel-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 15;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .home-section {
        height: 75vh; /* 3/4 of original height */
    }

    .carousel-nav {
        padding: 0 20px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .home-section {
        height: 75vh; /* 3/4 of original height */
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 120px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #999;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-item h3 {
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    font-size: 1.3rem;
}

.about-item p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.philosophy-list {
    list-style: none;
    margin-top: 1rem;
}

.philosophy-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.philosophy-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8B7355;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #8B7355;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-content p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

.process-arrow {
    color: #8B7355;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background: #f8f8f8;
}

.projects-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 3rem;
    text-align: left;
}

.projects-container {
    position: relative;
    overflow: hidden;
}

.project-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

/* Temple Tree thumbnail cropping for desktop */
@media (min-width: 769px) {
    .temple-tree-thumbnail {
        object-position: center 70% !important;
    }

    .project-item:hover .temple-tree-thumbnail {
        transform: scale(1.05);
        object-position: center 70% !important;
    }
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.8), rgba(212, 175, 55, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-title-animated {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.project-item:hover .project-title-animated {
    transform: translateY(0);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: #2c2c2c;
    font-size: 1.3rem;
}

.project-info p {
    margin-bottom: 0.5rem;
    color: #8B7355;
    font-weight: 500;
}

.project-description {
    color: #666 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 1rem;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: #fff;
}

.process-content {
    max-width: 800px;
    margin: 0 auto;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.process-step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.process-step-item.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.process-step-item:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(30px);
}

.process-step-item:nth-child(even).aos-animate {
    transform: translateX(0);
}

.process-step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B7355, #D4AF37);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.3);
}

.process-step-content {
    flex: 1;
}

.process-step-content h3 {
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.process-step-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-detail i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B7355, #D4AF37);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    color: #2c2c2c;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-detail p {
    color: #666;
    margin: 0;
}

.contact-form {
    background: #f8f8f8;
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B7355;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #8B7355, #D4AF37);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D4AF37, #8B7355);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
}

/* Footer */
.footer {
    background: #2C3E50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #bbb;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #8B7355;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #D4AF37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-left, .nav-right {
        display: none;
    }

    .nav-logo {
        position: static;
        transform: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu-mobile.active {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        position: static;
        order: -1;
    }

    .about-image img {
        height: 300px;
        object-position: center 15%;
    }

    .process-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }

    .process-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .project-image {
        height: 300px;
    }

    .project-title-animated {
        font-size: 1.5rem;
    }

    .process-step-item {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
    }

    .process-step-item:nth-child(even) {
        flex-direction: column !important;
    }

    .process-step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-section,
    .projects-section,
    .contact-section {
        padding: 60px 0;
    }

    .about-text {
        gap: 2rem;
    }

    .about-item h3 {
        font-size: 1.2rem;
    }

    .project-info {
        padding: 1rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

