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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #07070d;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}

.section {
    padding: 110px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(16px);
    background: rgba(10,10,20,.55);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
}

.logo span {
    color: #9d4edd;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    transition: .3s;
}

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

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg,#7b2cbf,#c77dff);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 35px rgba(157,78,221,.35);
    transition: .3s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-small {
    padding: 11px 18px;
    font-size: .95rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 60px;
    align-items: center;
}

.subtitle {
    color: #bb86fc;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-description {
    color: #bfbfbf;
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.image-card {
    border-radius: 30px;
    padding: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 60px rgba(157,78,221,.18);
}

.image-card img {
    width: 100%;
    border-radius: 22px;
    display: block;
}

.card,
.project-card,
.skill-card,
.cert-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(15px);
    transition: .3s;
}

.card:hover,
.project-card:hover,
.skill-card:hover,
.cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(199,125,255,.5);
}

.card p {
    margin-bottom: 18px;
    color: #d0d0d0;
}

.skills-grid,
.projects-grid,
.cert-grid {
    display: grid;
    gap: 25px;
}

.skills-grid {
    grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
}

.skill-card {
    text-align: center;
    font-weight: 600;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
}

.project-card h3 {
    margin-bottom: 15px;
}

.project-card p {
    color: #cfcfcf;
    margin-bottom: 20px;
}

.project-card span {
    color: #bb86fc;
    font-size: .95rem;
    font-weight: 600;
}

.cert-grid {
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}

.contact-card {
    text-align: center;
}

.bg-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .15;
    z-index: 0;
}

.glow-1 {
    background: #7b2cbf;
    top: -150px;
    left: -150px;
}

.glow-2 {
    background: #c77dff;
    bottom: -150px;
    right: -150px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 950px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-image {
        max-width: 450px;
        margin: auto;
    }

    .section {
        padding: 80px 0;
    }
}

@media(max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}