/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --bg-dark: #020617;
    --bg-dark-soft: #0f172a;
    --bg-light: #f8fafc;
    --bg-soft: #ecfdf5;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --white: #ffffff;
    --shadow-soft: 0 12px 25px rgba(15, 23, 42, 0.15);
    --shadow-card: 0 4px 15px rgba(15, 23, 42, 0.08);
    --radius-lg: 1.5rem;
    --radius-md: 0.9rem;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    padding-top: 0; /* navbar is not fixed on this page */
}

img {
    max-width: 100%;
    display: block;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative; /* not fixed so it scrolls with the page */
    z-index: 1000;
    width: 100%;
}

.nav-container {
    margin: 0 auto;
    padding: 10px 20px 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - Left Side */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 80px;
    width: 150px;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.logo a:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(2px 2px 8px rgba(255, 215, 0, 0.5));
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;

    /* ⭐ ADDED → Ensures menu stays right */
    margin-left: auto;
}

.nav-item {
    position: relative;
}

/* Dropdown Menu for Home1 */
.home-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    list-style: none;
    padding: 10px 0;
    margin: 5px 0 0 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1001;
}

.home-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-link:hover {
    background: transparent;
    color: #ffd700;
    padding-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    display: block;
    border-radius: 25px;
    background: transparent;
}

.nav-link:hover {
    background: transparent;
    color: #ffd700;
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        height: auto;
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 70px;
        width: 70px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #1a1a2e;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        margin: 5px 20px;
        border-radius: 10px;
    }

    .nav-link:hover {
        background: transparent;
        color: #ffd700;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .home-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .dropdown-link {
        padding: 10px 40px;
        font-size: 14px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* no extra top padding needed since navbar is not fixed */
    body {
        padding-top: 0;
    }

    .hero {
        min-height: 300px;
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .services-section {
        padding: 2rem 0;
    }

    .tabs {
        margin-bottom: 2rem;
    }

    .tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .grid {
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .cta {
        padding: 2rem 1.5rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta p {
        font-size: 0.95rem;
    }

    .cta-buttons .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.card {
    animation: slideInUp 0.6s ease backwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}
/* ===== CONTAINER ===== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn.primary:hover {
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    box-shadow: var(--shadow-soft);
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--border-soft);
    color: var(--text-main);
}

.btn.outline:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn.full {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-soft) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent),
                radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.15), transparent);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.services-section .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-soft);
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styles */
.card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--bg-soft), var(--bg-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    color: var(--primary-dark);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card ul li i {
    width: 1.2rem;
    height: 1.2rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.card .btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-soft) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1), transparent),
                radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.1), transparent);
    z-index: 0;
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .cta h2 {
        font-size: 2.8rem;
    }
}

.cta p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ===== FOOTER ===== */

/*footer*/

.site-footer {
    background: linear-gradient(135deg, #0a0f24, #111b3b);
    color: #d9e4ff;
    padding: 70px 20px 35px;
    font-family: "Poppins", sans-serif;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* BRAND SECTION */
.footer-brand {
    flex: 1.6;
    min-width: 280px;
}

.footer-logo {
    width: 170px;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #b8c7e8;
    margin-bottom: 20px;
}

/* SUBSCRIBE SECTION */
.footer-subscribe {
    margin-top: 25px;
}

.subscribe-label {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 50px;
    border: 1px solid #39466a;
    background: #1a2547;
    color: white;
    outline: none;
    transition: 0.3s;
}

.subscribe-input:focus {
    border-color: #6c92ff;
}

.subscribe-button {
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #5e2bff, #3d94ff);
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
}

.subscribe-button:hover {
    transform: scale(1.06);
    background: linear-gradient(135deg, #3a20ff, #2d7aff);
}

.subscribe-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #93a3c7;
}

/* LINKS SECTION */
.footer-columns {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 35px;
    min-width: 250px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 1.15rem;
    position: relative;
}

.footer-column h3::after {
    content: "";
    width: 35px;
    height: 3px;
    background: #3b82ff;
    display: block;
    margin-top: 5px;
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #b5c6e4;
    text-decoration: none;
    transition: 0.25s;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 6px;
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 45px;
    padding-top: 25px;
    text-align: center;
}

.footer-bottom-left p {
    margin: 0;
    color: #92a3ca;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.footer-legal a {
    color: #b7cbff;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: #fff;
}

/* SOCIAL ICONS */
.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1b2647;
    padding: 10px;
    transition: 0.3s;
    filter: grayscale(30%);
}

.social-icon:hover {
    transform: scale(1.15);
    background: #3b82ff;
    filter: grayscale(0%);
    box-shadow: 0px 0px 12px rgba(59, 130, 255, 0.6);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-columns {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-button {
        width: 100%;
    }

    .footer-columns {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}
