/* Enhanced Modern Portfolio CSS - Full Dynamic Package */

/* ==================== CSS Variables ==================== */
:root {
    /* Colors - Modern Teal/Cyan Professional Theme */
    --primary-color: #06b6d4;
    --secondary-color: #0891b2;
    --accent-color: #14b8a6;
    --dark-bg: #0a1628;
    --darker-bg: #050d1a;
    --card-bg: #1a2332;
    --text-primary: #f0f9ff;
    --text-secondary: #cffafe;
    --text-muted: #67e8f9;
    --border-color: #164e63;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #14b8a6 100%);
    --gradient-bg: linear-gradient(180deg, #0a1628 0%, #1a2332 100%);
    --gradient-card: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Added: Noise Texture for Premium Feel */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle noise pattern */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.07;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* ==================== Custom Cursor ==================== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
    box-shadow: 0 0 10px var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-dot.hover,
.cursor-outline.hover {
    transform: scale(1.5);
}

/* ==================== Scroll Progress Indicator ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10001;
    transition: width 0.1s ease;
}

/* ==================== Particle Canvas ==================== */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

/* ==================== Animated Gradient Mesh ==================== */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(8, 145, 178, 0.10) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    33% { transform: scale(1.1) translate(5%, 10%); opacity: 0.4; }
    66% { transform: scale(1.05) translate(-5%, 5%); opacity: 0.35; }
}

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

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

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

.section {
    padding: var(--section-padding);
    position: relative;
}

/* ==================== Enhanced Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

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

.logo-dot {
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition-smooth);
}

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

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

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

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.2) 0%, transparent 60%),
                radial-gradient(circle at 0% 100%, rgba(20, 184, 166, 0.2) 0%, transparent 60%),
                radial-gradient(circle at 100% 100%, rgba(8, 145, 178, 0.2) 0%, transparent 60%);
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
    font-size: 26px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-tagline {
    font-size: 18px !important;
    color: var(--text-muted) !important;
    margin-top: 10px !important;
    font-weight: 400;
}

.hero-content p span {
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-color);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(6, 182, 212, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out, float 3s ease-in-out infinite 1s;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.badge-icon {
    font-size: 20px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* Updated Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #22d3ee, #0ea5e9, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
    animation: gradientFlow 5s ease infinite;
}

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

.hero .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 60px 0;
}

.hero .social-links a {
    width: 50px;
    height: 50px;
    background: rgba(26, 35, 50, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.hero .social-links a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    animation: expand 2s ease-out 1.5s both;
}

@keyframes expand {
    from { width: 0; }
    to { width: 60px; }
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 14px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scrollAnimation 2s infinite;
}

/* ==================== Section Header ==================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-header.active {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(26, 35, 50, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: slideIn 0.6s ease-out;
}

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

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== About Section ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Glass Upgrade for Content Boxes */
.about-content, .timeline-content, .project-card, .skill-category, .contact-card {
    background: rgba(18, 25, 38, 0.6) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    border-radius: 15px;
}

.about-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
    padding: 30px; /* Added padding to ensure content breathes */
}

.about-content.active {
    opacity: 1;
    transform: translateX(0);
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    margin: 40px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

.highlight-item.active {
    opacity: 1;
    transform: translateX(0);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 20px;
    animation: checkPop 0.6s ease-out;
}

@keyframes checkPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--primary-color);
    font-size: 18px;
    width: 20px;
}

.about-image {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out 0.2s;
}

.about-image.active {
    opacity: 1;
    transform: translateX(0);
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(6, 182, 212, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

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

.image-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.image-wrapper:hover .image-gradient {
    opacity: 0.2;
}

.floating-card {
    position: absolute;
    background: rgba(26, 35, 50, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.card-1 { top: 10%; right: -10%; animation-delay: 0s; }
.card-2 { bottom: 30%; left: -10%; animation-delay: 1s; }
.card-3 { bottom: 10%; right: -5%; animation-delay: 2s; }

/* ==================== Timeline ==================== */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 2px;
    background: var(--gradient-primary);
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine { to { height: 100%; } }

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: -56px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--darker-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--card-bg), 0 0 20px var(--primary-color);
    animation: dotPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--card-bg), 0 0 20px var(--primary-color); }
    50% { box-shadow: 0 0 0 8px var(--card-bg), 0 0 30px var(--primary-color); }
}

.timeline-content {
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
}

.timeline-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.achievement-list {
    list-style: none;
    margin: 15px 0;
}

.achievement-list li {
    color: var(--text-secondary);
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.achievement-list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    animation: slideRight 0.5s ease-out;
}

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

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    padding: 5px 15px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 12px;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.tag:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

/* ==================== Projects with 3D Tilt & Glass ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    overflow: hidden;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(50px);
}

.project-card.active {
    animation: cardReveal 0.6s ease-out forwards;
}

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

.project-card:hover {
    background: rgba(22, 30, 46, 0.8) !important;
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px -5px rgba(6, 182, 212, 0.15), 0 0 20px rgba(6, 182, 212, 0.1);
    transform: translateY(-5px) scale(1.01);
}

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

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.15) rotate(2deg);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 182, 212, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    transition: var(--transition-bounce);
    transform: scale(0);
}

.project-card:hover .project-link {
    transform: scale(1);
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.project-link:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.5);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.project-card:hover .project-content h3 {
    color: var(--primary-color);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

/* ==================== Skills with Glass ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-category {
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.skill-category.active {
    animation: cardReveal 0.6s ease-out forwards;
}

.skill-category:hover {
    background: rgba(22, 30, 46, 0.8) !important;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-card);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.skill-category:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.skill-category h3 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.skill-tag:hover {
    background: rgba(6, 182, 212, 0.2);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

/* ==================== Resume Section ==================== */
.resume-content {
    max-width: 600px;
    margin: 0 auto;
}

.resume-card {
    background: rgba(18, 25, 38, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
}

.resume-card.active {
    opacity: 1;
    transform: translateY(0);
}

.resume-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.3);
}

.resume-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-card);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: var(--transition-bounce);
}

.resume-card:hover .resume-icon {
    transform: scale(1.1) rotate(5deg);
}

.resume-icon i {
    font-size: 60px;
    color: var(--primary-color);
}

.resume-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.resume-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.resume-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(26, 35, 50, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

/* ==================== Contact with Glass ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-card {
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-card a:hover {
    color: var(--primary-color);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(26, 35, 50, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-smooth);
    position: relative;
}

.social-link:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-5px) rotate(360deg);
    background: var(--gradient-primary);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

.contact-form {
    background: rgba(18, 25, 38, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 15px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(10, 22, 40, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(10, 22, 40, 0.9);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

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

/* ==================== Footer ==================== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

.footer-logo p {
    color: var(--text-muted);
    margin-top: 10px;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

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

/* ==================== Scroll to Top ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.4);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.scroll-top:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.6);
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollAnimation {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(30px); opacity: 0; }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 56px; }
    .section-title { font-size: 40px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    .mobile-toggle { display: flex; }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* FIX: Stack footer content vertically */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    /* FIX: Allow links to wrap nicely */
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    /* FIX: Adjust Timeline padding to ensure dots don't bleed off-screen */
    .timeline {
        padding-left: 40px; /* Increased slightly */
    }    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .section-title { font-size: 32px; }
    .projects-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: 30px; }
    .timeline-dot { left: -36px; }
    .floating-card { display: none; }
    .gradient-mesh, #particleCanvas { opacity: 0.2; }
    .resume-actions { flex-direction: column; }
    .resume-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .stat-item h3 { font-size: 36px; }
    .btn { width: 100%; justify-content: center; }
}