:root {
    --bg-color: #050510;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-color: #00f2ff;
    /* Cyan Neon */
    --secondary-color: #7000ff;
    /* Electric Violet */
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background: rgba(5, 5, 16, 0.9);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: 1px;
}

.logo .dot {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    color: var(--primary-color) !important;
}

.btn-nav:hover {
    background: var(--primary-color);
    color: #000 !important;
}

.btn-nav:hover::after {
    width: 0% !important;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.btn-lang:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Sections General */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Changed from height to min-height */
    /* Removed fixed height to prevent clipping */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
    /* Increased padding top */
    padding-bottom: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(5, 5, 16, 0.7), rgba(5, 5, 16, 0.7)), url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: #ccc;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: var(--glass-border);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: var(--card-bg);
    border-radius: 20px;
    border: var(--glass-border);
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.contact-info {
    flex: 1;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(0, 242, 255, 0.1));
    min-width: 300px;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.contact-info p {
    margin-bottom: 2rem;
    color: #ddd;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1.5;
    padding: 3rem;
    min-width: 350px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ddd;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #888;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #888;
    margin-left: 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Reveal on Scroll Class (JS triggered) */
.reveal,
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

/* Responsive */
/* Responsive & Mobile Optimization */
@media (max-width: 1024px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        /* Ensure no horizontal scroll */
    }

    section {
        padding: 3rem 1rem;
        /* Reduced horizontal padding */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 16, 0.98);
        padding: 2rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .btn-nav {
        display: inline-block;
        margin-top: 1rem;
    }

    .hamburger {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        /* Adjusted padding */
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Slightly smaller for better fit */
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .hero-buttons .btn {
        margin-left: 0;
        width: 100%;
        display: block;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
        flex-direction: column;
        /* Stack stats on very small screens */
        gap: 2rem;
    }

    .contact-wrapper {
        flex-direction: column;
        border-radius: 10px;
        /* Smaller radius for mobile */
    }

    .contact-info {
        padding: 2rem;
        min-width: 100%;
        text-align: center;
        /* Center text */
    }

    .contact-info .info-item {
        justify-content: center;
        /* Center flex items (email) */
    }

    .contact-info .social-links {
        justify-content: center;
        /* Center social icons */
    }

    .contact-form,
    .form-success-message {
        padding: 2rem;
        min-width: 100%;
    }

    /* Fix for small screens */


    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links a {
        display: block;
        margin: 0.8rem 0;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.2rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Blog Styles */
.page-hero {
    padding: 120px 0 60px 0;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, rgba(112, 0, 255, 0.2), transparent 70%);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.page-hero p {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-section {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: var(--glass-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background: rgba(112, 0, 255, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.3;
}

.blog-content p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.btn-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--secondary-color);
    gap: 0.8rem;
}

/* Single Post Styles */
.post-container {
    padding-top: 100px;
    padding-bottom: 5rem;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.post-header {
    margin-bottom: 2rem;
}

.back-link {
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    color: #888;
    font-size: 0.9rem;
}

.tag-sm {
    color: var(--primary-color);
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.post-title {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.2;
}

.post-featured-image {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body h1, .post-body h2, .post-body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-body a {
    color: var(--primary-color);
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-links-post {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links-post a {
    color: #fff;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-post a:hover {
    color: var(--primary-color);
}

/* Mobile Post Fixes */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.8rem;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
}

/* Success Message - Enhanced */
.form-success-message {
    flex: 1.5;
    padding: 3rem;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.5s ease;
    height: 100%;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.form-success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
}

.form-success-message p {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}