/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

.btn-nav {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: opacity 0.3s ease;
}

.btn-nav:hover {
    opacity: 0.9;
}

.nav-toggle, .nav-toggle-label {
    display: none;
}

/* --- Hero Section & Cube Text Rotator Fix --- */
.hero {
    padding: 10rem 0 6rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #111827;
}

.brand-gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* --- Updated Cube Rotator Sizing Fix --- */
.cube-container {
    display: inline-block;
    position: relative;
    height: 1.2em;
    vertical-align: bottom;
    overflow: hidden;
    white-space: nowrap;
    width: 100%; /* Allows it to expand cleanly within the heading block */
    max-width: 580px; /* Adjust if needed to fit your longest phrase */
}

.cube-text {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100%;
}

.cube-text.active {
    opacity: 1;
    transform: translateY(0);
}

.cube-text.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.hero-content p {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.hero-image-wrapper {
    flex: 1;
}

.image-glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* --- Section Titles --- */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.section-title h2 span {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: #4b5563;
    font-size: 1.1rem;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #111827;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #4b5563;
    margin-bottom: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    text-align: center;
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0;
}

/* --- Process Section --- */
.process-section {
    background: #f9fafb;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.process-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.step-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #e5e7eb;
}

.process-card h3 {
    font-size: 1.3rem;
    color: #111827;
    margin-bottom: 0.8rem;
}

.process-card p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* --- Unique Features Section --- */
.unique-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.unique-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.unique-card:hover {
    transform: translateY(-5px);
}

.unique-icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.unique-card h3 {
    font-size: 1.3rem;
    color: #111827;
    margin-bottom: 0.8rem;
}

.unique-card p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* --- Projects Section --- */
.projects {
    background: #f9fafb;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 2rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.project-info h3 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.6rem;
}

.project-info p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: #2563eb;
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.5rem;
    color: #2563eb;
    font-weight: 400;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.2rem 1.5rem;
}

.faq-answer p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact {
    background: #f9fafb;
}

.contact-box {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #111827;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2563eb;
}

.btn-block {
    width: 100%;
}

/* --- Footer --- */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 3rem 0;
    text-align: center;
}

.footer-content .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-content .logo span {
    color: #2563eb;
}

.footer-content p {
    font-size: 0.9rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 968px) {
    .hero-container,
    .about-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2rem auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .process-grid,
    .unique-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none; /* Add mobile drawer styling if needed */
    }
}

/* --- Option 3 Footer Styling --- */
.footer-option-three {
    background-color: #ffffff;
    color: #4b5563;
    border-top: 1px solid #e5e7eb;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-top-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 5rem 0 3rem 0;
}

.footer-col .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.2rem;
}

.footer-col .logo span {
    color: #2563eb;
}

.footer-slogan {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Social Icon Circles matching the reference image layout */
.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background: #f3f4f6;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a svg {
    width: 18px;
    height: 18px;
}

.footer-socials a:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: #6b7280;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #2563eb;
}

.contact-col p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0.6rem;
}

/* Newsletter Input Row */
.footer-newsletter {
    display: flex;
    margin-top: 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #111827;
}

.footer-newsletter button {
    background: #ef4444; /* Matches the red send button arrow in reference image */
    color: #ffffff;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.footer-newsletter button svg {
    width: 16px;
    height: 16px;
}

.footer-newsletter button:hover {
    opacity: 0.9;
}

/* Bottom Dark Strip matching reference layout */
.footer-bottom-bar {
    background-color: #111827;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 8px 8px 0 0;
    font-size: 0.85rem;
}

.footer-links-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links-left a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-left a:hover {
    color: #ffffff;
}

.footer-links-left span {
    color: #4b5563;
}

/* Responsive Media Query for Footer */
@media (max-width: 968px) {
    .footer-top-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-top-content {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Hamburger Button Styles --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #111827;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Dropdown Menu Drawer Hidden by Default */
.mobile-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu.active {
    max-height: 350px;
}

.mobile-menu ul {
    list-style: none;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mobile-menu a {
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- Responsive Fixes for Mobile Overflows & Side Gaps --- */
@media (max-width: 968px) {
    .nav-menu {
        display: none; /* Hide desktop menu on mobile */
    }

    .hamburger {
        display: flex; /* Show the 3 lines hamburger button */
    }

    /* Prevent side-scrolling / side-space gaps */
    body, html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 1.25rem; /* Tighter padding for mobile screens */
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-container,
    .about-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.4rem; /* Scales down title so it doesn't break boundaries */
        line-height: 1.25;
    }

    .cube-container {
        min-width: unset;
        width: 100%;
        display: block;
        margin-top: 0.2rem;
    }

    .hero-content p {
        margin: 0 auto 2rem auto;
        font-size: 1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-btns .btn {
        width: 100%;
    }
}

/* Ensure the body or main hero container accounts for fixed navbar height */
body {
    padding-top: 80px; /* Adjust this value (70px - 90px) to match your header's actual height */
}

/* If your hero section has its own padding, make sure it starts cleanly below the fixed header */
.hero, .home-hero {
    margin-top: 0;
}

@media (max-width: 968px) {
    /* Push the very first section down so it clears the fixed header */
    .hero, section:first-of-type {
        padding-top: 6rem; 
    }
}

/* Fix for the About STARKORA section hiding under the fixed header */
#about, .about-section {
    padding-top: 7rem; /* Pushes the text down below the navbar */
    scroll-margin-top: 6rem; /* Ensures smooth scrolling stops below the navbar */
}

@media (max-width: 968px) {
    #about, .about-section {
        padding-top: 6rem;
        scroll-margin-top: 5rem;
    }
}