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

body {
    font-family: 'ABeeZee', sans-serif;
    color: #1e1e1e;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Colors */
:root {
    --primary-color: #778873;
    --secondary-color: #f1f3e0;
    --accent-color: #d2dcb6;
    --text-light: #ffffff;
    --text-dark: #1e1e1e;
    --overlay-color: rgba(255, 255, 255, 0.24);
}

/* Typography */
h1, h2, h3, .section-title, .hero-title, .service-title, .project-title {
    font-family: 'Arima', sans-serif;
    font-weight: 700;
}

/* Navigation Bar */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1000;
    background-color: var(--overlay-color);
    backdrop-filter: blur(10px);
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 84px;
    background-color: var(--overlay-color);
    backdrop-filter: blur(10px);
}

.nav-links {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    padding: 0 120px;
    z-index: 10;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-family: 'ABeeZee', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    opacity: 0.8;
}

/* Hero Banner */
.hero-banner {
    background-color: var(--secondary-color);
    height: 620px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 88px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    margin-top: -5vh;
}

.hero-subtitle {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'ABeeZee', sans-serif;
}

.hero-title {
    color: var(--primary-color);
    font-size: 96px;
    font-family: 'Arima', sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1;
    white-space: nowrap;
}

.hero-description {
    color: var(--primary-color);
    font-size: 24px;
    font-family: 'ABeeZee', sans-serif;
    max-width: 447px;
    white-space: nowrap;
}

.hero-image {
    flex: 0 0 auto;
    position: relative;
    width: 448px;
    height: 537px;
    margin-top: 65vh;
    margin-left: 15vw;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 46px 0;
    width: 100%;
}

.about-title {
    color: var(--text-light);
}

.section-title {
    font-size: 40px;
    max-width: 1280px;
    margin-left: 88px;
    margin-right: 84px;
}

.about-text {
    font-size: 20px;
    line-height: 1.6;
    max-width: 1108px;
    margin-left: 88px;
    margin-right: 84px;
    text-align: justify;
}

/* Services Section */
.services-section {
    background-color: var(--secondary-color);
    padding: 90px 0;
    width: 100%;
}

.services-title {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 50px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 88px;
}

.services-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 100px;
    padding-left: 88px;
    padding-right: 88px;
}

.service-card {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-top: 20px;
    padding-bottom: 35px;
    padding-left: 35px;
    padding-right: 35px;
    border-radius: 20px;
    width: 50%;
    max-width: 502px;
}

.service-title {
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--primary-color);
    white-space: nowrap;
}

.service-card-title {
    font-size: 40px;
    color: var(--text-light);
}

.service-description {
    font-size: 20px;
    line-height: 1;
}

.service-description p {
    margin: 0;
}

.service-description p:last-child {
    margin-top: 20px;
    opacity: 0.8;
    cursor: pointer;
}

/* Projects Section */
.projects-section {
    background-color: var(--accent-color);
    padding: 90px 0;
    width: 100%;
}

.projects-title {
    color: var(--primary-color);
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 26px;
    box-shadow: 0px 4px 12.3px 5px rgba(0, 0, 0, 0.25);
    max-width: 1099px;
    margin: 0 auto;
    margin-bottom: 50px;
    position: relative;
}

.project-image {
    width: 100%;
    height: 547px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 40px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 0 4vw;
    padding-bottom: 4vw;
}

.project-title {
    font-size: 32px;
    color: var(--text-dark);
    font-weight: 500;
}

.project-description {
    font-size: 20px;
    color: var(--text-dark);
    max-width: 1006px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    color: var(--text-dark);
    font-style: italic;
}

.project-industry {
    flex: 1;
}

.project-tech {
    flex: 1;
    text-align: center;
}

.project-demo {
    flex: 0 0 auto;
    text-align: right;
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 46px 0;
    width: 100%;
    background-color: white;
}

.contact-title {
    color: var(--primary-color);
}

.contact-text {
    padding-left: 88px;
}

.contact-text p {
    font-size: 20px;
    margin: 0;
    line-height: 1.6;
}

.email-address {
    font-family: 'ADLaM Display', sans-serif;
    font-style: normal;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.tooltip {
  left: 0;
  bottom: 120%;
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Responsive Design */

/* Tablet and Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 88px;
        gap: 40px;
    }

    .hero-title {
        font-size: 80px;
    }

    .hero-description {
        font-size: 22px;
    }

    .hero-image {
        width: 380px;
        height: 456px;
    }

    .services-container {
        gap: 40px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .service-card {
        padding-top: 20px;
        padding-bottom: 35px;
        padding-left: 35px;
        padding-right: 35px;
    }

    .project-card {
        padding: 0px;
    }

    .nav-links {
        padding: 0 85px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navigation {
        height: auto;
        min-height: 60px;
    }

    .nav-overlay {
        height: 60px;
    }

    .nav-links {
        flex-wrap: wrap;
        padding: 10px 20px;
        justify-content: center;
        position: relative;
        top: auto;
        transform: none;
        height: auto;
        min-height: 60px;
        align-items: center;
    }

    .nav-link {
        font-size: 16px;
        margin: 5px 15px;
    }

    /* Hero Section */
    .hero-banner {
        height: auto;
        min-height: 100vh;
        padding: 130px 0 60px;
        margin-top: 0;
    }

    .hero-content {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
        text-align: center;
        margin-top:20vh
    }

    .hero-text {
        max-width: 100%;
        order: 1;
    }

    .hero-subtitle {
        font-size: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
        text-align: center;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 18px;
        text-align: center;
        max-width: 100%;
    }

    .hero-image {
        order: 2;
        width: 280px;
        height: 336px;
        margin: 0 auto;
    }

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .about-text {
        font-size: 18px;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        max-width: 100%;
    }

    /* Services Section */
    .services-section {
        padding: 60px 0;
    }

    .section-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .services-container {
        flex-direction: column;
        gap: 25px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .service-card {
        width: 100%;
        max-width: none;
        padding: 30px;
        text-align: center;
    }

    .service-title {
        font-size: 28px;
        white-space: normal;
        margin-bottom: 20px;
    }

    .service-description {
        font-size: 18px;
        text-align: center;
    }

    /* Projects Section */
    .projects-section {
        padding: 60px 0;
    }

    .project-card {
        padding: 0px;
        text-align: center;
    }

    .project-image {
        height: 300px;
        margin-bottom: 25px;
    }

    .project-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .project-description {
        font-size: 18px;
        margin-bottom: 25px;
        max-width: 100%;
    }

    .project-meta {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }

    .project-meta p {
        text-align: center;
    }

    .project-tech,
    .project-demo {
        text-align: center;
    }

    /* Contact Section */
    .contact-section {
        padding: 60px 0;
    }

    .contact-text {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        max-width: 100%;
    }

    .contact-text p {
        font-size: 18px;
        text-align: center;
    }

    .email-address {
        font-size: 18px;
        display: block;
        margin-top: 10px;
        word-break: break-all;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-image {
        width: 240px;
        height: 288px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-title {
        font-size: 24px;
    }

    .project-title {
        font-size: 20px;
    }

    .nav-link {
        font-size: 14px;
        margin: 3px 10px;
    }

    .service-card,
    .project-card {
        padding: 25px 20px;
    }

    .hero-banner {
        padding: 120px 0 50px;
        margin-top: 0;
    }

    .about-section,
    .services-section,
    .projects-section,
    .contact-section {
        padding: 50px 0;
    }
}

/* Landscape Orientation Fix */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-content {
        flex-direction: row;
        gap: 30px;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        width: 250px;
        height: 300px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .nav-link:hover {
        opacity: 1;
    }

    .service-description p:last-child:hover {
        opacity: 0.8;
    }

    .project-demo:hover {
        text-decoration: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section spacing for fixed nav */
section[id] {
    scroll-margin-top: 50px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 60px;
    }
}