html {
    scroll-behavior: smooth;
}

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

body {
    background: linear-gradient(135deg, #0f172a 0%, #111827 40%, #1e293b 100%);
    color: white;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: transform 0.35s ease;
}

.navbar.hide {
    transform: translateY(-100%);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #38bdf8;
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    position: relative;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s ease;
}

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

.nav-demo {
    border: 1px solid #38bdf8;
    padding: 8px 16px;
    border-radius: 999px;
    color: #38bdf8 !important;
    font-weight: 600;
}

.nav-demo::after {
    display: none;
}

.nav-demo:hover {
    color: #0f172a !important;
    background: #38bdf8;
}

.hero {
    min-height: 100vh;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
}

.badge {
    display: inline-block;
    margin-top: 8%;
    padding: 10px 18px;
    border: 1px solid #38bdf8;
    border-radius: 999px;
    color: #38bdf8;
    font-size: 14px;
}

.hero h1 {
    font-size: 64px;
    animation: slideUp 1s ease;
}

.hero h2 {
    color: #38bdf8;
    margin: 15px 0;
    animation: slideUp 1.4s ease;
    display: flex;
    justify-content: center;
    line-height: 1.6;
}

.typing-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26ch;
    max-width: 100%;
    min-height: 1.6em;
}

#typing {
    color: #38bdf8;
    display: block;
    width: 100%;
    min-height: 1.6em;
    text-align: center;
    white-space: nowrap;
}

.tech-line {
    margin-top: 15px;
    color: #cbd5e1;
    font-size: 18px;
    animation: slideUp 1.8s ease;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    animation: slideUp 1.8s ease;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #38bdf8;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #38bdf8;
    transition: all 0.3s ease;
    animation: slideUp 2.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.2);
}

.btn-live {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.btn-live:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.45);
}

.stats {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    min-width: 170px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px;
}

.stat h3 {
    font-size: 20px;
    color: #38bdf8;
    line-height: 1.35;
}

.stat p {
    color: #cbd5e1;
    margin-top: 4px;
    font-size: 14px;
}

.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: #38bdf8;
    border-radius: 50%;
    filter: blur(220px);
    opacity: 0.18;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: floatGlow 8s ease-in-out infinite;
}

.floating {
    position: absolute;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    font-weight: bold;
    z-index: 2;
}

.java {
    top: 20%;
    left: 15%;
    animation: float1 6s ease-in-out infinite;
}

.flutter {
    top: 25%;
    right: 15%;
    animation: float2 7s ease-in-out infinite;
}

.docker {
    bottom: 25%;
    left: 20%;
    animation: float3 8s ease-in-out infinite;
}

.postgres {
    bottom: 20%;
    right: 18%;
    animation: float4 7s ease-in-out infinite;
}

.showcase {
    padding: 120px 10%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: center;
}

.showcase-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.showcase-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
}

.showcase-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 14px;
    font-weight: bold;
}

.showcase-content h2 {
    font-size: 50px;
    margin-bottom: 14px;
}

.showcase-positioning {
    color: #7dd3fc;
    font-weight: 600;
    margin-bottom: 14px;
}

.showcase-content p {
    font-size: 17px;
    color: #cbd5e1;
    line-height: 1.8;
}

.showcase-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.showcase-tags span {
    padding: 10px 16px;
    border-radius: 999px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #93c5fd;
    font-size: 13px;
}

.showcase-buttons {
    margin-top: 26px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.section {
    padding: 100px 10%;
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 40px;
}

.architecture {
    padding-top: 70px;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.architecture-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 26px;
}

.architecture-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.arch-flow {
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 16px;
}

.arch-flow span {
    display: block;
    color: #38bdf8;
}

.architecture-summary {
    margin-top: 24px;
    color: #cbd5e1;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.featured-tech {
    padding: 120px 10%;
}

.section-title h2 {
    margin-bottom: 8px;
}

.section-title p {
    text-align: center;
    color: #cbd5e1;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.tech-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 30px;
    transition: 0.35s;
    overflow: hidden;
}

.tech-card::before {
    content: "";
    position: absolute;
    left: -120%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: 0.8s;
}

.tech-card:hover::before {
    left: 120%;
}

.tech-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 170, 255, 0.2);
    border-color: #3b82f6;
}

.tech-icon {
    font-size: 42px;
    margin-bottom: 20px;
}

.tech-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.tech-card p {
    color: #bdbdbd;
    line-height: 1.7;
    margin-bottom: 25px;
}

.tech-card span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: #3b82f6;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 60px;
}

.project-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0, 170, 255, 0.18);
}

.project-card-primary {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 20px 60px rgba(56, 189, 248, 0.12);
}

.project-card-compact {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 30px;
}

.project-image {
    overflow: hidden;
}

.project-image img {
    width: 100%;
    display: block;
    transition: 0.5s;
}

.project-card:hover img {
    transform: scale(1.04);
}

.project-content {
    padding: 36px;
}

.project-content h3 {
    font-size: 30px;
    margin-bottom: 14px;
}

.project-content p {
    color: #bfbfbf;
    line-height: 1.8;
    margin-bottom: 22px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.project-tags span {
    padding: 8px 14px;
    border-radius: 50px;
    background: #101827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
}

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

.btn-project {
    background: #3b82f6;
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #3b82f6;
    transition: 0.3s;
}

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

.btn-project-outline {
    border: 1px solid #3b82f6;
    color: #60a5fa;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-project-outline:hover {
    background: #3b82f6;
    color: white;
}

.card {
    background: #1e293b;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
}

.experience-card {
    max-width: 900px;
    margin: 0 auto;
}

.experience-card h3 {
    font-size: 28px;
}

.experience-card p {
    margin-top: 4px;
    color: #cbd5e1;
}

.experience-list {
    margin-top: 18px;
    padding-left: 20px;
    color: #dbeafe;
}

.experience-list li {
    margin-bottom: 10px;
}

.infra-compact p {
    text-align: center;
    font-size: 20px;
    color: #93c5fd;
    letter-spacing: 0.3px;
}

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

.contact-section p {
    font-size: 18px;
    color: #d1d5db;
    margin-bottom: 10px;
}

.contact-section a {
    color: #7dd3fc;
    text-decoration: none;
    border-bottom: 1px solid rgba(125, 211, 252, 0.45);
}

.contact-section a:hover {
    color: #bae6fd;
    border-bottom-color: #bae6fd;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 34px 20px;
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tech {
    margin-top: 8px;
    color: #93c5fd;
    font-size: 14px;
}

@keyframes floatGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes float1 {
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float2 {
    50% {
        transform: translateY(20px);
    }
}

@keyframes float3 {
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float4 {
    50% {
        transform: translateY(25px);
    }
}

@media (max-width: 1200px) {
    .showcase-content h2 {
        font-size: 42px;
    }

    .stat {
        min-width: 150px;
    }
}

@media (max-width: 1000px) {
    .showcase {
        grid-template-columns: 1fr;
        gap: 34px;
    }

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

    .project-card,
    .project-card-compact {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 150px;
    }

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

    .hero h2 {
        font-size: 28px;
    }

    .floating {
        display: none;
    }

    .navbar {
        flex-direction: column;
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .section,
    .featured-tech,
    .showcase {
        padding-left: 6%;
        padding-right: 6%;
    }

    .section h2 {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .project-content,
    .showcase-content {
        padding: 24px;
    }

    .project-content h3 {
        font-size: 26px;
    }

    .infra-compact p {
        font-size: 17px;
        line-height: 1.8;
    }
}

@media (max-width: 540px) {
    .badge {
        margin-top: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons a,
    .showcase-buttons a,
    .project-buttons a {
        text-align: center;
    }

    .stats {
        gap: 12px;
    }

    .stat {
        width: 100%;
    }

    .showcase-content h2 {
        font-size: 34px;
    }

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

    .typing-wrapper {
        width: 100%;
        max-width: 26ch;
        min-height: 3.2em;
    }

    #typing {
        white-space: normal;
        min-height: 3.2em;
    }
}