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

html {
    scroll-behavior: smooth;
}

body {
    background: #050816;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

/* =========================================================
GLOBAL
========================================================= */

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

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

.section {
    width: 100%;
    padding: 120px 8%;
    position: relative;
    z-index: 2;
}

/* =========================================================
BACKGROUND
========================================================= */

.grid-overlay {
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

    background-size: 60px 60px;

    z-index: -5;
    pointer-events: none;
}

.blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    z-index: -4;
}

.blur-one {
    width: 450px;
    height: 450px;
    background: #00c2ff;
    top: -120px;
    left: -120px;
}

.blur-two {
    width: 450px;
    height: 450px;
    background: #8b5cf6;
    bottom: -120px;
    right: -120px;
}

/* =========================================================
NAVBAR
========================================================= */

.navbar {
    width: 100%;
    padding: 22px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 999;

    backdrop-filter: blur(18px);

    background:
        rgba(10, 14, 35, 0.7);

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

/* =========================================================
NAVIGATION
========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    position: relative;

    color:
        rgba(255,255,255,0.72);

    font-size: 0.95rem;
    font-weight: 500;

    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0%;
    height: 2px;

    background: #00c2ff;

    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

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

/* =========================================================
NAV ACTIONS
========================================================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-btn {
    padding: 10px 18px;

    border-radius: 14px;

    font-size: 0.88rem;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.github-btn {
    background:
        rgba(255,255,255,0.06);

    border:
        1px solid rgba(255,255,255,0.08);
}

.linkedin-btn {
    background:
        rgba(0,119,181,0.18);

    border:
        1px solid rgba(0,119,181,0.28);
}

.resume-btn {
    background:
        linear-gradient(
            135deg,
            #00c2ff,
            #8b5cf6
        );
}

.nav-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0,194,255,0.15);
}

.mobile-nav-panel {
    display: contents;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 194, 255, 0.35);
}

/* =========================================================
HERO
========================================================= */

.hero {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        160px 8%
        120px;

    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        12px 22px;

    border-radius: 999px;

    background:
        rgba(255,255,255,0.05);

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(16px);

    font-size: 0.9rem;
    font-weight: 600;

    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(56px, 10vw, 110px);

    font-weight: 900;

    line-height: 1.05;

    margin-bottom: 12px;
}

.hero h1 span {
    background:
        linear-gradient(
            135deg,
            #00c2ff,
            #8b5cf6
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 1.15rem;
    font-weight: 700;

    color:
        rgba(255,255,255,0.82);

    margin-bottom: 28px;
}

.hero h2 {
    min-height: 50px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 14px;
}

.hero-freelance-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 28px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 255, 150, 0.1);
    border: 1px solid rgba(0, 255, 150, 0.35);
    color: #00ff96;
    font-size: 0.95rem;
    font-weight: 600;
}

.freelance-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff96;
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.8);
    animation: pulse-open 1.8s ease-in-out infinite;
}

@keyframes pulse-open {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.hero-description {
    max-width: 860px;
    margin: 0 auto 38px;
    text-align: center;
}

/* =========================================================
HERO TAGS
========================================================= */

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 14px;

    margin-bottom: 38px;
}

.hero-tags span {
    padding:
        12px 18px;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.05);

    border:
        1px solid rgba(255,255,255,0.08);

    font-size: 0.88rem;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.hero-tags span:hover {
    transform: translateY(-2px);

    border-color:
        rgba(0,194,255,0.35);
}

/* =========================================================
BUTTONS
========================================================= */

.hero-buttons,
.project-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;

    margin-bottom: 34px;
}

.primary-btn,
.secondary-btn,
.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        15px 28px;

    border-radius: 16px;

    font-size: 0.95rem;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;

    position: relative;

    overflow: hidden;
}

.primary-btn {
    background:
        linear-gradient(
            135deg,
            #00c2ff,
            #8b5cf6
        );

    color: white;
}

.secondary-btn,
.project-btn {
    background:
        rgba(255,255,255,0.05);

    border:
        1px solid rgba(255,255,255,0.08);

    color: white;
}

.primary-btn::before,
.secondary-btn::before,
.project-btn::before {
    display: none !important;
}

.primary-btn:hover,
.secondary-btn:hover,
.project-btn:hover {
    transform: translateY(-2px);
}

/* =========================================================
SOCIAL LINKS
========================================================= */

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 24px;
}

.social-links a {
    color:
        rgba(255,255,255,0.72);

    font-size: 0.95rem;
    font-weight: 600;

    transition: 0.25s ease;
}

.social-links a:hover {
    color: #00c2ff;
}

/* =========================================================
SECTION HEADINGS
========================================================= */

.section-heading {
    margin-bottom: 60px;
    text-align: center;
}

.section-heading .hero-badge {
    margin: 0 auto 22px;
}

.section-heading h2 {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    margin-bottom: 18px;
}

.section-heading h2 span {
    color: #00c2ff;
}

.section-text,
.section-heading p,
.contact-left p,
.about-card .section-text,
.hero-description {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.9;
}

.section-heading p {
    max-width: 850px;
    margin: auto;
}

.section-text strong,
.contact-left p strong,
.about-card .section-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* =========================================================
COMMON CARDS
========================================================= */

.about-card,
.stat-card,
.feature-card,
.contact-card,
.project-card,
.expertise-card {
    background:
        rgba(255,255,255,0.04);

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(20px);

    border-radius: 28px;
}

/* =========================================================
ABOUT
========================================================= */

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(320px, 420px);

    gap: 32px;

    align-items: stretch;
}

.about-card {
    padding: 38px;
    height: 100%;
}

.about-card-badge {
    margin-bottom: 18px;
}

.about-status-line {
    margin: 0 auto 22px;
}

.about-card .section-text {
    margin: 0 0 20px;
    text-align: left;
}

.about-focus-tags {
    justify-content: flex-start;
    margin-bottom: 0;
}

.role-status-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 26px;
}

.role-status-block {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.role-status-current {
    border-color: rgba(0, 255, 150, 0.28);
    background: rgba(0, 255, 150, 0.08);
}

.role-status-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.role-status-block strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #00ff96;
}

.role-status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-status-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(79, 124, 255, 0.14);
    border: 1px solid rgba(120, 160, 255, 0.28);
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
}

.contact-role-tags {
    margin-bottom: 24px;
}

.section-text-last {
    margin-bottom: 28px;
}

.section-text-sm {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================================
STATS
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;

    height: 100%;
}

.stat-card {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;

    min-height: 160px;
}

.stat-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #00c2ff;
    margin-bottom: 12px;
}

.stat-card p {
    color:
        rgba(255,255,255,0.72);

    line-height: 1.6;

    font-size: 0.95rem;
}

/* =========================================================
FEATURED
========================================================= */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px;

    transition:
        transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 22px;
}

.feature-card h3 {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.feature-card p {
    color:
        rgba(255,255,255,0.72);

    line-height: 1.8;

    margin-bottom: 24px;
}

/* =========================================================
SKILLS
========================================================= */

.skills-section {
    position: relative;
    z-index: 2;
}

.skills-core-grid {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto 32px;
    padding: 0 8%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skills-core-card {
    padding: 28px;
    border-color: rgba(79, 124, 255, 0.2);
    background: linear-gradient(145deg, rgba(79, 124, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.skills-core-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.skills-core-header .expertise-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 0;
    font-size: 26px;
}

.skills-core-card h3 {
    margin-bottom: 0;
    font-size: 1.45rem;
}

.expertise-container,
.skills-grid {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 8%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.expertise-card {
    padding: 26px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 124, 255, 0.24);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.expertise-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 16px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.expertise-card h3 {
    margin-bottom: 18px;
    font-size: 1.25rem;
    font-weight: 800;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expertise-tags span {
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.expertise-tags .tag-highlight {
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.24), rgba(139, 92, 246, 0.18));
    border-color: rgba(120, 160, 255, 0.35);
    color: #ffffff;
}

/* =========================================================
CONTACT
========================================================= */

.contact-card {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;

    padding: 50px;
}

.contact-badge {
    margin-bottom: 20px;
}

.contact-left h2 {
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.contact-left h2 span {
    color: #00c2ff;
}

.contact-left p {
    margin-bottom: 34px;
    text-align: left;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding:
        18px 20px;

    border-radius: 16px;

    border:
        1px solid rgba(255,255,255,0.08);

    background:
        rgba(255,255,255,0.05);

    color: #ffffff;

    outline: none;
}

.contact-form textarea {
    min-height: 160px;
}

.contact-form button {
    padding: 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #00c2ff,
            #8b5cf6
        );

    color: white;

    font-weight: 700;
}

/* =========================================================
PROJECTS
========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 28px;
}

.project-card {
    padding: 32px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(79,124,255,0.24);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.project-card p {
    color:
        rgba(255,255,255,0.72);

    line-height: 1.8;

    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 24px;
}

.project-tags span {
    padding:
        10px 16px;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.05);

    font-size: 0.82rem;
    font-weight: 600;
}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .hero,
    .section {
        padding-left: 6%;
        padding-right: 6%;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 992px) {

    .navbar {
        flex-wrap: wrap;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav-panel {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        margin-top: 16px;
        padding: 16px;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 18px;
        background: rgba(10, 14, 35, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .navbar.menu-open .mobile-nav-panel {
        display: flex !important;
    }

    .navbar.menu-open .nav-links,
    .navbar.menu-open .nav-actions {
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }

    .navbar.menu-open .nav-actions {
        gap: 10px;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar.menu-open .nav-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .skills-core-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .featured-grid,
    .contact-card,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {

    .section {
        padding:
            80px 20px;
    }

    .hero {
        padding:
            120px 20px
            80px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .hero-role {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-tags span,
    .project-tags span {
        width: 100%;
        text-align: center;
    }

    .skills-core-grid,
    .skills-grid {
        padding: 0 20px;
    }

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

    .role-status-card {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .project-buttons {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn,
    .project-btn {
        width: 100%;
    }

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

    .contact-card,
    .expertise-card,
    .project-card,
    .feature-card,
    .about-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 42px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .contact-left h2 {
        font-size: 30px;
    }

    .section-text,
    .hero-description,
    .about-card .section-text,
    .feature-card p,
    .project-card p {
        font-size: 0.95rem;
    }
}
