:root {
    --bg-color: #FFFFFF;
    --card-bg: #F1F3F4;
    --card-hover: #E8EAED;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --accent-gradient: linear-gradient(90deg, #4285F4, #9B72CB, #D96570); /* Google-ish gradient */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --radius-lg: 28px;
    --radius-md: 16px;
    --gap: 24px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-slogan {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 12px;
    border-left: 1px solid rgba(0,0,0,0.1);
    height: 20px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Dropdown Styles */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: none; /* Hidden on desktop by default */
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}

/* Removed hover effect for desktop to keep it hidden */

.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown-menu a {
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    opacity: 1;
    display: block;
}

.dropdown-menu a:hover {
    background: var(--card-bg);
}

.nav-cta {
    background: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500;
    opacity: 1 !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 90vh; /* Changed from height to min-height */
    height: auto; /* Allow growth */
    display: flex;
    align-items: flex-start; /* Changed from flex-end to control via padding */
    padding-top: 180px; /* Explicit top spacing for Desktop */
    padding-bottom: 80px;
    position: relative;
    /* overflow: hidden; Removed to prevent cutting off content */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden; /* Moved overflow hidden here to clip only background */
}

.gradient-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.25) 0%, rgba(255,255,255,0) 70%);
    filter: blur(80px);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    padding: 0 80px; /* Increased desktop padding */
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.hero-text-wrapper {
    max-width: 60%;
}

.hero-visual {
    max-width: 35%;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    /* Optional: slight tilt or effect */
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Social Proof Section */
.social-proof-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.social-proof-label {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 600;
    opacity: 0.8;
}

.logo-wall {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logo-wall img {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}

.logo-wall img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.logo-wall img.logo-large {
    height: 48px; /* Increased from 32px */
    max-width: 180px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 300;
    margin-bottom: 32px;
}

/* Filter Section */
.filter-section {
    padding: 120px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.filter-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-text h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.filter-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 800px;
}

/* About Intro Section */
.about-intro-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.about-intro-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-intro-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 100%;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
}

.tech-group {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.tech-group:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.tech-category {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 12px;
}

.tech-items {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    display: block;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.tech-group:hover .tech-tag {
    border-color: rgba(0,0,0,0.15);
}

.about-intro-text p.highlight-text {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .about-intro-grid { grid-template-columns: 1fr; }
    .about-intro-text p.highlight-text { font-size: 1.5rem; }
}

/* Services Section */
.services-section {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 40px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: left;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: var(--gap);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
}

.card-content {
    z-index: 2;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.card h4 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Grid Spans */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.card-wide {
    grid-column: span 2;
}

.card-standard {
    grid-column: span 1;
}

/* Visuals inside cards */
.card-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.4s;
}

.card:hover .card-visual {
    opacity: 0.5;
}

.visual-subscription {
    background: radial-gradient(circle at bottom right, #4285F4, transparent 60%);
}

.visual-audit {
    background: linear-gradient(to top, #9B72CB, transparent 70%);
}

.visual-consulting {
    background: linear-gradient(to top, #D96570, transparent 70%);
}

.visual-linkbuilding {
    background: linear-gradient(45deg, rgba(66, 133, 244, 0.1), rgba(155, 114, 203, 0.1), rgba(217, 101, 112, 0.1));
}

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

.about-card {
    background: radial-gradient(circle at top right, rgba(66, 133, 244, 0.15), #F8F9FA);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start for form alignment */
    gap: 60px;
}

.about-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: #E8EAED;
    flex-shrink: 0;
    margin-bottom: 24px; /* Added margin for contact details below */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.1) translateY(5px);
}

/* Contact Section Styles */
.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-details .contact-address {
    margin: 24px 0 0;
    font-style: normal;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    justify-content: center;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: scale(1.1);
    opacity: 1;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-details a:hover {
    opacity: 0.7;
}

.contact-right {
    flex: 2;
    width: 100%;
}

.contact-right h3 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #F8F9FA;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4285F4;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

.contact-form .btn-primary {
    border: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    align-self: flex-start;
    margin-top: 10px;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    opacity: 0.85;
    transition: opacity 0.2s, text-decoration-color 0.2s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

footer a:visited {
    color: var(--text-primary);
}

footer a:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.35);
    outline-offset: 3px;
    border-radius: 10px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero-content { flex-direction: column; align-items: center; text-align: center; padding-bottom: 40px; }
    .hero-text-wrapper { max-width: 100%; margin-bottom: 40px; }
    .hero-visual { max-width: 60%; }
    .hero { height: auto; padding-top: 120px; align-items: center; }
    
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .card-large, .card-wide { grid-column: span 2; }
    .card-tall { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .filter-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .card-large, .card-wide, .card-tall, .card-standard { grid-column: span 1; grid-row: auto; }
    .about-card { flex-direction: column; text-align: center; padding: 40px; }
    
    /* Contact Mobile Styles */
    .contact-form .btn-primary { width: 100%; text-align: center; }
    .contact-right h3 { font-size: 1.8rem; }
    .contact-left { width: 100%; margin-bottom: 20px; }
    
    .edge-grid { grid-template-columns: 1fr; }
}

/* Competitive Edge Section */
.competitive-edge-section {
    padding: 80px 0;
    background: #FAFAFA; /* Slightly lighter bg */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.centered-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.edge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.edge-card {
    padding: 40px 32px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.edge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.edge-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.edge-icon {
    font-size: 2rem;
    background: #F0F4FF; /* Light blue tint */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.edge-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0,0,0,0.05); /* Watermark style number */
    line-height: 1;
    font-family: var(--font-main);
}

.edge-card h4 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.edge-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .about-columns-grid {
        grid-template-columns: 1fr;
    }
}

.cert-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-logo {
    height: 32px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.8;
    background: #fff;
    padding: 4px;
    border-radius: 4px; /* Optional: smooth corners if logos have bg */
}

.location-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px !important; /* Adjust spacing */
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 998; /* Under hamburger (1000) */
    }

    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }

    /* Mobile Dropdown Overrides */
    .nav-item-dropdown {
        flex-direction: column;
        align-items: center;
        height: auto;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        padding: 16px 0 0 0;
        min-width: 200px;
        width: auto;
        gap: 16px;
        align-items: center;
        display: flex;
    }

    .nav-links .dropdown-menu a {
        font-size: 1.1 /* Force display flex on mobile */rem;
        padding: 0;
        color: var(--text-secondary);
        text-align: center;
        opacity: 0.8;
    }
    
    .nav-links .dropdown-menu a:hover {
        background: transparent;
        color: var(--text-primary);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.hero-visual-mobile {
    display: none;
    margin: 24px 0;
}

.hero-visual-mobile img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    /* Navbar styles for mobile are already handled by general styles + hamburger menu */
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 80px; /* Reduced mobile top spacing */
        padding-bottom: 80px;
        align-items: flex-start; /* Align to top */
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px 0 20px; /* Reduced internal top padding */
    }

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

    .hero-visual {
        display: none;
    }

    .hero-visual-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    .filter-section,
    .about-intro-section,
    .about-section,
    .competitive-edge-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .social-proof-section {
        padding: 40px 0;
    }
    
    .services-section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .centered-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .edge-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-card {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 40px;
    }
    
    .social-proof-section {
        padding-top: 20px;
    }
    
    .logo-wall img {
        filter: grayscale(0%) opacity(1);
    }
}
