
html {
    scroll-padding-top: 56px;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f5f7;
    color: #222;
    min-height: 100vh;
}

/* HEADER */
.header {
    background: #13111f;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    /* needed so mobile dropdown positions relative to header */
    position: sticky;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 2rem;
    gap: 1.5rem;
    position: relative;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(167,139,250,0.15);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.company-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: linear-gradient(90deg, #a78bfa 0%, #60a5fa 40%, #34d399 75%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
    padding: 0.3rem 0.9rem;
    border-radius: 0;
    position: relative;
    transition: color 0.2s;
}
nav a::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: -2px;
    height: 2px;
    background: #a78bfa;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
nav a:hover,
nav a.active {
    color: #fff;
    background: transparent;
}
nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}
nav a.active {
    color: #fff;
}

/* INTRO TEXT */
.intro-text {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 2rem 2.5rem 0.5rem 2.5rem;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.85;
}
.intro-text p {
    margin: 0 0 1.2rem 0;
}

/* MAIN */
main {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1.5rem 2rem 1.5rem;
    background: transparent;
}

/* HERO - full viewport width */
.hero-wrapper {
    width: 100%;
    margin-bottom: 2.5rem;
}

/* HERO */
.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    background: url('assets/hero.png') center top / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-bottom: 0;
}
.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(30, 30, 30, 0.52);
    border-radius: 12px;
    max-width: 700px;
    width: calc(100% - 3rem);
    margin: 2rem auto;
    backdrop-filter: blur(2px);
    box-sizing: border-box;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20,20,20,0.38);
    z-index: 1;
}
.hero-tagline {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-sub {
    color: #e8e8e8;
    font-size: 1.08rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: #fff;
    color: #3b3b3b;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    border: 2px solid rgba(255,255,255,0.3);
}
.cta-btn:hover {
    background: #3b3b3b;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

.card-section {
    margin: 0 1.5rem 2.5rem 1.5rem;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}
.card {
    background: #f5f6fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(26,35,126,0.06);
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(26,35,126,0.15);
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
    animation: ripple-effect 0.6s linear forwards;
    z-index: 2;
}
@keyframes ripple-effect {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}
}
.card-icon {
    width: 56px;
    height: 56px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: background 0.3s;
}
.card:hover .card-icon {
    background: #3b3b3b;
}
.card:hover .card-icon svg {
    stroke: #fff;
}
.card-icon svg {
    width: 28px;
    height: 28px;
    transition: stroke 0.3s;
}
.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(26,35,126,0.13);
    background: #e3f2fd;
}

.about-section {
    margin: 0 1.5rem 2.5rem 1.5rem;
}
.about-content {
    max-width: 860px;
}
.about-content h2 {
    color: #222;
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
}
.about-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

/* WHO WE SERVE */
.who-section {
    margin: 0 1.5rem 2.5rem 1.5rem;
}
.who-intro {
    color: #555;
    font-size: 1.03rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.who-card {
    background: #f0f1f5;
    border-radius: 10px;
    padding: 1.8rem 1.5rem;
}
.who-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.8rem 0;
}
.who-card p {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0;
}

/* WHY BALDEVTECH */
.why-section {
    margin: 0 1.5rem 2.5rem 1.5rem;
    background: #f7f8fa;
    border-radius: 12px;
    padding: 2rem 1.5rem;
}
.why-intro {
    color: #555;
    font-size: 1.03rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}
.why-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #3b3b3b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
}
.why-icon svg {
    width: 26px;
    height: 26px;
}
.why-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.4rem 0;
}
.why-item p {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
}

/* HAVE A PROJECT CTA */
.project-cta {
    margin: 0 1.5rem 2.5rem 1.5rem;
    background: #2b2b2b;
    border-radius: 12px;
    padding: 2.2rem 2rem;
    box-sizing: border-box;
    overflow: hidden;
}
.project-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.project-cta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.6rem 0;
}
.project-cta p {
    color: #bbb;
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 0;
    max-width: 620px;
}
.cta-call-btn {
    display: inline-block;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(167,139,250,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.cta-call-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(167,139,250,0.35);
}

.contact-section {
    margin: 0 1.5rem 2.5rem 1.5rem;
}
.contact-flex {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}
.contact-img {
    width: 220px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(26,35,126,0.10);
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 400px;
    margin-top: 0.5rem;
}
input, textarea {
    padding: 0.7rem;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: border 0.2s;
}
input:focus, textarea:focus {
    border: 1.5px solid #3b3b3b;
    outline: none;
}
button {
    background: #3b3b3b;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}
button:hover {
    background: #555;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.footer {
    text-align: center;
    padding: 1.2rem 0;
    background: #13111f;
    color: #ccc;
    position: relative;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    font-size: 0.93rem;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards;
}
.shadow-fade {
    box-shadow: 0 2px 16px rgba(26,35,126,0.10);
    animation: fadeDown 1s;
}

/* Responsive Design */
@media (max-width: 900px) {
    main {
        padding: 0.5rem;
    }
    .about-flex, .contact-flex, .hero-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
}
/* HAMBURGER BUTTON */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    gap: 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #13111f;
        padding: 0.8rem 1.5rem 1rem 1.5rem;
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        z-index: 200;
    }
    #main-nav.open {
        display: block;
    }
    #main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
    }
    #main-nav ul li a {
        display: block;
        padding: 0.6rem 0.5rem;
        font-size: 1rem;
    }
    .hero-section {
        aspect-ratio: unset;
        min-height: 380px;
        align-items: flex-end;
    }
    .hero-overlay {
        margin: 0 1rem 1.5rem 1rem;
        padding: 1.5rem 1.2rem;
        width: calc(100% - 2rem);
    }
    .hero-tagline {
        font-size: 1.45rem;
    }
    .hero-sub {
        font-size: 0.95rem;
    }
    .project-cta-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .project-cta {
        margin: 0 0.5rem 2.5rem 0.5rem;
        padding: 1.5rem 1.2rem;
    }
    .project-cta h3 {
        font-size: 1.2rem;
        word-break: break-word;
    }
    .project-cta p {
        font-size: 0.93rem;
        max-width: 100%;
    }
    .cta-call-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
@media (max-width: 600px) {
    main {
        margin: 0.5rem;
        padding: 0.2rem 0.8rem 1.5rem 0.8rem;
    }
    nav ul {
        gap: 0.1rem;
    }
    .footer {
        font-size: 0.88rem;
    }
    .header-inner {
        padding: 0.45rem 1rem;
    }
}
