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

body {
    font-family: sans-serif;
    background: #354871;
}

/******** Top Bar ***********/
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* background: #020617; */
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* height: 80px; */
    min-height: 80px;   /* baseline height */
    /* padding: 10px 10%;   allows growth with logo */

    padding: 0 5%;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.92),
        rgba(15, 23, 42, 0.86)
    );
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* .logo a {
    color: #e6ebf2;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    font-size: 1.05rem;
} */

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;               /* space between image & text */
    text-decoration: none;
}

.logo-text {
    color: #e6ebf2;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 1.05rem;
    white-space: nowrap;
}

.logo-img {
    height: 110px;   
    width: auto;
    display: block;
    padding-bottom: 8%;
    padding-top: 8%;
}

.nav-links {
    display: flex;
    height: 100%;
    list-style: none;
    align-items: center;
    gap: 6px;
}

.nav-links > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.nav-links > li > a {
    position: relative;
    padding: 6px 0;
}

.nav-links > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #38bdf8,
        transparent
    );

    opacity: 0;
    transform: scaleX(0.4);
    transition:
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(.4,0,.2,1);
}

.nav-links > li:hover > a:not(.contact-btn) {
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.nav-links > li:hover > a:not(.contact-btn)::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links > li:hover > .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 40px rgba(56, 189, 248, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.45);
}

.nav-links a {
    text-decoration: none;
    color: #cbd5f5;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

/*Dropdown menu*/
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    list-style: none;
    top: 100%;
    margin-top: 10px;
    left: 0;

    background: linear-gradient(
        180deg,
        #142338,
        #0e1b2d
    );

    min-width: 210px;
    padding: 12px 0;
    border-radius: 14px;

    box-shadow:
        0 30px 70px rgba(2, 6, 23, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    z-index: 10;

    /* animation control */
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content li {
    padding: 8px 20px;
}

.dropdown-content a {
    color: #cbd5f5;
    font-size: 0.85rem;
}

.dropdown-content a:hover {
    color: #38bdf8;
}

.contact-btn {
    background: linear-gradient(
        135deg,
        #38bdf8,
        #0ea5e9
    ) !important;
    color: #020617 !important;
    padding: 12px 28px !important; /* Add !important */
    border-radius: 22px !important;
    font-weight: 600 !important; /* Add !important */
    text-decoration: none !important;
    display: inline-flex !important; /* Use flex to ensure proper sizing */
    align-items: center !important;
    justify-content: center !important;
    box-shadow:
        0 10px 25px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.35) !important;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease !important;
}

.contact-btn:hover {
    transform: translateY(-2px);
    /* transition: 0.3s ease all; */
    box-shadow:
        0 18px 40px rgba(56, 189, 248, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.45);
}


/******** Hero Section ***********/
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6%;

    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(2, 6, 23, 0.8) 100%
    ),
    url('../assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #ffffff;
    overflow: hidden;
}

.hero-content {
    max-width: 80%;
    text-align: center;
    /* z-index: 2; */
}

.hero .tagline {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: #38bdf8;
}

.typing-cursor {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.typing-cursor::after {
    content: "|";
    margin-left: 4px;
    color: #38bdf8;
    animation: blink 0.8s infinite;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cbd5f5;
    margin: 0 auto 2.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: #38bdf8;
    color: #020617
}

.btn-primary:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-secondary:hover{
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    user-select: none;
}

.scroll-down span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-down .arrow {
    font-size: 1.5rem;
    animation: bounce 1.5s infinite;
    color: rgba(255, 255, 255, 0.6)
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}


/*********** Services Section ***************/
/* Updated Services Section Styles */
.services {
    position: relative;
    padding: 8rem 5%;
    color: #fff;
    background:
        radial-gradient(
            600px circle at 10% 20%,
            rgba(56, 189, 248, 0.12),
            transparent 40%
        ),
        radial-gradient(
            500px circle at 90% 80%,
            rgba(99, 102, 241, 0.15),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            rgba(2, 6, 23, 0.95) 0%,
            rgba(2, 6, 23, 0.85) 20%,
            rgba(15, 23, 42, 1) 100%
        ),
        url("../assets/services_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem;
}

.services .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 6rem;
    flex-wrap: wrap;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.service-row:nth-child(odd) {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.service-info:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: #38bdf8;
    font-size: 1.5rem;
}

.service-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
    color: #e6ebf2;
}

.service-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    color: #cbd5e1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    color: #e6ebf2;
    transform: translateY(-2px);
}

.service-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.service-img:hover .img-container {
    transform: translateY(-5px);
}

.service-img img {
    width: 100%;
    max-width: 600px;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-img:hover img {
    transform: scale(1.03);
}

.services-cta {
    text-align: center;
    padding: 60px 30px;
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5)),
        rgba(30, 41, 59, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #e6ebf2;
}

.services-cta p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.all-services-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #020617;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

.all-services-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.5);
    text-decoration: none;
    color: #020617;
}

/* Animation classes maintained for JavaScript */
.service-row.visible {
    opacity: 1;
}

/*********** Why Choose Us ***********/
.why-choose-us {
    background:
        radial-gradient(
            1200px circle at 10% 20%,
            rgba(56, 189, 248, 0.15),
            transparent 50%
        ),
        radial-gradient(
            1000px circle at 90% 80%,
            rgba(99, 102, 241, 0.18),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            rgba(2, 6, 23, 0.95) 0%,
            rgba(15, 23, 42, 0.92) 30%,
            rgba(2, 6, 23, 0.90) 70%,
            rgba(15, 23, 42, 1) 100%
        ),
        url("../assets/services_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 5%;
    color: #e6ebf2;
    position: relative;
    overflow: hidden;
}

.why-choose-us .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.why-choose-us .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.why-choose-us .section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: 
        linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7)),
        rgba(30, 41, 59, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(2, 6, 23, 0.4),
        0 0 0 1px rgba(56, 189, 248, 0.2);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    color: #38bdf8;
    font-size: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    background: rgba(56, 189, 248, 0.2);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.cta-section {
    text-align: center;
    padding: 60px 30px;
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5)),
        rgba(30, 41, 59, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f1f5f9;
}

.cta-section p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #020617;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.5);
    text-decoration: none;
    color: #020617;
}

.main-footer {
    background: 
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.03) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
    padding: 60px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    color: #e6ebf2;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    flex: 2;
    min-width: 300px;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h4 {
    color: #e6ebf2;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #38bdf8;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #38bdf8;
    color: #020617;
    transform: translateY(-2px);
}

.main-footer p {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}