@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Selection */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 30px;
  right: 30px;
  display: none; /* important! */
  gap: 25px;
  font-family: var(--main-font);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  z-index: 9999;
}


.nav-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

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

.nav-item:hover,
.nav-item.active {
    color: #fff;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transform: translateY(-60px);
    overflow: hidden;
}

/* Morphing Background - Hidden */
.morph-bg {
    display: none;
}

/* Background Text */
.bg-text {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px #667eea;
    text-stroke: 2px #667eea;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    transition: all 0.8s ease;
    opacity: 0.2;
    font-family: 'Space Grotesk', sans-serif;
    animation: led-pulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px currentColor);
}

@keyframes led-pulse {
    0%, 100% {
        -webkit-text-stroke-color: #667eea;
        text-stroke-color: #667eea;
        filter: drop-shadow(0 0 15px #667eea) 
                drop-shadow(0 0 30px #667eea33);
    }
    25% {
        -webkit-text-stroke-color: #f093fb;
        text-stroke-color: #f093fb;
        filter: drop-shadow(0 0 15px #f093fb) 
                drop-shadow(0 0 30px #f093fb33);
    }
    50% {
        -webkit-text-stroke-color: #764ba2;
        text-stroke-color: #764ba2;
        filter: drop-shadow(0 0 15px #764ba2) 
                drop-shadow(0 0 30px #764ba233);
    }
    75% {
        -webkit-text-stroke-color: #00ffff;
        text-stroke-color: #00ffff;
        filter: drop-shadow(0 0 15px #00ffff) 
                drop-shadow(0 0 30px #00ffff33);
    }
}

/* Responsive background text */
@media (max-width: 1400px) {
    .bg-text {
        font-size: 60px;
    }
}

@media (max-width: 1200px) {
    .bg-text {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .bg-text {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .bg-text {
        font-size: 30px;
    }
}

/* Profile Section */
.profile-section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: all 1.2s ease 0.5s;
    z-index: 2;
    position: relative;
}

.profile-section.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.profile-image:hover .profile-photo {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.image-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover .image-glow {
    opacity: 1;
}

/* Name Animation */
.name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: #ffffff;
    z-index: 2;
    position: relative;
}

.char {
    display: inline-block;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #ffffff;
    cursor: pointer;
}

.char:hover {
    transform: translateY(-10px) scale(1.1);
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.char.animate {
    transform: translateY(0);
    opacity: 1;
}

.space {
    display: inline-block;
    width: 0.3em;
}

/* Subtitle */
.subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 100px;
    z-index: 2;
    position: relative;
}

.word {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    color: rgba(255, 255, 255, 0.8);
}

.word.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.scroll-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 3.5s forwards;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.scroll-hint:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-icon {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    border-radius: 1px;
}

@keyframes scrollPulse {
    0%, 100% { 
        transform: scaleY(1); 
        opacity: 0.6; 
    }
    50% { 
        transform: scaleY(1.5); 
        opacity: 1; 
    }
}

/* Work Section */
.work-section {
    min-height: auto;
    padding: 120px 40px 80px 40px;
    background: #000;
    position: relative;
}

.work-header {
    text-align: center;
    margin-bottom: 60px;
}

.work-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

.work-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.work-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-tab:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Category Sections */
.project-categories {
    position: relative;
    min-height: 400px;
}

.category-section {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.category-section.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

/* Detailed Projects Layout */
.detailed-projects {
    display: flex;
    flex-direction: column;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 0;
}

.detailed-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    min-height: 400px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInProject 0.8s ease forwards;
}

.detailed-project:nth-child(even) {
    direction: rtl;
}

.detailed-project:nth-child(even) > * {
    direction: ltr;
}

.detailed-project:nth-child(1) { animation-delay: 0.1s; }
.detailed-project:nth-child(2) { animation-delay: 0.2s; }
.detailed-project:nth-child(3) { animation-delay: 0.3s; }
.detailed-project:nth-child(4) { animation-delay: 0.4s; }
.detailed-project:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInProject {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Media Container */
.project-media-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-media-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Project Details */
.project-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.project-details h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.2;
}

.project-year {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.project-year:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.project-details p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tech {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    cursor: default;
}

.tech:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Project Links */
.project-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-link {
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-link:hover::before {
    left: 100%;
}

.project-link.primary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-link.primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.project-link.secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-link.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Website Preview */
.website-preview {
    position: relative;
    height: 400px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.project-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    transform: scale(1);
    transform-origin: top left;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.website-preview:hover .project-iframe {
    transform: scale(1.02);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.website-preview:hover .project-image {
    transform: scale(1.05);
}

/* Media Overlay */
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.website-preview:hover .media-overlay,
.video-showcase:hover .media-overlay {
    opacity: 1;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fullscreen-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Video Showcase */
.video-showcase {
    position: relative;
    height: 400px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-showcase:hover .video-poster {
    transform: scale(1.05);
}

.video-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.play-btn-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-btn-large:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-duration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.video-play-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Audio Showcase */
.audio-showcase {
    padding: 40px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(54, 162, 235, 0.1) 0%,
        rgba(75, 192, 192, 0.1) 100%);
    position: relative;
    border-radius: 12px;
}

.audio-player-large {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.audio-controls-large {
    display: flex;
    align-items: center;
    gap: 20px;
}

.play-pause-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-large:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.audio-progress-large {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.progress-bar-large {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.audio-time-large {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    min-width: 100px;
    font-weight: 500;
}

/* Audio Visualizer */
.audio-visualizer {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

.sound-wave-large {
    width: 4px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    animation: wave-large 1.5s ease-in-out infinite;
    animation-play-state: paused;
}

.sound-wave-large:nth-child(1) { animation-delay: 0s; }
.sound-wave-large:nth-child(2) { animation-delay: 0.1s; }
.sound-wave-large:nth-child(3) { animation-delay: 0.2s; }
.sound-wave-large:nth-child(4) { animation-delay: 0.3s; }
.sound-wave-large:nth-child(5) { animation-delay: 0.4s; }
.sound-wave-large:nth-child(6) { animation-delay: 0.5s; }

@keyframes wave-large {
    0%, 100% { 
        height: 20px; 
        background: rgba(255, 255, 255, 0.4);
    }
    50% { 
        height: 50px; 
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Article Showcase */
.article-showcase {
    padding: 40px;
    height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(153, 102, 255, 0.1) 0%,
        rgba(255, 206, 84, 0.1) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.article-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.article-preview-large {
    width: 100%;
    text-align: left;
}

.article-preview-large h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    align-items: center;
}

/* Category About CTA */
.category-about-cta {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-top: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-about-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-about-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.view-about-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-about-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* About Section */
.about-section {
    padding: 120px 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.about-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: white;
    margin-bottom: 15px;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.about-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 30px;
    font-weight: 400;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.about-highlights {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.highlight-item {
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    font-family: 'Space Grotesk', sans-serif;
}

.highlight-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-image-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    pointer-events: none;
}

/* Skills Section */
.skills-section {
    text-align: center;
}

.skills-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-category h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-category li:hover {
    color: rgba(255, 255, 255, 0.9);
    padding-left: 10px;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Education and Experience Section */
.education-experience {
    display: block;
}

.edu-connect-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: stretch; /* 🔧 fix height match */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Education section */
.education {
    position: relative;
}

.education h3 {
    font-size: 32px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
}

/* Enhanced Education Items */
.edu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.edu-item:hover {
    transform: translateY(-5px) translateX(5px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* Animated gradient border */
.edu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 400% 400%;
    animation: gradient-border 8s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.edu-item:hover::before {
    opacity: 0.5;
}

@keyframes gradient-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Content styling */
.edu-content {
    flex: 1;
    z-index: 1;
}

.edu-content h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.edu-content p {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.5;
}

.edu-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.edu-date::before {
    content: '📅';
    font-size: 14px;
}

/* Logo styling */
.edu-logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.edu-item:hover .edu-logo {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.edu-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.4s ease;
}

.edu-item:hover .edu-logo img {
    filter: brightness(1.1);
}

/* Add subtle animation to items */
.edu-item:nth-child(1) { animation: slideInRight 0.6s ease-out; }
.edu-item:nth-child(2) { animation: slideInRight 0.8s ease-out; }
.edu-item:nth-child(3) { animation: slideInRight 1s ease-out; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add accent colors for each institution */
.edu-item:nth-child(1) .edu-date { color: #D41B2C; background: rgba(212, 27, 44, 0.1); border-color: rgba(212, 27, 44, 0.2); }
.edu-item:nth-child(2) .edu-date { color: #F7941E; background: rgba(247, 148, 30, 0.1); border-color: rgba(247, 148, 30, 0.2); }
.edu-item:nth-child(3) .edu-date { color: #4ECDC4; background: rgba(78, 205, 196, 0.1); border-color: rgba(78, 205, 196, 0.2); }

.cta-section {
    position: relative;
    top: 0;
    padding: 50px 40px;
    background: none; /* ❌ Remove all background */
    border: none;     /* ❌ Remove border */
    border-radius: 0; /* ❌ Remove curve */
    text-align: center;
    backdrop-filter: none;
    box-shadow: none;
    transition: none;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.cta-section:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.12) 0%, 
        rgba(118, 75, 162, 0.08) 50%,
        rgba(240, 147, 251, 0.08) 100%);
        box-shadow: 0 8px 40px rgba(102, 126, 234, 0.25);
    transform: scale(1.02);
}

.cta-section h3 {
    font-size: 32px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Space Grotesk', sans-serif;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.about-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 280px;
    margin: 0 auto;
}

.about-cta-btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.about-cta-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.about-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.about-cta-btn.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.about-cta-btn.secondary:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}
/* === Fixed Sidebar Navigation === */
.sidebar-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-nav.visible {
  opacity: 1;
  visibility: visible;
}

/* Sidebar menu */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
}

/* === Sidebar Links === */
.sidebar-link {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  transition: none;
}

/* Icon and text */
.sidebar-icon {
  font-size: 24px;
  margin-bottom: 4px;
  filter: brightness(1.1);
  transition: transform 0.2s ease;
}

.sidebar-text {
  font-size: 10px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hover effect (icon bounce only) */
.sidebar-link:hover .sidebar-icon {
  transform: scale(1.1);
}

/* No glow or background on hover */
.sidebar-link:hover {
  background: transparent !important;
  box-shadow: none !important;
  color: white;
  transform: none;
}

/* Active link: clean white dot indicator */
.sidebar-link.active::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  margin-top: 6px;
}

.sidebar-link.active {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: white;
}

/* Optional: Divider between sections */
.sidebar-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 10px auto;
}

/* Hide hamburger if not used */
.sidebar-toggle {
  display: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.back-to-top span {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Animation States for Character Loading */
.loaded .char:nth-child(1) { transition-delay: 0.1s; }
.loaded .char:nth-child(2) { transition-delay: 0.15s; }
.loaded .char:nth-child(3) { transition-delay: 0.2s; }
.loaded .char:nth-child(4) { transition-delay: 0.25s; }
.loaded .char:nth-child(5) { transition-delay: 0.3s; }
.loaded .char:nth-child(6) { transition-delay: 0.35s; }
.loaded .char:nth-child(8) { transition-delay: 0.45s; }
.loaded .char:nth-child(9) { transition-delay: 0.5s; }
.loaded .char:nth-child(10) { transition-delay: 0.55s; }
.loaded .char:nth-child(11) { transition-delay: 0.6s; }
.loaded .char:nth-child(12) { transition-delay: 0.65s; }

.loaded .word:nth-child(1) { transition-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .edu-connect-wrapper {
        grid-template-columns: 1.5fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .about-main {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-highlights {
        justify-content: center;
    }
}

@media (max-width: 968px) {
    .edu-connect-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .cta-section {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .edu-item {
        flex-direction: column;
        text-align: center;
    }
    
    .edu-logo {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        top: 20px;
        right: 20px;
        gap: 20px;
    }
    
    .nav-item {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 0 20px;
        transform: translateY(-40px);
    }
    
    .name {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.2em;
        margin-bottom: 80px;
    }
    
    .work-section {
        padding: 80px 20px 60px 20px;
    }
    
    .work-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .detailed-projects {
        gap: 60px;
    }
    
    .detailed-project {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }
    
    .detailed-project:nth-child(even) {
        direction: ltr;
    }
    
    .project-details {
        padding: 20px 0;
        text-align: center;
    }
    
    .project-details h3 {
        font-size: 1.5rem;
    }
    
    .project-details p {
        font-size: 1rem;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
    }
    
    .project-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .website-preview,
    .video-showcase,
    .audio-showcase {
        height: 300px;
    }
    
    .about-section {
        padding: 80px 20px;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-highlights {
        gap: 30px;
    }
    
    .highlight-number {
        font-size: 2rem;
    }
    
    .about-photo {
        width: 250px;
        height: 250px;
    }
    
    .about-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-cta-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    /* Hide sidebar on mobile */
    .sidebar-nav {
        display: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        transform: translateY(-20px);
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 30px;
    }
    
    .name {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 60px;
    }
    
    .work-header {
        margin-bottom: 40px;
    }
    
    .work-title {
        font-size: 1.8rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-tab {
        width: 200px;
        text-align: center;
    }
    
    .detailed-projects {
        gap: 40px;
    }
    
    .project-details h3 {
        font-size: 1.3rem;
    }
    
    .website-preview,
    .video-showcase,
    .audio-showcase {
        height: 250px;
    }
    
    .article-showcase {
        padding: 30px;
    }
    
    .article-preview-large h4 {
        font-size: 1.2rem;
    }
    
    .audio-player-large {
        padding: 20px;
    }
    
    .play-btn-large {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .highlight-item {
        min-width: 120px;
    }
    
    .about-photo {
        width: 200px;
        height: 200px;
    }
    
    .category-about-cta {
        padding: 40px 20px;
        margin-top: 60px;
    }
}
/* Hide sidebar only when the hero-section is in view */
.hero-visible .sidebar-nav {
    display: none !important;
}
/* Hide sidebar smoothly */
.side-nav-container.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100px);
  transition: all 0.4s ease;
}
/* Enhanced Contact Panel Styles */
.contact-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 50%,
        rgba(240, 147, 251, 0.1) 100%);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 50px 40px;
    overflow-y: auto;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
}

.contact-panel.active {
    right: 0;
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.contact-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.contact-panel h3 {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shimmer 3s ease-in-out infinite;
}

@keyframes gradient-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.close-contact-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-contact-panel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.contact-item {
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-item:hover::before {
    left: 100%;
}

.contact-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.contact-value {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.copy-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: #fff;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.copy-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover::before {
    left: 100%;
}

.copy-btn:active {
    transform: translateY(0);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(240, 147, 251, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-link svg {
    width: 28px;
    height: 28px;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Success Animation */
.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    animation: copySuccess 2s ease-in-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes copySuccess {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-panel {
        width: 100%;
        right: -100%;
        padding: 40px 30px;
    }
    
    .contact-panel h3 {
        font-size: 1.8rem;
    }
    
    .contact-value {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .copy-btn {
        align-self: flex-start;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 55px;
        height: 55px;
    }
}
/* ===== MOBILE NAME FIX - Add this at the very end of your CSS file ===== */

/* For tablets and smaller devices */
@media (max-width: 768px) {
    .name {
        font-size: clamp(1.8rem, 6vw, 3rem) !important;
        letter-spacing: 0.03em !important;  /* Slightly reduced spacing */
    }
}

/* For mobile phones */
@media (max-width: 480px) {
    .name {
        font-size: clamp(1.5rem, 8vw, 2.5rem) !important;
        letter-spacing: 0.02em !important;  /* Even less spacing on very small screens */
    }
}

/* For very small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .name {
        font-size: clamp(1.3rem, 7vw, 2rem) !important;
        letter-spacing: 0.01em !important;  /* Minimal spacing */
    }
}

/* Optional: If you want to make the whole hero section more compact on mobile */
@media (max-width: 768px) {
    .hero-section {
        transform: translateY(-30px) !important;  /* Less vertical offset */
    }
    
    .profile-section {
        margin-bottom: 30px !important;  /* Less margin below profile */
    }
    
    .subtitle {
        margin-bottom: 60px !important;  /* Less margin below subtitle */
    }
}
