/* ============================================
   MANU GOEL - Portfolio CSS
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --gradient: linear-gradient(135deg, #6c5ce7, #00cec9);
    --gradient-hover: linear-gradient(135deg, #5a4bd1, #00b5b0);
    --dark: #0f0f1a;
    --dark-card: #1a1a2e;
    --dark-lighter: #2d2d44;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b8;
    --white: #ffffff;
    --bg-light: #f8f9fe;
    --bg-section: #f0f1f8;
    --card-shadow: 0 10px 40px rgba(108, 92, 231, 0.08);
    --card-shadow-hover: 0 20px 60px rgba(108, 92, 231, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background: var(--white);
}

#page-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ---------- Utility Classes ---------- */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-icon {
    color: var(--primary);
}

.btn-gradient {
    background: var(--gradient);
    border: none;
    color: var(--white);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    background: var(--gradient-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.35);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-padding {
    padding: 100px 0;
    overflow-x: hidden;
}

.bg-light-custom {
    background: var(--bg-light);
}

/* ---------- Section Headers ---------- */
.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    margin: 0 2px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link {
    color: #555 !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary) !important;
    background: rgba(108, 92, 231, 0.08);
}

.navbar-toggler {
    padding: 6px 10px;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px;
}

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

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
    width: 1.2em;
    height: 1.2em;
}

.navbar.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.3) !important;
}

.navbar.scrolled .navbar-toggler-icon {
    filter: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a3e 50%, #2d1b69 100%);
    position: relative;
    overflow: hidden;
    max-width: 100vw;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    max-width: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0.15;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

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

.hero-greeting {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 300;
}

.hero-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

/* Code Window Animation */
.code-window {
    background: var(--dark-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.code-header {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 8px;
}

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

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28ca42;
}

.code-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.code-keyword {
    color: #c792ea;
}

.code-class {
    color: #ffcb6b;
}

.code-string {
    color: #c3e88d;
}

.code-number {
    color: #f78c6c;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(108, 92, 231, 0.06);
}

.about-stat {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.about-text p i {
    position: absolute;
    left: 0;
    top: 6px;
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 25px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.06);
}

.timeline-content:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.timeline-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.timeline-company {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 4px;
}

.bg-gradient-badge {
    background: var(--gradient) !important;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 6px 14px;
}

.bg-location-badge {
    background: rgba(108, 92, 231, 0.1) !important;
    color: var(--primary) !important;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 6px 14px;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skill-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.06);
    text-align: center;
}

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

.skill-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.skill-category {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.skill-level {
    margin-bottom: 15px;
}

.skill-level h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.skill-tag.proficient {
    background: rgba(108, 92, 231, 0.12);
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.skill-tag.experienced {
    background: rgba(0, 206, 201, 0.1);
    color: #00a8a3;
    border: 1px solid rgba(0, 206, 201, 0.2);
}

.skill-tag.familiar {
    background: rgba(253, 121, 168, 0.1);
    color: var(--accent);
    border: 1px solid rgba(253, 121, 168, 0.2);
}

.skill-tag.framework {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.15);
}

.skill-tag.tool {
    background: rgba(0, 206, 201, 0.08);
    color: #00a8a3;
    border: 1px solid rgba(0, 206, 201, 0.15);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--card-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.06);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

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

.edu-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--white);
}

.edu-degree {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.edu-school {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.edu-location,
.edu-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.edu-gpa {
    margin-top: 15px;
}

.edu-gpa span {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */
.achievement-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    box-shadow: var(--card-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.06);
}

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

.achievement-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.achievement-icon.trophy {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.achievement-icon.code {
    background: linear-gradient(135deg, #00cec9, #0ea5e9);
}

.achievement-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.achievement-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--card-shadow);
    height: 100%;
    border: 1px solid rgba(108, 92, 231, 0.06);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-info-item h6 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
    font-size: 0.85rem;
}

.contact-info-item a,
.contact-info-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    word-break: break-all;
}

.contact-info-item a:hover {
    color: var(--primary);
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(108, 92, 231, 0.06);
}

.form-control {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-floating label {
    color: #999;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
    background: var(--dark);
    padding: 40px 0;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

/* ============================================
   FORM ALERTS
   ============================================ */
.alert-success-custom {
    background: rgba(40, 202, 66, 0.1);
    border: 1px solid rgba(40, 202, 66, 0.2);
    color: #1a8c35;
    border-radius: 12px;
    padding: 16px 20px;
}

.alert-error-custom {
    background: rgba(255, 95, 87, 0.1);
    border: 1px solid rgba(255, 95, 87, 0.2);
    color: #cc4a42;
    border-radius: 12px;
    padding: 16px 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
    .hero-name {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-illustration {
        margin-top: 40px;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -28px;
        width: 16px;
        height: 16px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse .nav-link {
        color: #555 !important;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        color: var(--primary) !important;
        background: rgba(108, 92, 231, 0.08);
    }
}

@media (max-width: 767.98px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-cta .btn.me-3 {
        margin-right: 0 !important;
    }

    .about-card {
        padding: 25px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .skill-card,
    .education-card,
    .achievement-card {
        padding: 25px 20px;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 25px;
    }

    .code-window {
        max-width: 300px;
    }

    .code-body {
        font-size: 0.75rem;
        padding: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(108, 92, 231, 0.4);
    }
}

.timeline-dot {
    animation: pulse-glow 2s ease-in-out infinite;
}
