/* Base Reset */
:root {
    --primary-color: #4F46E5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    --secondary-color: #10B981;
    /* Emerald 500 */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    white-space: nowrap;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s;
}

.dropdown-content li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.dropdown-content li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 65vh;
    /* Reduced from 100vh */
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    /* Adjusted for navbar */
    padding-bottom: 60px;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h5 {
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 14px;
}

.hero-text h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: transparent;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.tech-glow {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 25px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.read-more {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
.footer {
    background: #0b1120;
    padding: 80px 0 30px;
    margin-top: 5px;
}

/* Service Detail Content */
.seo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.seo-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.seo-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.services-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.srv-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.srv-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.srv-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 50px;
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-col h3 span {
    color: var(--primary-color);
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-col p a:hover {
    color: var(--primary-color);
}

.footer-col i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: 0.3s;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        text-align: center;
        padding: 40px 0;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-buttons {
        justify-content: center;
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Stats Section Override / Addition */
.stats-section {
    position: relative;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #312e81, #1e1b4b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    height: 90%;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 15px 20px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-icon:hover {
    background: var(--primary-color);
}

.btn-close {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-close:hover {
    background: #ef4444;
    color: white;
}

.modal-body {
    flex: 1;
    background: #000;
    position: relative;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Loading Spinner for Iframe */
.iframe-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 40px;
    z-index: 1;
}


/* Animations for About/Home Section */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
        border-color: var(--primary-color);
    }

    50% {
        transform: scale(1.2);
        opacity: 0.2;
        border-color: var(--secondary-color);
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
        border-color: var(--primary-color);
    }
}

@keyframes float-icon {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tech-visual-container {
    width: 100%;
    height: 450px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.circle-anim {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.1);
}

.c1 {
    width: 300px;
    height: 300px;
    animation: spin-slow 20s linear infinite;
    border-color: rgba(79, 70, 229, 0.4);
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.c2 {
    width: 220px;
    height: 220px;
    animation: pulse-ring 6s ease-in-out infinite;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.c3 {
    width: 140px;
    height: 140px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    animation: spin-slow 15s linear infinite reverse;
}

.tech-icon-wrapper {
    z-index: 10;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float-icon 6s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.2);
}

.tech-icon-wrapper i {
    font-size: 40px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* Advanced Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.logo:hover .logo-icon {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
    transform: rotate(10deg);
}

.logo-icon i {
    font-size: 20px;
    color: var(--primary-color);
    transition: 0.3s;
}

.logo:hover .logo-icon i {
    color: white;
    transform: scale(1.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-main {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    /* Gold Shine Gradient */
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'Outfit', sans-serif;
    animation: shine 4s linear infinite;
}

.logo-sub {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff !important;
    font-weight: 700;
    margin-left: 2px;
    white-space: nowrap;
}

/* Gold Shine Animation Speedup on Hover */
.logo:hover .logo-main {
    animation-duration: 2s;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Chat Widget Customization */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: transparent !important;
    box-shadow: none !important;
    animation: float-widget 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 9999;
    cursor: pointer;
}

.chat-widget-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    transition: transform 0.3s;
}

.chat-widget-btn:hover img {
    transform: scale(1.1);
}

@keyframes float-widget {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}