/* --- CSS Variables & Reset --- */
:root {
    /* Colors extracted from the business card */
    --brand-blue: #283e56; /* Deep Navy Blue */
    --brand-orange: #e88d47; /* Warm Sandy Orange */
    --brand-orange-light: #f4cba6; /* Lighter orange for backgrounds */
    --text-dark: #333333;
    --text-light: #666666;
    --off-white: #f9fbfd;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- Utility Classes --- */
.container { width: 90%; max-width: 1200px; margin: auto; }
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.brand-blue { color: var(--brand-blue); }
.brand-orange { color: var(--brand-orange); }
.text-white { color: var(--white) !important; }
.light-bg { background-color: var(--off-white); }
.dark-blue-bg { background-color: var(--brand-blue); }

.section { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.sub-heading { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.section-header h2 { font-size: 2.5rem; color: var(--brand-blue); position: relative; padding-bottom: 15px; }
.heading-line { width: 60px; height: 3px; background: var(--brand-orange); margin: auto; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s all ease; border: 2px solid transparent; }
.btn-primary { background: var(--brand-orange); color: var(--white); }
.btn-primary:hover { background: #d37c36; transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(232, 141, 71, 0.5); }
.btn-secondary { background: transparent; border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-secondary:hover { background: var(--brand-blue); color: var(--white); }
.btn-nav { background: var(--brand-orange); color: white; padding: 10px 25px !important; border-radius: 4px; }
.btn-nav:hover { background: #d37c36; }
.btn-block { display: block; width: 100%; border-radius: 8px; }

/* --- Navigation --- */
nav { background: rgba(255,255,255,0.98); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.8rem; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--brand-blue); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:not(.btn-nav):hover { color: var(--brand-orange); }
.menu-toggle { display: none; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 120px 0 150px;
    text-align: center;
    background: linear-gradient(135deg, #fff 60%, var(--off-white) 100%);
    overflow: hidden;
}
/* Organic Shapes Background imitating the card */
.hero-shapes::before, .hero-shapes::after {
    content: '';
    position: absolute;
    z-index: 1;
    border-radius: 50%;
}
.hero-shapes::before {
    background: var(--brand-orange-light);
    width: 400px; height: 400px;
    top: -150px; right: -100px;
    opacity: 0.6;
}
.hero-shapes::after {
    background: var(--brand-orange-light);
    width: 300px; height: 300px;
    bottom: -100px; left: -50px;
    opacity: 0.4;
}
.hero-content { position: relative; z-index: 2; }

/* Temporary Logo Placeholder Style */
.logo-placeholder {
    font-size: 15rem;
    background: linear-gradient(45deg, var(--brand-blue), var(--brand-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.home-logo {
    height: 180px;
    width: auto;
    display: block;
    margin-left: auto;  /* Pushes from left */
    margin-right: auto; /* Pushes from right */
}

/* If using real image: .hero-logo-img { max-width: 150px; margin-bottom: 20px; } */

.hero h1 { font-size: 3.5rem; color: var(--brand-blue); margin-bottom: 10px; font-weight: 700; }
.tagline { font-size: 1.5rem; color: var(--brand-orange); font-weight: 500; margin-bottom: 15px; }
.hero-desc { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* --- About Section --- */
.founder-name { margin-top: 30px; font-size: 1.2rem; }
.about-content p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-light); }

/* --- Services Grid --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.10);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.10);
    border-bottom: 4px solid var(--brand-orange);
}
.icon-box {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 25px;
    background: var(--off-white);
    width: 80px; height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto; margin-right: auto;
    transition: 0.4s;
}
/* --- LOGO UPDATES --- */

/* Navigation Logo: fits inside the top bar */
.logo-wrapper {
    display: flex;         /* Lays children out in a row */
    align-items: center;    /* Centers them vertically against each other */
    gap: 0px;              /* Adds space between the logo and the text */
    text-decoration: none;
}
.footer-logo-wrapper {
    display: flex;         /* Lays children out in a row */
    align-items: center;    /* Centers them vertically against each other */
    gap: 10px;              /* Adds space between the logo and the text */
    text-decoration: none;
}
.nav-logo {
    height: 60px;           /* Adjust this to match your text size */
    width: auto;
    display: block;
}

.text-link {
    text-decoration: none;  /* Removes underline from the link */
    font-size: 1.5rem;      /* Adjust size as needed */
    font-weight: bold;
    display: flex;
    gap: 5px;               /* Space between Sai Service and Sphere */
}

/* Hero Section Logo: larger and centered */
.hero-logo-wrapper {
    margin-bottom: 20px;
}

.hero-logo-img {
    max-width: 160px;   /* Controls the size of the main logo */
    height: auto;
    border-radius: 12px; /* Adds a nice curve to the corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Adds a subtle shadow */
}

.founder-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 20px;
}


.service-card:hover .icon-box { background: var(--brand-blue); color: var(--brand-orange); }
.service-card h3 { margin-bottom: 15px; color: var(--brand-blue); font-size: 1.3rem; }
.service-card p { color: var(--text-light); }

/* --- Contact Section --- */
.contact-wrapper { display: flex; gap: 50px; justify-content: space-between; }
.contact-info { flex: 1; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-info > p { margin-bottom: 40px; opacity: 0.8; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.info-item i { font-size: 1.5rem; margin-right: 20px; margin-top: 5px; }
.info-item h5 { font-size: 1.1rem; margin-bottom: 5px; }
.info-item p, .info-item a { opacity: 0.9; text-decoration: none; }

.contact-form-box {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.input-group { margin-bottom: 20px; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}
.input-group textarea { height: 120px; resize: vertical; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--brand-blue); }

/* --- Footer --- */
footer { background: #1f3042; color: rgba(255,255,255,0.7); padding: 50px 0 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; margin-bottom: 20px; }
.footer-brand h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.copyright { text-align: center; font-size: 0.9rem; }

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; right: -100%; top: 70px; height: calc(100vh - 70px);
        flex-direction: column; background: var(--white); width: 100%;
        justify-content: center; transition: 0.4s; border-top: 1px solid #eee;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .menu-toggle { display: block; }
    .bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--brand-blue); }
    
    .hero h1 { font-size: 2.5rem; }
    .tagline { font-size: 1.2rem; }
    .hero-btns { flex-direction: column; gap: 15px; }
    .btn { width: 100%; text-align: center; }
    
    .contact-wrapper { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }

    .founder-container {
        flex-direction: column;
        align-items: center; /* Centers them when stacked */
        gap: 20px;           /* Reduces space between names on mobile */
    }
}