/* Base Variables */
:root {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-glow: rgba(88, 166, 255, 0.15);

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;

    --accent-primary: #58a6ff;
    --accent-secondary: #bc8cff;
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --font-main: 'Outfit', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: #ec4899;
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width var(--transition-medium);
}

.section-title:hover::after {
    width: 100%;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-fast);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px var(--card-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-accent {
    color: var(--accent-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: width var(--transition-fast);
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(88, 166, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
}

header.scrolled {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 5px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--text-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    order: 1;
}

.hero-image {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    padding: 10px;
    border-radius: 50%;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 25px var(--card-glow);
    transition: transform var(--transition-medium);
}

.hero-image:hover img {
    transform: scale(1.05);
}

.greeting {
    color: var(--text-primary);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.hero-title.gradient-text-hero {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-tagline {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 25px;
    min-height: 3rem;
    white-space: nowrap;
}

.typed-text {
    color: var(--text-primary);
}

.cursor {
    display: inline-block;
    color: #a855f7;
    font-weight: 500;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    max-width: 600px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #a1a1aa;
    margin-bottom: 40px;
    margin-top: 15px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.4rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    transition: all var(--transition-fast);
}

.social-icon-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: #a855f7;
    color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-category h3 i {
    color: var(--accent-secondary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(88, 166, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(88, 166, 255, 0.2);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.3);
}

/* Projects Section */
.project-card {
    margin-bottom: 40px;
}

.project-card h3 {
    font-size: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    font-weight: 600;
}

.project-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.project-content li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    list-style-type: none;
}

.project-content li::before {
    content: '▹';
    color: var(--accent-primary);
    position: absolute;
    left: -20px;
    font-size: 1.2rem;
    top: -2px;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-primary);
}

/* Competitive Programming Section */
.cp-container {
    text-align: center;
    padding: 50px;
}

.cp-header {
    margin-bottom: 40px;
}

.cp-icon {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.cp-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cp-stat-box {
    padding: 25px 40px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 200px;
}

.cp-stat-box.leetcode h4 {
    color: #f89f1b;
}

.cp-stat-box.codechef h4 {
    color: #5B4638;
}

/* The text is light for codechef, so maybe #fff */
.cp-stat-box.codechef h4 {
    color: #fff;
}

.cp-stat-box .count {
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 10px;
}

.cp-stat-box .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.cp-focus h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.cp-focus .skill-tags {
    justify-content: center;
    margin-bottom: 20px;
}

.cp-analysis {
    color: var(--accent-secondary);
    font-style: italic;
}

/* Education and Certs Section */
.edu-certs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--accent-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    left: -40px;
    top: 30px;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.timeline-subtitle {
    color: var(--accent-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.timeline-meta {
    display: flex;
    gap: 10px;
}

.badge {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.outline {
    background: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

.styled-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li i {
    font-size: 1.2rem;
}

/* New Contact Section */
.new-contact {
    position: relative;
    background: var(--bg-color);
}

.contact-header {
    margin-bottom: 50px;
}

.get-in-touch-badge {
    display: inline-block;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #d8b4fe;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.new-contact-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fbcfe8, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-desc {
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0 auto;
    font-size: 1rem;
    max-width: 600px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.p-card {
    background: #2a1b3d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info-card {
    margin-bottom: 30px;
}

.contact-info-title,
.contact-form-title {
    font-size: 1.5rem;
    color: #f3e8ff;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: #d8b4fe;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.social-squares {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-square {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    font-size: 1.8rem;
    color: white;
    transition: transform var(--transition-fast);
}

.social-square:hover {
    transform: translateY(-5px);
}

.social-square.github {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
}

.social-square.linkedin {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.social-square.twitter {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.social-square.email {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.contact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-stat-card {
    text-align: center;
    padding: 20px;
}

.contact-stat-card h4 {
    font-size: 2rem;
    color: #f3e8ff;
    margin-bottom: 5px;
    font-weight: 800;
}

.contact-stat-card span {
    font-size: 0.85rem;
    color: #d8b4fe;
}

.contact-right .p-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.new-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group i {
    position: absolute;
    left: 15px;
    color: #a78bfa;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.form-group i.fa-user,
.form-group i.fa-envelope {
    top: 50%;
    transform: translateY(-50%);
}

.form-group i.fa-comment-dots {
    top: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #3b2353;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 15px 15px 45px;
    color: #f3e8ff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a78bfa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a855f7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(to right, #a855f7, #ec4899);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.submit-btn:hover {
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

.form-footer-text {
    text-align: center;
    font-size: 0.8rem;
    color: #a78bfa;
    margin-top: 15px;
    margin-bottom: 0;
}

.form-status {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 15px;
    display: none;
    transition: all var(--transition-fast);
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
    }

    .edu-certs-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-cta .btn {
        text-align: center;
    }

    .about-stats {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-stats {
        grid-template-columns: 1fr;
    }
}

/* Custom Cursor Replacement */
body,
a,
button,
.btn,
.mobile-menu-btn,
.social-icon-btn,
input,
textarea,
.nav-links li a {
    cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L24 19 L18 20.5 L22 27 L20 28 L16 21.5 L10 26 Z' fill='none' stroke='%23ec4899' stroke-width='4' opacity='0.5' stroke-linejoin='round'/%3E%3Cpath d='M10 10 L24 19 L18 20.5 L22 27 L20 28 L16 21.5 L10 26 Z' fill='none' stroke='%23fbcfe8' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 10 10, auto !important;
}

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

.cursor-dot,
.cursor-outline {
    display: none !important;
}