/* ==================== VARIABLES ==================== */
:root {
    /* Brand Colors - New Slate Grey Palette */
    --color-primary: #554E5B;     /* The Slate Grey from your image */
    --color-primary-dark: #403E46;
    
    --color-accent: #10b981;      /* Keep Green just for highlights/buttons */
    --bg-cream: #F7F5F0;          /* Main Background */
    
    --color-text-main: #2D2C32;   /* Darker version of primary for text */
    --color-text-body: #4B5563;
    
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --btn-color: #B17DEA;  
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-cream); 
    color: var(--color-text-body); 
    line-height: 1.6; 
}

h1, h2, h3, h4 { color: var(--color-text-main); font-weight: 700; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.5rem 0;
    transition: all 0.4s ease; background: transparent;
}
.navbar.scrolled {
    background: rgba(249, 248, 244, 0.95);
    backdrop-filter: blur(10px); padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo{
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;      /* vertical center */
    justify-content: center;  /* horizontal center */
}
.nav-logo-img {
    height: 100%;
    width: 100%;
    object-fit: cover;      /* keeps logo aspect ratio */
}
.nav-menu { display: flex; gap: 2.5rem; }
.nav-link { color: var(--color-text-main); font-weight: 500; }
.nav-link:hover { color: var(--color-primary); }
.nav-cta {
    background: var(--btn-color); color: white !important;
    padding: 0.6rem 1.2rem; border-radius: 12px; font-weight: 600;
}
.nav-cta:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    background-color: var(--color-primary); /* Slate Background on Right */
    padding-top: 80px;
    overflow: hidden;
}

.hero-wave-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-wave-diagonal { position: absolute; width: 65%; height: 100%; left: 0; top: 0; }
.hero-container { position: relative; z-index: 1; width: 100%; }
.hero-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-content { padding-right: 2rem; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: #e5e7eb; color: var(--color-text-main);
    border-radius: 50px; margin-bottom: 2rem; font-size: 0.85rem; font-weight: 600;
}
.hero-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title .highlight { color: var(--color-primary); }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2.5rem; color: var(--color-text-body); max-width: 90%; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 3rem; }
.btn-primary {
    background: var(--btn-color); color: white; padding: 1rem 2rem; border-radius: 16px; font-weight: 600;
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-secondary {
    background: white; border: 1px solid #d1d5db; color: var(--color-text-main); padding: 1rem 2rem; border-radius: 16px; font-weight: 600;
}
.hero-stats { display: flex; gap: 3rem; padding-top: 1rem; }
.stat-item h3 { font-size: 1.8rem; color: var(--color-text-main); }
.stat-item p { color: #6b7280; font-size: 0.9rem; }
.stat-separator { width: 1px; height: 50px; background: rgba(0,0,0,0.1); }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-img { width: 100%; border-radius: var(--radius-xl); }
.floating-card {
    position: absolute; top: 20px; right: -40px; background: white; padding: 1.2rem;
    border-radius: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    display: flex; gap: 1rem; animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==================== BENTO BOX SERVICES ==================== */
.services { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-tag { color: var(--color-primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; display: block; margin-bottom: 1rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--color-text-body); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }

/* The Bento Card Container */
.bento-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden; /* Ensures the visual part stays inside rounded corners */
    display: flex;
    flex-direction: column;
    height: 100%; /* Make them equal height */
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
    transition: var(--transition);
}
.bento-card:hover { transform: translateY(-8px); box-shadow: 0 20px 30px rgba(0,0,0,0.05); }

/* Text Area (Top Half) */
.bento-content { padding: 3rem 2.5rem 1.5rem; }
.bento-eyebrow {
    display: block; font-size: 0.75rem; font-weight: 700; 
    text-transform: uppercase; color: #9ca3af; margin-bottom: 1rem; letter-spacing: 0.5px;
}
.bento-card h3 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 1rem; color: #111827; }
.bento-card p { font-size: 1.1rem; color: #6b7280; line-height: 1.6; }

/* Visual Area (Bottom Half) - Beige Background */
.bento-visual {
    background-color: #f3f0eb; /* Beige from image */
    flex-grow: 1; /* Pushes to bottom */
    min-height: 250px;
    position: relative;
    display: flex; justify-content: center; align-items: center;
}

/* --- Decorative Elements inside Visual Area --- */
/* Icon Style */
.app-icon {
    width: 60px; height: 60px; background: white; 
    border-radius: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; position: absolute; font-weight: bold; color: #4b5563;
}
.icon-1 { top: 40px; left: 40px; transform: rotate(-5deg); }
.icon-2 { top: 50px; right: 50px; transform: rotate(5deg); color: #8b5cf6; font-family: serif; font-size: 2rem; }
.icon-main { 
    width: 80px; height: 80px; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); z-index: 2; font-size: 2rem; color: var(--color-primary); 
}
.icon-3 { bottom: 40px; left: 60px; transform: rotate(-10deg); color: #3b82f6; }

/* Browser Mockup */
.browser-mockup {
    width: 80%; height: 140px; background: white; border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05); position: absolute; bottom: 0;
    padding: 1rem;
}
.browser-icon { width: 24px; height: 24px; background: #e5e7eb; border-radius: 50%; margin-bottom: 1rem; }
.browser-bar { width: 100%; height: 10px; background: #f3f4f6; border-radius: 5px; }

/* Avatar Group */
.avatar-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.avatar { width: 60px; height: 60px; background: #e5e7eb; border-radius: 50%; border: 3px solid white; }

/* --- Web Services Visual (Desktop + Mobile Mockup) --- */
.web-mockup-group {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-mockup {
    width: 140px;
    height: 100px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 18px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    padding-left: 8px;
    gap: 4px;
}

.mockup-header .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5e7eb;
}

.mockup-body {
    flex: 1;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

.mobile-mockup {
    width: 50px;
    height: 90px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: absolute;
    right: 50px;
    bottom: 40px;
    z-index: 2;
    border: 2px solid white; /* Simulates device border */
    background: #1f2937; /* Dark screen for contrast */
}

.mockup-notch {
    width: 20px;
    height: 4px;
    background: #374151;
    margin: 4px auto 0;
    border-radius: 4px;
}


/* ==================== ABOUT SECTION ==================== */
.about { background: white; padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text { font-size: 1.1rem; color: var(--color-text-body); margin-bottom: 1.5rem; }
.about-stats-row { display: flex; gap: 4rem; margin-top: 3rem; }
.about-stat h4 { font-size: 2rem; color: var(--color-primary); margin-bottom: 0.25rem; }
.about-stat p { font-size: 0.9rem; color: #6b7280; font-weight: 500; }
.about-image-card {
    background: var(--bg-cream); height: 400px; width: 100%; border-radius: var(--radius-xl);
    position: relative; overflow: hidden;
}
.abstract-graphic {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 200px; height: 200px; background: var(--color-primary); opacity: 0.1; border-radius: 50%;
}
.abstract-graphic::after {
    content: ''; position: absolute; top: -50px; left: 50px; width: 150px; height: 150px;
    background: var(--btn-color); border-radius: 50%; opacity: 0.5;
}

/* ==================== FOOTER (Professional) ==================== */
.footer-section {
    background-color: var(--color-primary); /* Slate Grey */
    color: white;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Brand column is wider */
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 350px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    /* Optional: Brightness filter if logo is dark */
    filter: brightness(0) invert(1); 
    opacity: 0.9;
}

.footer-desc {
    font-size: 0.95rem;
    color: #d1d5db; /* Light grey text */
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-icon {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
    transition: var(--transition);
}

.social-icon:hover {
    color: white;
    text-decoration: underline;
}

/* Link Columns */
.footer-link-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-link-col ul {
    list-style: none;
    padding: 0;
}

.footer-link-col li {
    margin-bottom: 0.8rem;
}

.footer-link-col a {
    color: #d1d5db;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-link-col a:hover {
    color: white;
    padding-left: 5px; /* Subtle movement on hover */
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; display: block; }
    .hero-wave-diagonal { width: 100%; height: 60%; }
    .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content { padding-right: 0; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-main { flex-direction: column; align-items: center; gap: 3rem; text-align: center; }
    .footer-links { gap: 2rem; }
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* Left Side Text */
.contact-text .section-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: left; /* Override center alignment if inherited */
}

.contact-text .section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-body);
    margin-bottom: 3rem;
    max-width: 90%;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Right Side Form */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: var(--bg-cream);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--btn-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(177, 125, 234, 0.1); /* Soft purple glow based on btn-color */
}

.btn-submit {
    background: var(--btn-color);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-text {
        text-align: center;
    }
    .contact-text .section-title {
        text-align: center;
    }
    .contact-text .section-subtitle {
        margin: 0 auto 3rem;
    }
    .contact-info-list {
        align-items: center;
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left; /* Keep left alignment for readability on mobile */
    }
    
    .footer-brand-col {
        max-width: 100%;
    }
}
