/* ============================================
   PORTFOLIO — MUHAMMED THAHA UWAIS
   Modern Dark Theme with Glassmorphism
   ============================================ */

/* ====== CSS VARIABLES ====== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);

    --accent: #22d3ee;
    --accent-secondary: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    --accent-glow: 0 0 30px rgba(34, 211, 238, 0.25);

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

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== RESET & BASE ====== */
::selection {
    background-color: var(--accent);
    color: var(--bg-primary);
}

::-moz-selection {
    background-color: var(--accent);
    color: var(--bg-primary);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ====== CUSTOM SCROLLBAR ====== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

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

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.accent {
    color: var(--accent);
}

/* ====== GLASS CARD ====== */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(34, 211, 238, 0.15);
    box-shadow: var(--accent-glow);
    transform: translateY(-4px);
}

/* ====== SECTION TITLE ====== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: -0.02em;
}

/* ====== BUTTON ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
    color: var(--bg-primary);
}

/* ====== CUSTOM CURSOR ====== */
@media (pointer: fine) {
    *, *::before, *::after, ::-webkit-scrollbar, ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track {
        cursor: none !important;
    }
}

@media (pointer: coarse), (hover: none), (max-width: 768px) {
    .cursor-wrapper, .outline-wrapper {
        display: none !important;
    }
}

.cursor-wrapper, .outline-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}
.cursor-wrapper {
    z-index: 10000;
}

.custom-cursor {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* Hover effects */
body.cursor-hover .custom-cursor {
    transform: translate(-50%, -50%) scale(0);
}

body.cursor-hover .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(34, 211, 238, 0.1);
    border-color: transparent;
}

/* ====== SCROLL PROGRESS BAR ====== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    width: 0%;
    z-index: 9999;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    transition: width 0.15s ease-out;
}

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

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-time {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 0.5s forwards 0.3s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

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

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

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ====== HERO ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 60%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ====== STATUS BADGE ====== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981; /* Tailwind Emerald */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.4);
    animation: pulseDot 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.status-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

@keyframes pulseDot {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.hero-socials a:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ====== ABOUT ====== */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 1;
}

.image-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: 0;
    opacity: 0.6;
    filter: blur(8px);
    animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.7;
    }
}

.about-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
    text-align: justify;
}

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

.about-stats {
    display: flex;
    gap: 20px;
    margin: 32px 0;
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
}

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

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent);
}

.timeline-content {
    padding: 28px;
}

.timeline-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.timeline-date,
.timeline-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 16px;
    margin-top: 8px;
}

.timeline-responsibilities {
    margin-top: 16px;
    padding-left: 20px;
}

.timeline-responsibilities li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.timeline-responsibilities li::marker {
    color: var(--accent);
}

/* ====== SKILLS ====== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 28px 20px;
    text-align: center;
}

.skill-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.skill-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ====== PROJECTS ====== */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-secondary);
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border-color: transparent;
}

.project-scroll-wrapper {
    overflow: hidden;
}

.project-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
}

.project-track::-webkit-scrollbar {
    height: 6px;
}

.project-track::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.project-track::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.project-track.hidden {
    display: none;
}

.project-card {
    min-width: 320px;
    max-width: 360px;
    padding: 28px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

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

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.project-tech span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
}

/* ====== EDUCATION ====== */
.education-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 36px;
    max-width: 700px;
    margin: 0 auto;
}

.education-icon {
    font-size: 2.5rem;
    color: var(--accent);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
}

.education-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.education-university {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.education-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.education-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ====== CERTIFICATIONS ====== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.cert-card {
    padding: 32px;
    text-align: center;
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.cert-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
}

.cert-link:hover {
    color: var(--accent-secondary);
}

/* ====== CONTACT ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    font-size: 1.4rem;
    color: var(--accent);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
    text-decoration: none;
}

.contact-icon:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--accent-glow);
}

.email-copy-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-email-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 2px;
    transition: var(--transition);
}

.copy-email-icon:hover {
    color: var(--accent);
}

.copy-email-icon.copied {
    color: #10b981;
}

.contact-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    padding: 36px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

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

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

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

/* ====== FOOTER ====== */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 4px;
}

.footer-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.copy-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.copy-link-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.copy-link-btn.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* ====== TOAST NOTIFICATION ====== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 90px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}

/* ====== SCROLL ANIMATIONS ====== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transition: var(--transition-slow);
        border-left: 1px solid var(--border-glass);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .about-stats {
        justify-content: center;
    }

    .about-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: justify;
    }

    .education-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .education-university {
        justify-content: center;
    }

    .education-meta {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 80px 0;
    }

    .hero-name {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .about-stats {
        flex-direction: column;
    }

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

    .project-card {
        min-width: 280px;
    }

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

    .timeline {
        padding-left: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}