:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-pink: #d946ef;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --body-font: 'Calibri', 'Outfit', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-light);
    background: #020617;
    /* Very deep dark base */
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.35;
    z-index: -1;
    animation: moveBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: var(--accent);
    animation-duration: 18s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent-purple);
    /* Reverted */
    animation-duration: 25s;
    animation-delay: -5s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    background: var(--accent-warm);
    width: 400px;
    height: 400px;
    opacity: 0.15;
    animation-duration: 35s;
}

.blob-4 {
    bottom: 30%;
    left: 10%;
    background: var(--accent-tan);
    width: 500px;
    height: 500px;
    opacity: 0.15;
    animation-duration: 22s;
    animation-delay: -8s;
}

.blob-5 {
    top: 50%;
    right: 20%;
    background: var(--accent);
    width: 450px;
    height: 450px;
    opacity: 0.12;
    animation-duration: 30s;
}

.blob-6 {
    top: 10%;
    right: 50%;
    background: var(--accent-warm);
    width: 350px;
    height: 350px;
    opacity: 0.1;
    animation-duration: 28s;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    animation: slowScroll 120s linear infinite;
}

@keyframes slowScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 1000px;
    }
}


@keyframes moveBlob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(80px, 120px) scale(1.1) rotate(15deg);
    }

    66% {
        transform: translate(-120px, 80px) scale(0.9) rotate(-15deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-hidden {
    transform: translateY(-100%);
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 5%;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
}

.nav-links li {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.nav-links li:hover {
    transform: translateY(-5px);
    background: rgba(24, 105, 167, 0.2);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 0;
}


main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 20px;
}

section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.text-column {
    flex: 1;
}

.image-column {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent);
    font-weight: 800;
}

.animate-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-tan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero .highlight {
    color: var(--accent-tan);
    font-weight: 800;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    min-height: 2.5rem;
}



.project-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.github-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.github-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

.actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent), var(--accent-purple));
    color: #fff;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
    background: var(--accent);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.secondary-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.3);
}

.image-placeholder {
    width: 350px;
    height: 350px;
    background: var(--glass-bg);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.3);
    transition: all 0.5s ease;
}

.image-placeholder:hover {
    box-shadow: 0 0 45px rgba(14, 165, 233, 0.6);
    transform: scale(1.02);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.about-overhaul {
    padding: 3rem;
}

.about-header h2 {
    text-align: left;
    margin-bottom: 2.5rem;
}


.about-header {
    text-align: left;
    margin-bottom: 1.2rem;
}


.about-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    font-style: italic;
    opacity: 0.9;
}


.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-main-text p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-badge {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: 15px;
}

.info-badge i {
    font-size: 2rem;
    color: var(--accent);
}

.info-badge span {
    font-size: 0.9rem;
    font-weight: 600;
}

.info-badge:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent);
}

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

    .about-badges {
        grid-template-columns: 1fr 1fr;
    }
}


/* Skill Filters */
.skill-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.skill-card.hidden {
    display: none;
}


/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
    perspective: 1000px;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card:active {
    transform: translateY(-10px) scale(1.1);
    transition: transform 0.1s;
}


.hexagon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.hexagon-container img {
    width: 45%;
    height: 45%;
    object-fit: contain;
    filter: brightness(1.1) grayscale(0.5) drop-shadow(0 0 8px var(--accent));
    transition: all 0.3s ease;
    z-index: 2;
}

.skill-card:hover .hexagon-container img {
    filter: brightness(1) grayscale(0) drop-shadow(0 0 12px var(--accent));
    transform: scale(1.15);
}



.skill-card i {
    font-size: 3rem;
    color: #fff;
    transition: all 0.3s ease;
}

.skill-card:hover i {
    transform: translateZ(30px);
    text-shadow: 0 0 20px var(--accent);
}

.cpp .hexagon-container {
    border-color: rgba(0, 89, 156, 0.3);
    box-shadow: 0 0 15px rgba(0, 89, 156, 0.1);
}

.java .hexagon-container {
    border-color: rgba(248, 152, 32, 0.3);
    box-shadow: 0 0 15px rgba(248, 152, 32, 0.1);
}

.c .hexagon-container {
    border-color: rgba(168, 185, 204, 0.3);
    box-shadow: 0 0 15px rgba(168, 185, 204, 0.1);
}

.python .hexagon-container {
    border-color: rgba(55, 118, 171, 0.3);
    box-shadow: 0 0 15px rgba(55, 118, 171, 0.1);
}

.html .hexagon-container {
    border-color: rgba(227, 79, 38, 0.3);
    box-shadow: 0 0 15px rgba(227, 79, 38, 0.1);
}

.react .hexagon-container {
    border-color: rgba(97, 219, 251, 0.3);
    box-shadow: 0 0 15px rgba(97, 219, 251, 0.1);
}

.sql .hexagon-container {
    border-color: rgba(0, 117, 143, 0.3);
    box-shadow: 0 0 15px rgba(0, 117, 143, 0.1);
}

.excel .hexagon-container {
    border-color: rgba(33, 115, 70, 0.3);
    box-shadow: 0 0 15px rgba(33, 115, 70, 0.1);
}

.svg-skill-icon {
    width: 3rem;
    height: 3rem;
    fill: #fff;
    filter: drop-shadow(0 0 8px var(--accent));
}

.skill-card:hover .hexagon-container {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05) translateZ(20px);
}



.hexagon-text {
    font-size: 1.8rem;
    font-weight: 800;
    z-index: 1;
    pointer-events: none;
    color: #fff;
}

.skill-card:hover .hexagon-container {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

@keyframes gearSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.skill-card.cpp:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.skill-card.java:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.skill-card.c:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.skill-card.python:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.skill-card.html:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.skill-card.react:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.skill-card.sql:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.skill-card.excel:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

/* Certifications */
.cert-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cert-card {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    transition: transform 0.3s, border-left-color 0.3s;
    border-left: 6px solid var(--accent);
}

.cert-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cert-card p {
    opacity: 0.8;
    font-size: 1.1rem;
}

.cert-card:hover {
    transform: scale(1.03);
    border-left-color: var(--accent-tan);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
}

.project-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.project-img {
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
}

.project-img i {
    color: #fff;
    filter: drop-shadow(0 0 10px var(--accent));
}

.project-card:hover .project-img i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--accent));
}

.project-card h3 {
    font-size: 1.6rem;
}

.project-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.small-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    align-self: flex-start;
}

/* Contact and Socials */
#contact {
    text-align: center;
}

#contact {
    text-align: center;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--glass-bg);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.social-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2) sepia(1) hue-rotate(160deg) saturate(4) contrast(1.1) drop-shadow(0 0 10px var(--accent));
    z-index: 2;
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: grayscale(0) brightness(1) drop-shadow(0 0 15px var(--accent));
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-15px) rotate(360deg);
    box-shadow: 0 15px 30px rgba(51, 36, 4, 0.4);
    border-color: transparent;
}

.social-icon:hover::before {
    transform: scale(1);
}

.contact-info {
    text-align: center;
    font-size: 1.4rem;
    margin-top: 2.5rem;
}

footer {
    text-align: center;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
        margin-top: 2rem;
    }

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

    .actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        justify-content: center;
    }

    h2 {
        font-size: 2.5rem;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Layout Update */
.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 900px) {
    .contact-layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .contact-form-container {
        flex: 1.5;
        padding-right: 2rem;
        border-right: 1px solid var(--glass-border);
    }

    .contact-info {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-info p {
        font-size: 1.1rem;
        opacity: 0.9;
    }
}

/* Contact Form Styling */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--text-light);
    font-family: var(--body-font);
    transition: all 0.3s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(140, 114, 144, 0.786);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
}

.status-error {
    color: #3c3756;
}

.status-success {
    color: #38ef7d;
}

.mt-top {
    margin-top: 2rem;
}