/* Modern Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
}

.container {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    cursor: default;
}

.nav-item a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item a:hover::after,
.nav-item a.active::after {
    width: 80%;
}

.nav-item a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Add active state for current page */
.nav-item a.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.header.scrolled .nav-item a {
    color: #333;
    text-shadow: none;
}

.header.scrolled .nav-item a::after {
    background: #333;
}

.header.scrolled .nav-item a:hover {
    background: rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav-item a.active {
    background: rgba(0, 0, 0, 0.15);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header.scrolled .hamburger:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

.header.scrolled .hamburger span {
    background-color: #333;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
        gap: 0;
        height: calc(100vh - 60px);
        justify-content: flex-start;
        align-items: center;
    }

    .header.scrolled .nav-menu {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-item a {
        font-size: 1.3rem;
        font-weight: 500;
        padding: 1.2rem 2rem;
        display: block;
        width: 100%;
        border-radius: 0;
        transition: all 0.3s ease;
    }

    .nav-item a::after {
        display: none; /* Hide underline on mobile */
    }

    .nav-item a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
        padding-left: 2.5rem;
    }

    .header.scrolled .nav-item a {
        color: #333;
    }

    .header.scrolled .nav-item a:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #007bff;
        padding-left: 2.5rem;
    }

    .nav-item a.active {
        background: rgba(255, 255, 255, 0.2);
        font-weight: 600;
    }

    .header.scrolled .nav-item a.active {
        background: rgba(0, 0, 0, 0.1);
        color: #007bff;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Header */
    .navbar {
        padding: 0.75rem 1.5rem;
        max-width: none;
    }

    .logo img {
        height: 70px;
        width: auto;
    }
}

/* Main Content */
.main-content {
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomInOut 20s ease-in-out infinite;
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 0.5rem;
        max-width: 95%;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        word-spacing: 0.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 0.5rem;
        line-height: 1.4;
        word-spacing: 0.1rem;
        letter-spacing: 0.5px;
    }
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background-color: #f8fafc;
    scroll-margin-top: 120px; /* Offset for sticky header */
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.about-content {
    display: grid;
    gap: 2rem;
}

.about-text {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-text p:last-child {
    text-align: center;
    font-style: italic;
    margin-top: 2rem;
}

/* Mobile About Section */
@media (max-width: 768px) {
    .about-section {
        padding: 3rem 1rem;
    }

    .about-header h2 {
        font-size: 2.2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .about-text p {
        font-size: 1rem;
        padding: 0 1rem;
        text-align: left;
    }
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background-color: #1f2937;
    scroll-margin-top: 120px; /* Offset for sticky header */
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 0;
}

.contact-item {
    background: transparent;
    padding: 0;
}

.contact-item h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    /* margin-bottom: 2rem; */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-email {
    font-size: 1.8rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 2rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #93c5fd;
}

.contact-phone {
    font-size: 1.7rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-header h2 {
        font-size: 2.2rem;
    }

    .contact-email {
        font-size: 1.2rem;
        word-break: break-all;
        letter-spacing: 1px;
        word-spacing: 0.1rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .contact-phone {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        word-spacing: 0.1rem;
    }
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    border-top: 3px solid #374151;
    padding: 2rem 2rem;
    text-align: center;
}

.footer-copyright p {
    color: #9ca3af;
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Projects Section and Carousel Styles */
.projects-section {
    padding: 4rem 2rem;
    background-color: #374151;
    scroll-margin-top: 120px; /* Offset for sticky header */
}

.projects-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.projects-content h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 600px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.1);
}

.dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

/* Mobile Projects and Carousel */
@media (max-width: 768px) {
    .projects-section {
        padding: 3rem 1rem;
    }

    .projects-content h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .carousel-container {
        max-width: 100%;
        margin: 0;
    }

    .carousel {
        height: 400px;
    }

    .carousel-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 10px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
}

/* Current Projects Section */
.current-projects {
    margin-top: 1rem;
    padding: 2rem 0;
}

.current-projects h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.redfin-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.redfin-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.redfin-link .address {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-align: center;
    line-height: 1.3;
}

.redfin-link .platform {
    font-size: 0.9rem;
    font-weight: 400;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redfin-link:hover .platform {
    color: #93c5fd;
}

/* Mobile Current Projects */
@media (max-width: 768px) {
    .current-projects {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .current-projects h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .redfin-link {
        padding: 1.2rem 1.5rem;
        margin: 0 1rem;
    }

    .redfin-link .address {
        font-size: 1rem;
    }

    .redfin-link .platform {
        font-size: 0.8rem;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem;
    }

    .footer-copyright p {
        font-size: 12px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 60px;
    }

    .hamburger span {
        width: 25px;
    }

    .nav-item a {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        word-spacing: 0.15rem;
        letter-spacing: 0.5px;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.3;
        word-spacing: 0.1rem;
        letter-spacing: 0.3px;
    }

    .about-header h2 {
        font-size: 1.8rem;
    }

    .contact-content h2 {
        font-size: 1.8rem;
    }

    .projects-content h2 {
        font-size: 1.6rem;
    }

    .carousel {
        height: 300px;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }
}