/* ============================================
   PORTFOLIO STYLESHEET - OPTIMIZED VERSION
   ============================================ */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --accent-azure: #0078d4;
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #0078d4 0%, #06b6d4 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-4: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-5: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

/* Custom Cursor - Optimized for Performance */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: none; /* Removed for better performance */
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: none; /* Removed for better performance */
}

/* Disable custom cursor on mobile/tablet for better performance */
@media (max-width: 1024px) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
}

/* Particle Background - Optimized */
#particles-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce particle visibility on smaller screens */
@media (max-width: 768px) {
    #particles-bg {
        opacity: 0.5;
    }
}

/* Animated Gradient Background - Optimized */
.gradient-bg {
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -1;
    opacity: 0.3;
    background: radial-gradient(circle at 20% 50%, rgba(0, 120, 212, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    animation: gradientRotate 20s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes gradientRotate {
    to { transform: rotate(360deg); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled {
    padding: 15px 50px;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 3s ease-in-out infinite alternate;
    cursor: pointer;
}

@keyframes logoGlow {
    from { 
        filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.5));
        transform: scale(1);
    }
    to { 
        filter: drop-shadow(0 0 30px rgba(0, 242, 254, 0.8));
        transform: scale(1.05);
    }
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    font-weight: 500;
    cursor: pointer;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-4);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 100%;
}

.admin-btn {
    padding: 10px 25px;
    background: var(--gradient-3);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.admin-btn:hover::before {
    width: 300px;
    height: 300px;
}

.admin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 50px 80px;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroFadeIn 1s ease;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.typing-effect {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 30px;
    min-height: 40px;
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-pink);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1rem;
    animation: heroFadeIn 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: heroFadeIn 1s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

/* 3D Card Effect - Optimized */
.hero-visual {
    perspective: 1000px;
}

.floating-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    transition: transform 0.6s;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    25% { transform: translateY(-10px) rotateX(2deg) rotateY(2deg); }
    50% { transform: translateY(-20px) rotateX(-2deg) rotateY(-2deg); }
    75% { transform: translateY(-10px) rotateX(2deg) rotateY(-2deg); }
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 120, 212, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience Timeline */
.experience {
    padding: 100px 50px;
    background: var(--bg-secondary);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

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

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-cyan));
    animation: lineGrow 2s ease;
}

@keyframes lineGrow {
    from { height: 0; }
    to { height: 100%; }
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
    animation: slideIn 0.6s ease both;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

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

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-4);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 0 5px rgba(79, 172, 254, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 5px rgba(79, 172, 254, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(79, 172, 254, 0); }
    100% { box-shadow: 0 0 0 5px rgba(79, 172, 254, 0.2); }
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.timeline-date {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-company {
    color: var(--accent-pink);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.timeline-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-achievements {
    margin: 15px 0;
}

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

.tech-tag {
    padding: 4px 12px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: scale(1.1);
}

/* Skills Section */
.skills {
    padding: 100px 50px;
    background: var(--bg-primary);
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.skill-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.skill-tab.active {
    background: var(--gradient-4);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

.skill-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.skills-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.skills-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hard-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(79, 172, 254, 0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--gradient-4);
    border-radius: 15px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.skill-name {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-4);
    border-radius: 10px;
    animation: growWidth 2s ease both;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes growWidth {
    from { width: 0; }
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.soft-skill-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.soft-skill-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-pink);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.3);
}

.soft-skill-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Education */
.education {
    padding: 100px 50px;
    background: var(--bg-primary);
}

.education-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.edu-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.edu-card:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(124, 58, 237, 0.4);
}

.edu-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.edu-degree {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.edu-school {
    color: var(--accent-purple);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.edu-year {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.edu-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Certifications */
.certifications {
    padding: 100px 50px;
    background: var(--bg-secondary);
}

.cert-carousel {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.cert-carousel::-webkit-scrollbar {
    height: 8px;
}

.cert-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cert-carousel::-webkit-scrollbar-thumb {
    background: var(--gradient-5);
    border-radius: 10px;
}

.cert-card {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-5);
}

.cert-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(67, 233, 123, 0.3);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.cert-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-issuer {
    color: var(--accent-green);
    margin-bottom: 10px;
}

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

.cert-credential {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Projects */
.projects {
    padding: 100px 50px;
    background: var(--bg-primary);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--gradient-3);
    border-color: transparent;
    color: white;
}

.filter-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(240, 147, 251, 0.4);
}

.project-image {
    height: 250px;
    background: var(--gradient-3);
    position: relative;
    overflow: hidden;
}

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

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

.project-tech-stack {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
}

.tech-badge {
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    color: white;
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-features {
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 100px 50px;
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Form - Fixed Label Positioning */
.contact-form {
    margin-top: 50px;
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

/* Regular form inputs (non-admin) */
.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 15px;
    padding-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* Floating labels for contact form */
.contact-form .form-group label {
    position: absolute;
    left: 15px;
    top: 18px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 16px;
}

.contact-form .form-group input:focus + label,
.contact-form .form-group input:not(:placeholder-shown) + label,
.contact-form .form-group textarea:focus + label,
.contact-form .form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: var(--bg-secondary);
    padding: 0 10px;
    color: var(--accent-cyan);
}

.contact-form .form-group textarea {
    min-height: 150px;
    resize: vertical;
    padding-top: 20px;
}

.submit-btn,
.save-btn,
.add-btn {
    padding: 15px 40px;
    background: var(--gradient-4);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover,
.save-btn:hover,
.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.4);
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-4);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-5px) rotate(360deg);
    border-color: transparent;
}

.social-link span {
    position: relative;
    z-index: 1;
}

/* Admin Panel - Enhanced Styles */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100000;
    overflow-y: auto;
    overflow-x: hidden;
}

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

.admin-panel::-webkit-scrollbar {
    width: 10px;
}

.admin-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-panel::-webkit-scrollbar-thumb {
    background: var(--gradient-3);
    border-radius: 10px;
}

.admin-panel::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-4);
}

.admin-header {
    padding: 30px;
    background: var(--gradient-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 101;
}

.admin-header h2 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.close-admin {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-admin:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 5px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
}

.admin-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.admin-tab.active {
    background: var(--gradient-4);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Admin content */
.admin-content {
    padding: 30px;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Form styles */
.admin-section .form-group {
    margin-bottom: 25px;
    position: relative;
}

.admin-section label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-section input,
.admin-section textarea,
.admin-section select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.admin-section input:focus,
.admin-section textarea:focus,
.admin-section select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.admin-section input::placeholder,
.admin-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

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

.admin-section select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.admin-section select option {
    background: var(--bg-secondary);
    color: white;
}

/* Section Headers */
.admin-section h3 {
    color: var(--accent-cyan);
    margin-bottom: 25px;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-section h4 {
    color: var(--text-secondary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.admin-section h5 {
    color: var(--accent-cyan);
    margin: 10px 0;
    font-size: 0.9rem;
}

/* Buttons in Admin Panel */
.save-btn, .add-btn {
    padding: 15px 40px;
    background: var(--gradient-4);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.save-btn {
    width: 100%;
}

.add-btn {
    width: auto;
    padding: 10px 25px;
    margin-top: 0;
    font-size: 14px;
    background: var(--gradient-5);
}

.save-btn:hover, .add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.4);
}

.save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Item cards in admin */
.item-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.item-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.item-card button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.item-card button:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px !important;
        padding-right: 0 !important;
        left: 0 !important;
    }

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

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        width: 100%;
        right: -100%;
    }

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

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