/* ============================================= */
/* GLOBAL STYLES & VARIABLES */
/* ============================================= */
:root {
    --primary-blue: #0056b3; /* A modern royal blue */
    --primary-blue-dark: #004494;
    --primary-light: #e6f0fa;
    --dark-navy: #0f172a;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: pageLoad 0.8s ease-out forwards;
}

/* Smooth Page Load Animation */
@keyframes pageLoad {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; width: 0%; height: 4px;
    background: linear-gradient(to right, var(--primary-blue), #4facfe);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed; bottom: 30px; left: 30px;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--primary-blue); color: white;
    border: none; font-size: 1.2rem; cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 9998;
    display: flex; justify-content: center; align-items: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); background: var(--primary-blue-dark); }

/* Portal Navigation Button */
.nav-links .nav-btn {
    background: linear-gradient(135deg, var(--primary-blue), #4facfe);
    color: var(--bg-white) !important;
    padding: 0.4rem 1.2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}
.nav-links .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #4facfe, var(--primary-blue));
}

/* Typing Cursor Animation */
.typing-cursor::after {
    content: '|'; animation: blink 1s step-start infinite; color: var(--primary-blue);
}
@keyframes blink { 50% { opacity: 0; } }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { 
    font-size: 2.5rem; 
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { max-width: 600px; margin: 0 auto; }

.subheader {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: rgba(255,255,255,0.15);
    transform: rotate(45deg) translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}
.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* ============================================= */
/* HEADER & NAVIGATION */
/* ============================================= */
.top-bar {
    background-color: var(--primary-blue);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}
.top-bar i { color: var(--bg-white); margin-right: 5px; }

.main-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.8rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
    background-color: var(--primary-light);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================= */
/* HERO SECTION */
/* ============================================= */
.hero-section { 
    background-color: var(--bg-light); 
    background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
    background-size: 24px 24px;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.hero-text { padding-right: 2rem; }
.hero-text h1 { 
    margin-bottom: 1.5rem; 
    background: linear-gradient(270deg, var(--dark-navy), var(--primary-blue), #4facfe, var(--primary-blue));
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes gradientShift { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}
.hero-text p { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-image {
    position: relative;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: floatImage 6s ease-in-out infinite;
}
.decorative-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), #4facfe);
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}
@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.hero-image .decorative-circle {
    bottom: -25px;
    left: -25px;
}

/* ============================================= */
/* PAGE BANNER (SUBPAGES) */
/* ============================================= */
.page-banner {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(0, 86, 179, 0.85)), url('images/pexels-photo-18069696.png') center/cover fixed no-repeat;
    padding: 6rem 0;
    text-align: center;
    color: var(--bg-white);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}
.page-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--bg-white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.page-banner p {
    font-size: 1.2rem;
    color: var(--primary-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================= */
/* TECH STACK ICONS */
/* ============================================= */
.tech-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.tech-icon:hover {
    transform: translateY(-10px) scale(1.1);
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.15));
}

/* ============================================= */
/* ABOUT SECTION */
/* ============================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 4rem;
}
.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.about-text h2::after { left: 0; }
.features-list {
    list-style: none;
    margin-top: 1.5rem;
}
.features-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}
.features-list i {
    color: var(--primary-blue);
    margin-right: 1rem;
    margin-top: 5px;
}

/* ============================================= */
/* SERVICES SECTION */
/* ============================================= */
.services-section { background-color: #f8f9fa; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.3rem; }

/* ============================================= */
/* STATS SECTION */
/* ============================================= */
.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.stats-image { position: relative; }
.stats-image img { max-width: 100%; border-radius: 10px; }
.stats-image .decorative-circle {
    top: -25px;
    right: -25px;
}
.stats-text h2::after { left: 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.stat-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    display: block;
}

/* ============================================= */
/* FEATURES SECTION */
/* ============================================= */
.features-section { background-color: #f8f9fa; }
.features-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 4rem;
}
.features-text h2::after { left: 0; }
.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}
.feature-icon {
    font-size: 2rem;
    color: var(--primary-blue);
}
.features-image { position: relative; }
.features-image img { max-width: 100%; border-radius: 10px; }
.features-image .decorative-circle {
    bottom: -25px;
    right: -25px;
}

/* ============================================= */
/* TEAM SECTION */
/* ============================================= */
.team-member-card {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--primary-blue);
}
.team-member-card h3 { margin-bottom: 0.25rem; }
.team-member-card p { color: #6c757d; }

/* ============================================= */
/* BLOG & CONTACT SECTIONS */
/* ============================================= */
.blog-section { background-color: #f8f9fa; text-align: center; }
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form .form-group {
    display: flex;
    gap: 1rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.contact-form button {
    align-self: flex-start;
    cursor: pointer;
}

/* ============================================= */
/* FAQ ACCORDION (SERVICES PAGE) */
/* ============================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background: var(--bg-white);
    overflow: hidden;
}
.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.faq-question h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}
.faq-question i {
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question {
    background: var(--primary-light);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
    opacity: 1;
}

/* ============================================= */
/* TESTIMONIALS & CTA BANNER */
/* ============================================= */
.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 5rem;
    color: var(--primary-light);
    font-family: serif;
    line-height: 1;
}
.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.cta-banner {
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue-dark));
    color: var(--text-light);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin: 4rem 0;
    box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: var(--bg-white); }
.cta-banner h2::after { display: none; }
.cta-banner .btn-primary { background: var(--bg-white); color: var(--primary-blue); margin-top: 1.5rem; }
.cta-banner .btn-primary:hover { background: var(--primary-light); transform: scale(1.05); }

/* ============================================= */
/* SCROLL ANIMATIONS */
/* ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================= */
/* FOOTER */
/* ============================================= */
footer {
    background-color: var(--dark-navy);
    color: var(--text-light);
    padding-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}
.footer-column.about p {
    margin-bottom: 1.5rem;
    color: #ccc;
}
.contact-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
}
.contact-info i {
    color: var(--primary-blue);
    margin-right: 10px;
    width: 20px;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column ul a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-column ul a:hover { color: var(--primary-blue); }

.footer-bottom {
    border-top: 1px solid #3a4b7c;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content, .about-content, .stats-content, .features-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text, .about-text, .stats-text, .features-text { padding: 0; }
    .hero-image, .about-image, .stats-image, .features-image { order: -1; margin-bottom: 2rem; }
    .about-text h2::after, .stats-text h2::after, .features-text h2::after { left: 50%; transform: translateX(-50%); }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .page-banner { padding: 5rem 0; }
    .page-banner h1 { font-size: 3rem; }
    .page-banner p { padding: 0 1rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 3rem 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .page-banner { padding: 4rem 0; }
    .page-banner h1 { font-size: 2.5rem; }
    .hero-content { gap: 2rem; }
    .hero-text p { font-size: 1rem; }
    .menu-toggle { display: flex; }
    .nav-links { 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .services-grid, .stats-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; gap: 1rem; text-align: center; }
    .contact-form .form-group { flex-direction: column; }
}