:root {
    --blue: #2387d9;
    --blue-dark: #1768ae;
    --blue-light: #eaf6ff;
    --cyan: #48c9dc;
    --text: #1d3448;
    --muted: #71808d;
    --white: #ffffff;
    --background: #f0f6fd;
    --border: #dcecf7;
    --shadow: 0 15px 45px rgba(36, 117, 168, 0.10);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4,
.navbar-brand {
    font-family: "Poppins", sans-serif;
}

a {
    text-decoration: none;
}

.section-padding {
    padding: 110px 0;
}

.navbar {
    padding: 16px 0;
    background: rgba(240, 246, 253, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 236, 247, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(36, 117, 168, 0.08);
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text) !important;
}

.brand-logo {
    flex-shrink: 0;
}

.navbar-brand span:last-child {
    color: var(--blue);
}

.navbar-nav {
    gap: 4px;
}

.navbar-nav .nav-item {
    list-style: none;
}

.nav-link {
    color: #657887 !important;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue) !important;
    background: rgba(35, 135, 217, 0.06);
}

.nav-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--blue);
    border: 1.5px solid var(--cyan);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: none !important;
    font-size: 26px;
    color: var(--blue);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
    background: radial-gradient(ellipse at 50% 0%, #deeeff 0%, var(--background) 60%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 30px;
    align-items: center;
    min-height: calc(100vh - 180px);
}

.hero-text-col {
    z-index: 2;
}

.hero-greeting {
    font-size: 20px;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.hero-name {
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-tagline em {
    font-style: normal;
    color: var(--cyan);
    font-weight: 600;
}

.hero-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 350px;
}

.hero-links-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(36, 117, 168, 0.08);
}

.hero-links-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 16px;
}

.hero-links-card a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(220, 236, 247, 0.5);
    transition: all 0.3s ease;
}

.hero-links-card a:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-links-card a:hover {
    color: var(--blue);
    padding-left: 6px;
}

.link-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.github-icon {
    background: #f0f0f0;
    color: #333;
}

.ig-icon {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #e1306c;
}

.li-icon {
    background: #e8f4fd;
    color: #0077b5;
}

.about-link-icon {
    background: var(--blue-light);
    color: var(--blue);
}

.hero-photo-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    min-height: 520px;
}

.hero-photo-container {
    position: relative;
    width: 320px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-photo-bg {
    position: absolute;
    bottom: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d0e8ff, #b8dcf8);
    z-index: 0;
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(0 20px 40px rgba(34, 92, 126, 0.2));
    transition: transform 0.5s ease;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.floating-badge {
    position: absolute;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(45, 116, 156, 0.15);
    border-radius: 14px;
    font-size: 22px;
    animation: badgeFloat 4s ease-in-out infinite;
}

.badge-html {
    left: 10px;
    top: 80px;
    color: #e44d26;
    background: rgba(255, 240, 235, 0.9);
    animation-delay: 0s;
}

.badge-css {
    left: 0;
    bottom: 120px;
    color: #264de4;
    background: rgba(235, 240, 255, 0.9);
    animation-delay: 0.6s;
}

.badge-bootstrap {
    right: 10px;
    top: 60px;
    color: #7952b3;
    background: rgba(245, 240, 255, 0.9);
    animation-delay: 1.2s;
}

.badge-db {
    right: 0;
    bottom: 150px;
    color: #00758f;
    background: rgba(230, 248, 255, 0.9);
    animation-delay: 1.8s;
}

.badge-code {
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    color: var(--blue);
    background: rgba(234, 246, 255, 0.9);
    animation-delay: 2.4s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.badge-code {
    animation: badgeFloatCenter 4s ease-in-out infinite;
    animation-delay: 2.4s;
}

@keyframes badgeFloatCenter {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

.hero-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.hero-info-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(36, 117, 168, 0.08);
    transition: transform 0.3s ease;
}

.hero-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.info-learning ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.info-learning li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.info-learning li span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    flex-shrink: 0;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.info-tags span {
    background: var(--blue-light);
    color: var(--blue);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.edu-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.edu-detail i {
    font-size: 28px;
    color: var(--blue);
    background: var(--blue-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.edu-detail strong {
    display: block;
    font-size: 15px;
    color: var(--text);
}

.edu-detail p {
    font-size: 13px;
    color: var(--muted);
    margin: 2px 0 0;
}

.edu-stats {
    display: flex;
    gap: 24px;
}

.edu-stats div {
    display: flex;
    flex-direction: column;
}

.edu-stats strong {
    font-size: 22px;
    color: var(--blue);
    font-family: "Poppins", sans-serif;
}

.edu-stats span {
    font-size: 11px;
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 55px;
}

.section-number {
    font-family: "Poppins", sans-serif;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
    padding-top: 8px;
}

.section-label {
    display: block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
}

.section-heading h2 span {
    color: var(--blue);
}

.about-card,
.about-highlight {
    height: 100%;
    border-radius: 25px;
    padding: 40px;
}

.about-card {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 24px;
    margin-bottom: 25px;
}

.about-card h3 {
    font-size: 25px;
    margin-bottom: 20px;
}

.about-card p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

.about-card strong {
    color: var(--blue);
}

.about-highlight {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #2387d9, #4bc8df);
    color: white;
}

.about-highlight > span {
    font-size: 13px;
    opacity: .85;
}

.about-highlight h3 {
    font-size: 32px;
    line-height: 1.25;
    margin: 18px 0 30px;
}

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

.learning-tags span {
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .17);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 12px;
}

.highlight-icon {
    position: absolute;
    right: -15px;
    bottom: -20px;
    font-size: 150px;
    opacity: .1;
}

.skills-section {
    background: #edf8ff;
}

.skill-card {
    height: 100%;
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.skill-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 22px;
    margin-bottom: 22px;
}

.skill-icon.blue {
    background: #e3f2ff;
    color: #258bd8;
}

.skill-icon.purple {
    background: #eee9ff;
    color: #7655d8;
}

.skill-icon.green {
    background: #e6f8ee;
    color: #35a66a;
}

.skill-icon.orange {
    background: #fff0df;
    color: #ed8b31;
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.skill-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    min-height: 65px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.skill-list span,
.project-tags span {
    background: #f2f8fc;
    color: #547184;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(38, 109, 148, .07);
    transition: all 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(38, 109, 148, .14);
}

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.database-project {
    background: linear-gradient(135deg, #dcefff, #bce1ff);
}

.bootstrap-project {
    background: linear-gradient(135deg, #e8e2ff, #d5cbff);
}

.tailwind-project {
    background: linear-gradient(135deg, #dff9ff, #bcecf6);
}

.project-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 28px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 20px;
    transform: rotate(-3deg);
    transition: all 0.4s ease;
}

.project-card:hover .project-preview {
    transform: rotate(0) scale(1.05);
}

.project-preview > i {
    font-size: 36px;
    color: var(--blue);
}

.project-preview span {
    display: block;
    color: #638093;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.project-preview strong {
    display: block;
    color: var(--text);
    font-size: 17px;
    margin-top: 3px;
}

.project-content {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 24px;
    flex: 1;
}

.project-category {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-content h3 {
    color: var(--text);
    font-size: 19px;
    margin: 8px 0;
}

.project-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.project-arrow {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.project-card:hover .project-arrow {
    background: var(--blue);
    color: white;
    transform: rotate(45deg);
}

.contact-section {
    padding-top: 40px;
}

.contact-card {
    position: relative;
    overflow: hidden;
    padding: 70px;
    border-radius: 30px;
    background: linear-gradient(135deg, #1d76c2, #43c5dd);
    color: white;
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.contact-card .section-label {
    color: white;
}

.contact-card h2 {
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.1;
    margin: 15px 0;
}

.contact-card h2 span {
    color: #c8f5ff;
}

.contact-card p {
    max-width: 550px;
    line-height: 1.8;
    opacity: .9;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 30px;
    color: white;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--blue);
    background: white;
}

.contact-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
}

.decoration-one {
    width: 400px;
    height: 400px;
    right: -150px;
    top: -150px;
}

.decoration-two {
    width: 250px;
    height: 250px;
    right: 100px;
    bottom: -170px;
}

footer {
    padding: 30px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.footer-logo span {
    color: var(--blue);
}

.footer-content p,
.footer-content > span {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

#backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    box-shadow: 0 10px 25px rgba(35, 135, 217, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 1199px) {
    .hero-layout {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .hero-name {
        font-size: clamp(32px, 4vw, 46px);
    }

    .hero-photo-container {
        width: 280px;
    }

    .hero-photo-bg {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 15px;
        padding: 20px;
        background: white;
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

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

    .hero {
        padding: 110px 0 50px;
    }

    .hero-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
    }

    .hero-text-col {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-photo-col {
        grid-column: 2;
        grid-row: 1;
        min-height: 400px;
    }

    .hero-info-col {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
    }

    .hero-info-card {
        flex: 1;
    }

    .hero-photo-container {
        width: 250px;
    }

    .hero-photo-bg {
        width: 230px;
        height: 230px;
    }

    .floating-badge {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 12px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text-col {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-greeting,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-photo-col {
        grid-column: 1;
        grid-row: 2;
        min-height: 380px;
    }

    .hero-info-col {
        grid-column: 1;
        grid-row: 3;
        flex-direction: column;
    }

    .hero-photo-container {
        width: 240px;
    }

    .hero-photo-bg {
        width: 220px;
        height: 220px;
    }

    .hero-name {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .floating-badge {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .badge-html { left: 15%; top: 50px; }
    .badge-css { left: 5%; bottom: 90px; }
    .badge-bootstrap { right: 12%; top: 40px; }
    .badge-db { right: 5%; bottom: 110px; }
    .badge-code { bottom: 30px; }

    .hero-links-card a {
        justify-content: center;
    }

    .section-heading {
        gap: 12px;
        margin-bottom: 35px;
    }

    .about-card,
    .about-highlight {
        padding: 30px;
    }

    .contact-card {
        padding: 45px 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}