:root {
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 30, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    /* Logo colors */
    --primary-color: #0056D2;
    --secondary-color: #00A3FF;
    --accent-color: #00A3FF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --nav-height: 80px;
    --border-radius-lg: 24px;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Glass Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.glass-header.scrolled {
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

nav {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 200px;
    height: auto;
    transition: var(--transition-fast);
}

.logo-link:hover .logo-img {
    filter: drop-shadow(0 0 15px rgba(0, 86, 210, 0.5));
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, rgba(5, 5, 10, 1) 0%, rgba(10, 15, 30, 1) 50%, rgba(5, 5, 10, 1) 100%);
}

#network-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(5, 5, 7, 0.4) 50%, var(--bg-dark) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s linear infinite;
}

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

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

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 86, 210, 0.3);
}

.cta-button.primary:hover {
    box-shadow: 0 6px 30px rgba(0, 86, 210, 0.45);
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 163, 255, 0.15);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Smooth section transitions with gradient overlays */
#services {
    background: linear-gradient(180deg,
            var(--bg-dark) 0%,
            rgba(10, 10, 20, 1) 30%,
            rgba(10, 10, 20, 1) 70%,
            var(--bg-dark) 100%);
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

#services>* {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#projects {
    background: linear-gradient(180deg,
            var(--bg-dark) 0%,
            rgba(8, 8, 18, 1) 20%,
            rgba(8, 8, 18, 1) 80%,
            var(--bg-dark) 100%);
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

#projects>* {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Gradient border on hover for service cards */
.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 400% 400%;
    border-radius: calc(var(--border-radius-lg) + 2px);
    z-index: -1;
    opacity: 0;
    animation: gradientBorder 8s ease infinite;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 0.25;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 86, 210, 0.1),
        0 0 50px rgba(0, 163, 255, 0.06);
}

.icon-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.2));
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-10px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    z-index: 1;
}

/* Project Cards - Enhanced */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 30, 0.4);
    position: relative;
    overflow: hidden;
}

/* Gradient border on hover */
.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 400% 400%;
    border-radius: calc(var(--border-radius-lg) + 2px);
    z-index: -1;
    opacity: 0;
    animation: gradientBorder 8s ease infinite;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 0.3;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 86, 210, 0.15),
        0 0 60px rgba(0, 163, 255, 0.08);
}

/* Image container with overlay */
.project-image-wrapper {
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.project-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 20px;
    width: fit-content;
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    background: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.project-card:hover .project-link {
    gap: 0.75rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.project-card:hover .project-link::after {
    transform: translateX(5px);
}

/* Contact Section - Clean Design */
.contact-section {
    position: relative;
    text-align: center;
    padding: 5rem 2rem 10rem 2rem;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 86, 210, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 30% 80%, rgba(0, 163, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 80%, rgba(0, 163, 255, 0.08) 0%, transparent 50%),
        linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

@keyframes gradientBorder {

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

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

.contact-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.contact-section .cta-button {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.contact-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 86, 210, 0.5), 0 0 60px rgba(0, 163, 255, 0.25);
}

/* Footer - Enhanced */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #000 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer p {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer:hover p {
    opacity: 1;
}

/* Animations using Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 2.5rem 1.5rem;
    }

    .contact-section h2 {
        font-size: 2rem;
    }
}