@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #030305;
    --surface-color: rgba(15, 15, 20, 0.5);
    --surface-light: rgba(30, 30, 40, 0.4);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);

    --accent-blue: #6366f1;
    /* Vibrant Indigo */
    --accent-glow: rgba(99, 102, 241, 0.35);

    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* BLURRY VIDEO BACKGROUND */
.bg-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-color);
}

.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: saturate(1.2);
    transform: scale(1.05);
}

.bg-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5vw;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.8rem; /* Reduced padding */
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin-bottom: 2rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 28px; /* Reduced from 35px */
    width: auto;
    object-fit: contain;
}

.nav-name {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.95rem; /* Reduced from 1.1rem */
}

.nav-logo span {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav_menu_list {
    display: flex;
    list-style: none;
    gap: 2rem; /* Reduced from 2.5rem */
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem; /* Reduced from 0.95rem */
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-color);
}

.btn-outline {
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem; /* Reduced from 0.6rem 1.5rem */
    border-radius: 50px;
    font-size: 0.75rem; /* Reduced from 0.85rem */
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    /* Reduced from 4rem */
    margin-bottom: 6rem;
}

.hero-left {
    flex: 1;
    padding-right: 4rem;
}

.greeting {
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3.8rem; /* Reduced from 5rem */
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem; /* Reduced from 1.25rem */
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--accent-blue);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 25px var(--accent-glow);
}

.btn-dark i {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
    background-color: #4f46e5;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-img-box {
    width: 350px; /* Reduced from 450px */
    height: 350px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    border: none; /* Removed the blue line */
    background: var(--surface-color);
    animation: morphWave 8s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morphWave {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translateY(0);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translateY(-20px);
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translateY(0);
    }
}

/* ABOUT SECTION */
.about-section {
    margin-bottom: 8rem;
    padding: 4rem;
    background: var(--surface-color);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
}

.about-intro {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-intro h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    flex: 1;
}

.about-text {
    flex: 1.5;
}

.about-text .lead {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.tech-category h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.tech-category p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SECTION VIDEO BACKGROUND STYLES */
.new-projects-section,
.services-list-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 8rem;
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    backdrop-filter: blur(16px);
}

.section-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.np-header,
.project-grid,
.bs-header,
.services-grid {
    position: relative;
    z-index: 2;
}

/* HEADERS FOR SECTIONS */
.np-header,
.bs-header,
.ach-header {
    margin-bottom: 4rem;
}

.np-tag,
.bs-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.new-projects-section h2,
.services-list-section h2,
.achievements-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

/* PROJECT GRID */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.proj-card {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    transition: transform 0.3s;
}

.proj-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.proj-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.proj-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.proj-tech {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.proj-tech span {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-box {
    background: var(--surface-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ACHIEVEMENTS */
.achievements-section {
    margin-bottom: 8rem;
    padding: 4rem;
    background: var(--surface-color);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.ach-col h4 {
    font-size: 1.3rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ach-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ach-col li {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.ach-col li strong {
    color: #ffffff;
}

/* BLUE FOOTER */
.blue-footer {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), var(--surface-color));
    border-radius: 32px;
    padding: 4rem 3rem 3rem;
    color: #fff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.footer-cta-area {
    margin-bottom: 5rem;
}

.footer-cta-area h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
    background: linear-gradient(180deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn-white-pill {
    background: var(--accent-blue);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 25px var(--accent-glow);
    text-decoration: none;
}

.btn-white-circle {
    background: var(--surface-light);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.btn-white-pill:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-white-circle:hover {
    background: var(--text-color);
    color: #000000;
    transform: translateY(-2px);
}

.footer-nav-cards {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.f-card {
    flex: 1;
    padding: 1.8rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.f-card:hover {
    transform: translateY(-5px);
}

.f-card .stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: -0.5rem;
}

.active-card .stat-num {
    color: var(--accent-blue);
}

.f-card span:not(.stat-num) {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.active-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.02));
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.outline-card {
    background: transparent;
}

.outline-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.3), transparent);
    margin-bottom: 3rem;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.fb-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.fb-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fb-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.fb-title {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.fb-center {
    display: flex;
    gap: 1.2rem;
}

.fb-center a {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.fb-center a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.fb-right {
    display: flex;
    gap: 2rem;
}

.fb-right a {
    transition: color 0.3s;
    text-decoration: none;
    color: inherit;
}

.fb-right a:hover {
    color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-intro {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 900px) {

    .tech-categories,
    .project-grid,
    .services-grid,
    .achievements-grid,
    .footer-nav-cards {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}