/* =========================================================
   Variables & Reset
   ========================================================= */
:root {
    --primary-color: #00e5ff;
    /* Neon Cyan */
    --secondary-color: #ff00ff;
    /* Neon Magenta */
    --bg-dark: #050011;
    /* Deep violet/black */
    --bg-mid: #1a0033;
    /* Dark neon purple */
    --bg-light: #330066;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    cursor: none;
    /* Hide default cursor to use custom */
}

/* =========================================================
   Custom Cursor & Background
   ========================================================= */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--bg-mid) 0%, var(--bg-dark) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation: floating 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.8), transparent);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.8), transparent);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.8), transparent);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-5%, -5%) scale(0.9);
    }
}

/* =========================================================
   Typography & Reusable Classes
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

.section-padding {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title span {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

.glass-panel {
    background: rgba(10, 0, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 20px rgba(255, 0, 255, 0.05);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3), inset 0 0 20px rgba(255, 0, 255, 0.1);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.glass-panel:hover::before {
    left: 150%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--primary-color), inset 0 0 10px var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.primary-btn:hover::before {
    opacity: 0.2;
}

.primary-btn:hover {
    box-shadow: 0 0 25px var(--primary-color), inset 0 0 15px var(--primary-color);
    text-shadow: 0 0 10px #fff;
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--secondary-color), inset 0 0 10px var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

.secondary-btn:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 25px var(--secondary-color), inset 0 0 15px var(--secondary-color);
    text-shadow: 0 0 10px #fff;
    transform: translateY(-3px);
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 10%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: none;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.name {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.typing-text {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.social-links a:hover {
    background: rgba(0, 229, 255, 0.1);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--primary-color), inset 0 0 10px var(--primary-color);
    text-shadow: 0 0 5px #fff;
}

.hero-image {
    position: relative;
    z-index: 10;
}

.img-container {
    width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape .circle {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.2;
    filter: blur(20px);
    animation: pulse 4s infinite alternate;
}

.abstract-shape .glass-card {
    width: 250px;
    height: 350px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(5deg);
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.abstract-shape .glass-card i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.img-container:hover .glass-card {
    transform: rotate(0deg) scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

/* =========================================================
   About Section
   ========================================================= */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.objective {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
    color: #fff;
}

.objective i {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0 10px;
    opacity: 0.7;
}

.personal-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(233, 64, 87, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.info-item h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-item p {
    font-weight: 500;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.interpersonal-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tag i {
    color: var(--secondary-color);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* =========================================================
   Education Section (Timeline)
   ========================================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 10px;
}

.score {
    display: inline-block;
    background: rgba(233, 64, 87, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* =========================================================
   Skills Section
   ========================================================= */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
    gap: 1rem;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
    transition: var(--transition);
}

.skill-card:hover i {
    transform: scale(1.1);
}

.cert-list {
    list-style: none;
    padding: 2rem;
}

.cert-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
}

.cert-list li:last-child {
    margin-bottom: 0;
}

.cert-list li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    min-width: 25px;
}

.achievement-hr {
    height: 1px !important;
    background: var(--glass-border);
    margin: 1.5rem 0 !important;
}

.achievement {
    color: #e0e0e0;
}

/* =========================================================
   Projects Section
   ========================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(233, 64, 87, 0.3);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(233, 64, 87, 0.2), rgba(242, 113, 33, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.project-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-stack span {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #dedede;
}

/* =========================================================
   Contact Section
   ========================================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--transition);
}

.method:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    transform: translateX(5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(233, 64, 87, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.method-text h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.method-text span {
    font-weight: 500;
}

/* Form Styles */
.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    pointer-events: none;
    background: var(--bg-dark);
    padding: 0 5px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
}

/* Floating label effect */
.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    cursor: none;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    padding: 2rem 10%;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================================
   Animation Classes (Triggered by JS)
   ========================================================= */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.hidden:nth-child(odd) {
    transform: translateX(-50px);
}

.timeline-item.hidden:nth-child(even) {
    transform: translateX(50px);
}

.timeline-item.show {
    transform: translateX(0);
}

/* =========================================================
   Responsive Design
   ========================================================= */
@media screen and (max-width: 992px) {
    .section-padding {
        padding: 80px 5%;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 3rem;
    }

    .name {
        font-size: 3.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-dot {
        left: 22px !important;
    }

    .timeline-item.hidden:nth-child(odd),
    .timeline-item.hidden:nth-child(even) {
        transform: translateY(30px);
    }
}

@media screen and (max-width: 768px) {

    /* Touch devices don't need custom cursor, it might be buggy */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body,
    a,
    button,
    .submit-btn {
        cursor: auto !important;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        cursor: pointer !important;
    }

    .name {
        font-size: 2.8rem;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .img-container {
        width: 300px;
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .name {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .img-container {
        width: 250px;
        height: 250px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}