:root {
    --bg-dark: #000000;
    --bg-card: rgba(255, 255, 255, 0.25);
    --border: rgba(255, 255, 255, 0.1);
    --border-active: rgba(59, 130, 246, 0.5);
    --blue-primary: #2563eb;
    --blue-accent: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.35);
    --white: #ffffff;
    --text: #f8fafc;
    --text-muted: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x pan-y;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 69, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease, background 0.3s ease;
}

.nav-inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--blue-accent);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--blue-primary) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #60a5fa 0%, var(--blue-accent) 100%);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.hero {
    padding: 220px 0 160px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: var(--bg-dark);
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.hero-bg-video.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    margin-bottom: 24px;
}

.hero-center-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--blue-glow));
}

h1 {
    font-size: 60px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.bg-container {
    position: relative;
    overflow: hidden;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.25));
    z-index: 1;
    pointer-events: none;
}

.about-banner-section {
    position: relative;
    padding: 100px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-banner-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.about-banner-content.text-right {
    margin-left: auto;
    text-align: right;
}

.banner-heading {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    margin: 16px 0 24px;
    color: var(--white);
}

.about-banner-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-banner-content p:last-child {
    margin-bottom: 0;
}

.services, .info-section {
    padding: 70px 0;
    position: relative;
}

.section-header {
    margin-bottom: 36px;
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--blue-accent);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-heading {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    flex: 1 1 250px;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card.compact-card {
    padding: 22px 20px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--border-active);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--blue-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.info-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    backdrop-filter: blur(12px);
}

.info-block h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
}

.info-block p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
}

.stats-grid {
    margin-top: 24px;
}

.stat-card {
    text-align: center;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 44px;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stat-number .plus {
    font-size: 32px;
    color: var(--blue-accent);
    font-weight: 800;
    margin-left: 2px;
}

.stat-card p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.contact-details {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--blue-accent);
}

.social-img-btn-sm {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.social-img-btn-sm img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-img-btn-sm:hover {
    transform: translateY(-2px);
}

footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    background: rgba(6, 7, 12, 0.95);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-block h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-block p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    margin-bottom: 25px;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#about,
#skills {
    color: #000000;
}

#about .section-title,
#skills .section-title {
    color: #1e40af;
}

#about .section-heading,
#skills .section-heading,
#about .info-block h2,
#skills .card h3,
#about .stat-number {
    color: #000000;
}

#about .info-block p,
#skills .card p,
#about .stat-card p {
    color: #1e293b;
}

#about .info-block,
#skills .card,
#about .stat-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-inner {
        justify-content: space-between;
        height: 70px;
    }

    .nav-socials,
    .nav-inner > .btn-outline {
        display: none;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.33);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.75);
    }

    .nav-links a {
        font-size: 20px;
    }

    .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);
    }

    h1 { font-size: 36px; }
    .banner-heading { font-size: 22px; }
    .hero { padding: 140px 0 80px; }
    .about-banner-section { padding: 60px 0; }
    .about-banner-content.text-right { text-align: left; margin-left: 0; }
    .info-grid, .footer-grid { grid-template-columns: 1fr; }
}