:root {
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-color: #7b2cbf;
    --accent-glow: #9d4edd;
    --gradient-start: #9d4edd;
    --gradient-end: #3c096c;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), #e0aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.6);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    margin-left: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    position: relative;
    padding-top: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-content {
    max-width: 650px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(123, 44, 191, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 {
    transition-delay: 0.1s;
}

.reveal.delay-200 {
    transition-delay: 0.2s;
}

.reveal.delay-300 {
    transition-delay: 0.3s;
}

/* Keyframes for automated animations (like pulses) */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes floatBadge {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.floating-badge {
    animation: floatBadge 4s ease-in-out infinite;
}

/* Enhanced Hover Effects */
.service-card:hover i,
.service-detail-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-glow);
    transition: var(--transition);
}

.skill-item:hover i {
    transform: translateY(-5px);
    color: var(--accent-color);
}

/* Form Focus Effects */
.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats {
    margin-top: 60px;
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Background Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: 10%;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #3a0ca3;
    bottom: -50px;
    left: -100px;
}

/* Sections */
.section {
    padding: 20px 0;
}

.section-header {
    margin-bottom: 20px;
}

.section-tag {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-glow);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(157, 78, 221, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-number {
    font-size: 1.5rem;
    color: var(--accent-glow);
    margin-bottom: 20px;
    font-weight: 700;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Digital Team Section */
.split-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.split-layout .text-content {
    flex: 1;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.skills-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-item {
    background: rgba(0, 0, 0, 0.03);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.skill-item i {
    font-size: 2rem;
    color: var(--accent-glow);
    margin-bottom: 15px;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(180deg, var(--bg-color), #f4f4f4);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-card {
    text-align: center;
    padding: 20px;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent-glow);
    font-size: 1.8rem;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.benefit-card p {
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer p {
    color: var(--text-secondary);
    padding-top: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--accent-glow);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Footer */
.footer-cta {
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-title {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    background: #f0f0f0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: var(--accent-glow);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .split-layout {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto 40px;
        max-width: 100%;
    }

    .hero-visual {
        width: 100%;
        margin-bottom: 40px;
    }

    .hero-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hero-stats {
        justify-content: center;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 75px 0 10px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .page-header {
        padding: 90px 0 20px;
    }

    .section {
        padding: 25px 0;
    }
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.page-header .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Services Page */
.service-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-detail-card:hover {
    border-color: var(--accent-glow);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-glow);
    margin-bottom: 20px;
    display: inline-block;
}

/* Works Page */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.stat-box {
    background: rgba(0, 0, 0, 0.02);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--accent-glow);
    margin-bottom: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background: #333;
    color: var(--accent-glow);
}

/* Reviews Page */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.review-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

.reviewer-info h4 {
    color: var(--accent-glow);
    margin-bottom: 5px;
}

.reviewer-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* About Page */
.about-story {
    margin-bottom: 80px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
}

.team-avatar {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #333, #111);
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
}

.value-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-glow);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item h4 {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    font-size: 1.2rem;
    color: #fff;
}

.info-item a {
    color: #fff;
}

.info-item a:hover {
    color: var(--accent-glow);
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.blog-image {
    height: 200px;
    background: #222;
    position: relative;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
}

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(123, 44, 191, 0.2);
    color: var(--accent-glow);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 15px;
}

.blog-card h3 {
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent-glow);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 25px 0;
    }

    .page-header {
        padding: 90px 0 20px;
    }
}


/* Page Title Fixes */
.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

/* Enhanced Review Cards */
.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-start);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(123, 44, 191, 0.15);
}

.reviewer-header i {
    color: var(--gradient-start) !important;
    opacity: 0.8 !important;
}

.reviewer-info h4 {
    color: var(--text-primary);
    font-weight: 700;
}

.reviewer-info span {
    color: var(--accent-glow);
    font-size: 0.9rem;
}

/* Rolling Reviews Marquee */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Update review card for marquee */
.marquee-content .review-card {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.reviewer-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent-glow);
}
/* Contact Page Improvements */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}

.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-info-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    height: 100%;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p, .info-item a {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-item a:hover {
    color: var(--accent-glow);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form, .contact-info-box {
        padding: 25px;
    }
}


/* ---- Animations & Polish ---- */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-ready.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu & Nav fixes */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1001;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-btn.open {
        transform: rotate(90deg);
    }
    
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .nav-links li a:hover {
        color: var(--accent-glow);
    }
}

/* Navbar Scroll */
.navbar {
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Element Hover Polish */
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.25);
}


/* ---- Premium Navbar Upgrade ---- */

/* Initial State: Taller and cleaner */
.navbar {
    height: 90px;
    background: rgba(255, 255, 255, 0.85); /* More translucent */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none; /* Clean start */
}

.navbar .container {
    height: 100%; /* Ensure content centers vertically */
}

/* Scrolled State: Compact and shadowed */
.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* Soft, wide shadow */
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

/* Logo Polish */
.logo {
    font-weight: 800;
    font-size: 1.8rem; /* Slightly larger */
    letter-spacing: -1px;
    color: var(--text-primary);
}

/* Nav Links Polish */
.nav-links li a {
    position: relative;
    padding: 8px 16px; /* Pill shape padding */
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Remove old underline effect if present */
.nav-links li a::after {
    display: none; 
}

/* New Hover Effect: Subtle background tint + Color change */
.nav-links li a:hover, .nav-links li a.active, .nav-links li a.active-link {
    color: var(--accent-color);
    background: rgba(123, 44, 191, 0.08); /* Light purple tint */
}

/* Nav Button Adjustment */
.nav-actions .btn {
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.2);
}

.nav-actions .btn:hover {
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.3);
    transform: translateY(-2px);
}


/* ---- Fix Header Overlap ---- */

/* Increase top padding to clear the 90px Navbar */
.hero {
    padding-top: 130px !important;
}

.page-header {
    padding-top: 130px !important;
    padding-bottom: 20px; /* Maintain balance */
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 110px !important;
    }
    .page-header {
        padding-top: 110px !important;
    }
}


/* Video Marquee Support */
.marquee-content .video-card {
    min-width: 300px;
    height: 180px; /* Fixed height for consistency */
    flex-shrink: 0;
    margin: 0; /* Override grid margins if any */
}


/* ---- FordMC Special Theme ---- */
.fordmc-page {
    background-color: #09090b;
    color: #ffffff;
    overflow-x: hidden;
}

.fordmc-page .navbar {
    background: rgba(9, 9, 11, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fordmc-page .logo {
    color: #ffffff;
}

.fordmc-page .nav-links li a {
    color: #a1a1aa;
}

.fordmc-page .nav-links li a:hover, 
.fordmc-page .nav-links li a.active {
    color: #22c55e; /* Minecraft Green */
    background: rgba(34, 197, 94, 0.1);
}

.fordmc-page .page-title .gradient-text {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fordmc-page .hero-subtitle {
    color: #d4d4d8;
}

.fordmc-page .section-header .section-tag {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.fordmc-card {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fordmc-card:hover {
    border-color: #22c55e;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.2);
}

/* Nav Button Style for FordMC Link */
.nav-fordmc-btn {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4) !important;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-fordmc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6) !important;
}

/* Server Status/IP Copy Box */
.server-ip-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: all;
}

.server-ip-box:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.server-ip-box i {
    color: #22c55e;
}


/* ---- FordMC Advanced Styles ---- */

/* Server Status Styles */
.server-status {
    font-family: 'Outfit', sans-serif;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #a1a1aa;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.server-status.online {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.1);
}

.server-status.offline {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.status-dot.online {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Updated IP Box (Minecraft Style) */
.server-ip-box {
    background: #18181b; 
    border: 2px solid #3f3f46;
    padding: 15px 30px;
    font-family: 'VT323', monospace; 
    font-size: 2rem; 
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 6px 0 #27272a; /* 3D Bottom Border Effect */
    transform: translateY(0);
    transition: all 0.1s;
    border-radius: 4px; /* Slightly squared */
}

.server-ip-box:active {
    transform: translateY(6px); /* Press down effect */
    box-shadow: 0 0 0 #27272a;
}

.server-ip-box:hover {
    border-color: #22c55e;
    cursor: pointer;
}

.copy-hint {
    font-size: 0.8rem;
    color: #22c55e;
    margin-left: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    text-transform: uppercase;
}

.server-ip-box:hover .copy-hint {
    opacity: 1;
    transform: translateX(0);
}

/* Background Overlay */
.mc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0a09;
    /* Minecraft-like grid pattern */
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 20%, #09090b 100%),
        linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: 0;
    pointer-events: none;
}


/* Refined FordMC Card (Minecraft Block Style) */
.fordmc-card {
    background: #1e1e1e;
    border: 3px solid #3f3f46;
    border-radius: 0 !important; /* Square edges */
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        0 6px 0 rgba(0,0,0,0.3);
    position: relative;
    padding: 30px;
    transition: transform 0.2s, border-color 0.2s;
}

.fordmc-card:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    box-shadow: 
        inset 0 0 20px rgba(34, 197, 94, 0.1),
        0 8px 0 rgba(0,0,0,0.3);
}

.fordmc-card h3 {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ---- 2026 Polish Enhancements ---- */

/* Improved Navbar Global */
nav {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

/* Enhanced FordMC Navbar */
.fordmc-page nav {
    background: rgba(5, 5, 5, 0.85) !important;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.nav-links li a {
    position: relative;
    padding: 5px 0;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nav-links li a:hover::before {
    transform: translateX(-50%) scale(1);
}

/* Animations Override */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FordMC Footer Specifics */
.fordmc-page footer {
    background: #050505 !important;
    border-top: none !important; /* Override default */
    position: relative;
    padding-top: 80px;
}

.fordmc-page footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #1e1e1e; /* Bedrock/Stone color */
    border-bottom: 4px solid #22c55e; /* Grass layer */
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.05) 0px,
        rgba(255,255,255,0.05) 2px,
        transparent 2px,
        transparent 20px
    );
}

.fordmc-page .footer-col h4 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: #22c55e !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.fordmc-page .footer-col ul li a {
    font-family: 'Outfit', sans-serif;
    color: #71717a !important;
    transition: all 0.2s;
}

.fordmc-page .footer-col ul li a:hover {
    color: #22c55e !important;
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.fordmc-page .social-links a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: #18181b !important;
    border: 2px solid #27272a;
    box-shadow: 4px 4px 0 #000;
    color: #a1a1aa;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.fordmc-page .social-links a:hover {
    background: #22c55e !important;
    color: #000 !important;
    border-color: #22c55e;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.fordmc-page .footer-bottom {
    border-top: 1px solid #27272a !important;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: #52525b !important;
}


/* ---- Critical Fixes & Improvements ---- */

/* 1. FordMC Page Variable Overrides (Fixes invisible content) */
.fordmc-page {
    --bg-color: #09090b;
    --card-bg: #18181b;
    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Ensure headings are white on FordMC page */
.fordmc-page .section-title, 
.fordmc-page h1, 
.fordmc-page h2, 
.fordmc-page h3 {
    color: #ffffff;
}

/* 2. Navbar Button Fix (Remove dot, fix alignment) */
.nav-links li a.nav-fordmc-btn::before {
    display: none !important;
}

.nav-links li a.nav-fordmc-btn {
    padding: 8px 20px !important;
    top: 0;
}

.nav-links li a.nav-fordmc-btn:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5) !important;
}

/* 3. Global Premium Dark Footer */
footer {
    background: #020202 !important; /* Very dark/black */
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 60px;
    padding-bottom: 30px;
}

.footer-col h4 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-col ul li a {
    color: #888888;
    font-weight: 300;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaaaaa;
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}


/* ---- Final Polish (Footer & Meta) ---- */

/* Fix FordMC Header Visibility */
.fordmc-hero-bg {
    background: #09090b !important; /* Override white hero bg */
}

/* Restore Light Footer (Global Default) */
footer {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-top: 1px solid #eaeaea !important;
}

/* Light Footer Text Styling */
footer .footer-col h4 { color: #1a1a1a !important; text-shadow: none !important; }
footer .footer-col ul li a { color: #555555 !important; }
footer .footer-col ul li a:hover { color: var(--accent-color) !important; padding-left: 0; }
footer .footer-bottom { border-top-color: #f5f5f5 !important; color: #999999 !important; font-family: var(--font-body) !important; letter-spacing: normal !important; }
footer .social-links a { background: white !important; border-color: #eeeeee !important; color: #666666 !important; box-shadow: none !important; }
footer .social-links a:hover { background: var(--accent-color) !important; color: white !important; border-color: var(--accent-color) !important; transform: translateY(-3px) !important; }

/* Force Dark Footer ONLY for FordMC Page */
body.fordmc-page footer {
    background: #050505 !important;
    color: #e0e0e0 !important;
    border-top: none !important;
    padding-top: 80px;
}
body.fordmc-page .footer-col h4 { color: #22c55e !important; text-shadow: 2px 2px 0 rgba(0,0,0,0.5) !important; }
body.fordmc-page .footer-col ul li a { color: #a1a1aa !important; }
body.fordmc-page .footer-col ul li a:hover { color: #22c55e !important; padding-left: 5px; }
body.fordmc-page .footer-bottom { border-top-color: #27272a !important; color: #52525b !important; font-family: 'VT323', monospace !important; letter-spacing: 1px !important; }
body.fordmc-page .social-links a { background: #18181b !important; border-color: #27272a !important; color: #a1a1aa !important; box-shadow: 4px 4px 0 #000 !important; }
body.fordmc-page .social-links a:hover { background: #22c55e !important; color: black !important; transform: translate(-2px, -2px) !important; box-shadow: 6px 6px 0 #000 !important; }


/* ---- User Request: Match Footer Structure (Lite Theme) ---- */

/* Structure & Typography Match */
footer .footer-content {
    padding-top: 20px;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Better proportions */
    gap: 40px;
}

footer .footer-col h4 {
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 800 !important;
    font-size: 1rem !important; /* Visual match */
    margin-bottom: 25px !important;
    color: #000000 !important; /* Sharp black for lite theme */
}

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

footer .footer-col ul li a {
    font-weight: 500 !important;
    color: #4a4a4a !important;
    font-size: 0.95rem;
}

footer .logo {
    display: block;
    margin-bottom: 15px;
    color: #000000;
}

/* FordMC Specifics (Keep distinctive) */
body.fordmc-page footer .logo {
    color: white;
}


/* ---- Navbar Active State Improvements ---- */

/* Active Link styling (triggered by script.js .active-link or HTML .active) */
.nav-links li a.active,
.nav-links li a.active-link {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

/* Persistent Underline for Active Link */
.nav-links li a.active::after,
.nav-links li a.active-link::after {
    width: 100% !important; 
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(123, 44, 191, 0.4);
}

/* Special Case: FordMC Button Active State */
.nav-links li a.nav-fordmc-btn.active-link {
    background: white !important;
    color: #22c55e !important;
    box-shadow: 0 0 15px rgba(255,255,255,0.4), 0 4px 15px rgba(34, 197, 94, 0.4) !important;
    transform: translateY(-2px);
}
/* Ensure underline doesn't appear on FordMC button */
.nav-links li a.nav-fordmc-btn.active-link::after {
    display: none !important;
}


/* ---- DIRECT FIX: FordMC Navbar Button ---- */
.nav-links li a.nav-fordmc-btn {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 10px 24px !important; /* Slightly larger padding */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4) !important;
    margin-left: 10px !important;
    opacity: 1 !important;
    border: none !important;
}

.nav-links li a.nav-fordmc-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5) !important;
    color: white !important;
}

/* Active State Overrides */
.nav-links li a.nav-fordmc-btn.active, 
.nav-links li a.nav-fordmc-btn.active-link {
    background: #ffffff !important;
    color: #16a34a !important; /* Darker green text */
    box-shadow: 0 0 0 2px #16a34a, 0 10px 20px rgba(0,0,0,0.2) !important;
}


/* ---- Ultra Modern Navbar Redesign ---- */

/* Animated Logo */
.logo:hover .dot {
    display: inline-block;
    animation: spinDot 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes spinDot {
    0% { transform: scale(1); }
    50% { transform: scale(1.4) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Modern Pill-Style Links */
.nav-links {
    gap: 15px !important; /* Tighter gap since pills have padding */
}

.nav-links li a {
    padding: 10px 18px !important;
    border-radius: 12px !important; /* Soft rounded rect */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
}

/* Disable previous underlines/dots */
.nav-links li a::after,
.nav-links li a::before { 
    display: none !important; 
}

/* Hover State */
.nav-links li a:not(.nav-fordmc-btn):hover {
    background: rgba(123, 44, 191, 0.06) !important;
    color: var(--accent-color) !important;
}

/* Active State */
.nav-links li a:not(.nav-fordmc-btn).active,
.nav-links li a:not(.nav-fordmc-btn).active-link {
    background: rgba(123, 44, 191, 0.1) !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

/* FordMC Button Protection */
.nav-links li a.nav-fordmc-btn {
    border-radius: 50px !important; /* Keep pill shape for button */
    padding: 10px 24px !important;
    margin-left: 15px !important;
}

