/* ===== CSS Custom Properties ===== */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f172a;
    --bg-card: #111827;
    --bg-card-hover: #1e293b;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #c8ff00;
    --accent-secondary: #a3e635;
    --accent-coral: #ff6b6b;

    /* Gradients */
    --gradient-bg: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-glow: radial-gradient(circle, rgba(200, 255, 0, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(200, 255, 0, 0.2);
}

/* ===== Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Math Loading Animation ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.math-symbols-loader {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.math-symbol {
    font-size: 3rem;
    color: var(--accent-primary);
    opacity: 0.3;
    animation: symbolPulse 1.5s ease-in-out infinite;
}

.math-symbol:nth-child(1) {
    animation-delay: 0s;
}

.math-symbol:nth-child(2) {
    animation-delay: 0.2s;
}

.math-symbol:nth-child(3) {
    animation-delay: 0.4s;
}

.math-symbol:nth-child(4) {
    animation-delay: 0.6s;
}

.math-symbol:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes symbolPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.loader-equation {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: 'Times New Roman', serif;
}

.eq-loading {
    display: inline-block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    background-size: 200% 100%;
    animation: loadingBar 1.5s ease-in-out infinite;
}

@keyframes loadingBar {
    0% {
        background-position: 200% 0;
    }

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

.loader-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Floating Math Background ===== */
.math-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-symbol {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 2.5rem;
    color: var(--accent-primary);
    opacity: 0.06;
    animation: floatSymbol 8s ease-in-out infinite;
    animation-delay: var(--delay);
    font-family: 'Times New Roman', serif;
}

.float-symbol.matrix {
    font-size: 1.8rem;
}

@keyframes floatSymbol {

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

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* ===== Profile Image Styles ===== */
.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--accent-primary);
}

/* ===== Avatar Math Decorations ===== */
.avatar-math {
    position: absolute;
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-family: 'Times New Roman', serif;
    opacity: 0.8;
    animation: orbitMath 10s linear infinite;
}

.avatar-math {
    --radius: 200px;
    left: calc(50% + calc(cos(var(--angle)) * var(--radius)) - 15px);
    top: calc(50% + calc(sin(var(--angle)) * var(--radius)) - 15px);
}

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

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

/* ===== Achievements Section ===== */
.achievements {
    padding: var(--section-padding);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.achievement-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: rgba(200, 255, 0, 0.2);
}

.achievement-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.05);
}

.achievement-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
}

.achievement-badge .material-icons-outlined {
    font-size: 1.2rem;
}

.achievement-content {
    padding: 24px;
}

.achievement-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(200, 255, 0, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.achievement-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.achievement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.achievement-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.achievement-meta .material-icons-outlined {
    font-size: 1rem;
    color: var(--accent-primary);
}


.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== Typography ===== */
.highlight {
    color: var(--accent-primary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

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

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-text {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

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

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    position: relative;
    width: 350px;
    height: 350px;
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-glow);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.avatar-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 3px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-initials {
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0.3;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.5;
        top: 20px;
    }
}

/* ===== About Section ===== */
.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

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

.image-frame {
    position: relative;
    width: 300px;
    height: 300px;
}

.frame-glow {
    position: absolute;
    inset: -10px;
    background: var(--gradient-glow);
    border-radius: 20px;
}

.profile-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder span {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0.3;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Skills Section ===== */
.skills {
    padding: var(--section-padding);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

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

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.category-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out;
}

/* ===== Projects Section ===== */
.projects {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: rgba(200, 255, 0, 0.2);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 4rem;
    color: var(--accent-primary);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 8px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-content {
    padding: 24px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(200, 255, 0, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200, 255, 0, 0.05) 100%);
    border: 2px dashed rgba(200, 255, 0, 0.3);
}

.cta-content {
    text-align: center;
    padding: 40px;
}

.cta-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 16px;
}

.cta-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-padding);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-subheading {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    cursor: pointer;
}

.interest-tag input {
    display: none;
}

.interest-tag span {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.interest-tag input:checked+span,
.interest-tag:hover span {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(200, 255, 0, 0.02);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    background: var(--bg-primary);
    padding: 200px 0 40px;
    overflow: hidden;
}

.footer-curves {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 320px;
    pointer-events: none;
}

.curve {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100%;
}

.curve-outer {
    z-index: 1;
}

.curve-inner {
    z-index: 2;
}

.footer-content {
    position: relative;
    text-align: center;
}

.footer-name {
    margin-bottom: 24px;
}

.name-first,
.name-last {
    display: block;
    font-size: 1.5rem;
    font-style: italic;
}

.name-last {
    font-weight: 700;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1877f2;
    color: white;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.footer-social-link:nth-child(1) {
    background: #333;
}

.footer-social-link:nth-child(2) {
    background: #0077b5;
}

.footer-social-link:nth-child(3) {
    background: #ea4335;
}

.footer-social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-avatar {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-info {
        justify-items: center;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right var(--transition-normal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

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

    .about-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Hide scroll indicator on mobile to prevent overlap */
    .hero-scroll {
        display: none;
    }

    /* Hide avatar math decorations on mobile */
    .avatar-math {
        display: none;
    }

    /* Reduce floating symbols on mobile */
    .float-symbol {
        font-size: 1.5rem;
        opacity: 0.04;
    }
}


@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }

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

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    .avatar-initials {
        font-size: 4rem;
    }

    /* Hide scroll indicator on mobile to prevent overlap */
    .hero-scroll {
        display: none;
    }

    /* Hide avatar math decorations on small screens */
    .avatar-math {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    /* Reduce floating symbols on mobile */
    .float-symbol {
        font-size: 1.5rem;
        opacity: 0.04;
    }
}