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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0F172A;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   Navbar
 ========================= */

.navbar {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    position: relative;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.logo span {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
}

.logo span em {
    color: #3B82F6;
    font-style: normal;
}

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

.nav-links a {
    color: #fff;
    font-weight: 500;
    transition: .3s;
}

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

.btn {
    background: #3B82F6;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    transition: .3s;
    font-weight: 600;
}

.btn:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

/* =========================
   Hero Section
 ========================= */

.hero {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
}

.hero-left {
    flex: 1.1;
}

.hero-tag {
    color: #3B82F6;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero h1 .accent {
    color: #3B82F6;
}

.hero-role {
    font-size: 22px;
    color: #93C5FD;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 560px;
    margin: 0 0 35px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
    display: inline-block;
}

.btn-primary {
    background: #3B82F6;
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #3B82F6;
    color: white;
}

.btn-secondary:hover {
    background: #3B82F6;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badges span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: #CBD5E1;
}

/* =========================
   Hero Right - Code Window
 ========================= */

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

.code-window {
    width: 100%;
    max-width: 460px;
    background: #0B1220;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
}

.code-window-bar {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.code-window-body {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.code-window-body p {
    color: #E2E8F0;
    margin-bottom: 6px;
    white-space: pre-wrap;
}

.code-window-body .indent {
    padding-left: 24px;
}

.tok-key {
    color: #C084FC;
}

.tok-var {
    color: #93C5FD;
}

.tok-prop {
    color: #7DD3FC;
}

.tok-str {
    color: #86EFAC;
}

/* =========================
   Brand Banner
 ========================= */

.brand-banner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.brand-banner-text h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.brand-banner-text .accent {
    color: #3B82F6;
}

.brand-banner-sub {
    color: #93C5FD;
    font-weight: 600;
    margin-bottom: 12px;
}

.brand-banner-desc {
    color: #CBD5E1;
    max-width: 480px;
}

.brand-banner-features {
    display: flex;
    gap: 25px;
    flex-shrink: 0;
}

.brand-feature {
    text-align: center;
}

.brand-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .35);
    color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.brand-feature p {
    color: #CBD5E1;
    font-size: 13px;
    max-width: 90px;
}

/* =========================
   Section Titles
 ========================= */

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

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-title p {
    color: #CBD5E1;
}

/* =========================
   About Section
 ========================= */

.about {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 0;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 2;
}

.about-content h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-content p {
    color: #CBD5E1;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-list li {
    color: #fff;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: #3B82F6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, .25);
}

.stat-card h3 {
    color: #3B82F6;
    font-size: 30px;
    margin-bottom: 8px;
}

.stat-card p {
    color: #CBD5E1;
}

/* =========================
   Skills Section
 ========================= */

.skills {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 0;
}

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

.skill-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: .3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: #3B82F6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, .2);
}

.skill-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.skill-icon.html {
    background: linear-gradient(135deg, #E44D26, #F16529);
}

.skill-icon.css {
    background: linear-gradient(135deg, #2965F1, #1E4FCB);
}

.skill-icon.js {
    background: linear-gradient(135deg, #F0DB4F, #C9A400);
    color: #1a1a1a;
}

.skill-icon.bootstrap {
    background: linear-gradient(135deg, #7952B3, #5A369B);
}

.skill-icon.wordpress {
    background: linear-gradient(135deg, #21759B, #1A5D7C);
}

.skill-icon.figma {
    background: linear-gradient(135deg, #A259FF, #F24E1E);
}

.skill-card p {
    color: #CBD5E1;
    font-weight: 500;
}

/* =========================
   Services
 ========================= */

.services {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 0;
}

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

.service-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 18px;
    transition: .35s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #3B82F6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, .25);
}

.service-card h3 {
    color: #3B82F6;
    margin-bottom: 15px;
}

.service-card p {
    color: #CBD5E1;
}

/* =========================
   Projects Section
 ========================= */

.projects {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 0;
}

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

.project-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    transition: .35s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #3B82F6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, .25);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0B1220;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    color: #3B82F6;
    margin-bottom: 12px;
    font-size: 22px;
}

.project-info p {
    color: #CBD5E1;
    margin-bottom: 18px;
}

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

.project-tags span {
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .3);
    color: #93C5FD;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
}

/* =========================
   Contact Section
 ========================= */

.contact {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 0;
    text-align: center;
}

.contact-content {
    margin-top: 20px;
}

.contact-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-content p {
    color: #CBD5E1;
    margin-bottom: 15px;
}

.contact-content a:not(.contact-cta) {
    color: #3B82F6;
    font-weight: 600;
}

.contact-content a:not(.contact-cta):hover {
    text-decoration: underline;
}

.contact-cta {
    margin-top: 10px;
}

/* =========================
   Footer
 ========================= */

.site-footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

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

.footer-content p {
    color: #94A3B8;
    font-size: 14px;
}

/* =========================
   Responsive
 ========================= */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        margin: 40px auto;
    }

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

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

    .about-container {
        flex-direction: column;
    }

    .brand-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }

    .brand-banner-desc {
        max-width: 100%;
        margin: 0 auto;
    }

    .brand-banner-features {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-stats {
        flex-direction: row;
        width: 100%;
    }

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

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

@media (max-width: 768px) {

    .nav-links,
    .navbar > .btn {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .navbar.open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: #0F172A;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 15px;
        padding: 20px;
        gap: 18px;
        text-align: center;
    }

    .navbar.open > .btn {
        display: inline-block;
        position: absolute;
        top: calc(100% + 200px);
        left: 50%;
        transform: translateX(-50%);
    }

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

    .hero-role {
        font-size: 18px;
    }
}

@media (max-width: 560px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* =========================================================
   STEP 1: UI/UX Foundation
   (Preloader, Scroll Progress, Back to Top, Navbar Animation)
========================================================= */

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0F172A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    transition: opacity .5s ease, visibility .5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: preloaderPulse 1.4s ease-in-out infinite;
}

.preloader-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(59, 130, 246, .15);
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: preloaderSpin .8s linear infinite;
}

@keyframes preloaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: .7;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #3B82F6, #93C5FD);
    z-index: 9998;
    transition: width .1s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #3B82F6;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 500;
    box-shadow: 0 10px 25px rgba(59, 130, 246, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #2563EB;
    transform: translateY(-4px);
}

/* Navbar scroll animation */
.navbar {
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease, padding .35s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, .75);
    backdrop-filter: blur(16px);
    border-color: rgba(59, 130, 246, .25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.nav-toggle span {
    transition: transform .3s ease, opacity .3s ease;
}

.navbar.open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   STEP 2: Hero Section
   (Typing Animation, Animated Buttons, Floating Shapes, CTA)
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(147, 197, 253, .08));
    filter: blur(2px);
    animation: floatShape 8s ease-in-out infinite;
}

.shape1 {
    width: 90px;
    height: 90px;
    top: 10%;
    left: 2%;
    animation-delay: 0s;
}

.shape2 {
    width: 50px;
    height: 50px;
    top: 65%;
    left: 12%;
    animation-delay: 1.5s;
}

.shape3 {
    width: 70px;
    height: 70px;
    top: 20%;
    right: 5%;
    animation-delay: 3s;
}

.shape4 {
    width: 35px;
    height: 35px;
    top: 75%;
    right: 18%;
    animation-delay: 4.5s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-25px) translateX(12px);
    }
}

.hero-role {
    min-height: 28px;
}

.typed-cursor {
    display: inline-block;
    color: #3B82F6;
    margin-left: 2px;
    animation: cursorBlink .8s steps(1) infinite;
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-animated::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: rgba(255, 255, 255, .25);
    transform: skewX(-25deg);
    transition: left .6s ease;
}

.btn-animated:hover::before {
    left: 140%;
}

.btn-primary.btn-animated {
    animation: ctaPulse 2.6s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, .45);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
    }
}

.btn-arrow {
    display: inline-block;
    font-style: normal;
    transition: transform .3s ease;
}

.btn-animated:hover .btn-arrow {
    transform: translateX(6px);
}

/* =========================================================
   STEP 3: About Section
   (Experience Counter, Animated Statistics, Layout)
========================================================= */

.about-counters {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.counter-item {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 28px 15px;
    text-align: center;
    transition: .3s;
}

.counter-item:hover {
    transform: translateY(-8px);
    border-color: #3B82F6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, .25);
}

.counter-item h3 {
    color: #3B82F6;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 8px;
}

.counter-item p {
    color: #CBD5E1;
    font-size: 14px;
    margin-bottom: 0;
}

/* =========================================================
   STEP 4: Skills Section
   (Animated Progress Bars, Icons, Hover Effects)
========================================================= */

.skill-card {
    cursor: pointer;
}

.skill-icon {
    transition: transform .35s ease;
}

.skill-card:hover .skill-icon {
    transform: rotate(-8deg) scale(1.08);
}

.skill-bar {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    margin-top: 14px;
    overflow: hidden;
}

.skill-bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #3B82F6, #93C5FD);
    transition: width 1.4s cubic-bezier(.16, 1, .3, 1);
}

.skill-bar-fill.animate {
    width: var(--target-width, 0%);
}

.skill-percent {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #93C5FD;
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-counters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}
