/* css/main.css */


:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-secondary: linear-gradient(135deg, var(--accent), #0ea5e9);
    --gradient-accent: linear-gradient(135deg, #f43f5e, #e11d48);
    --gradient-bg: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    --shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode variables */
:root.dark-mode {
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-text: #f1f5f9;
    --dark-accent: #c7d2fe;
    --gradient: linear-gradient(135deg, #7d80ff, #a78bfa);
    --gradient-secondary: linear-gradient(135deg, #16c5e0, #38bdf8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    font-size: 1.125rem;
    background-color: var(--light);
}

.dark-mode body {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* Dark mode styling for Skills and Projects sections */
.dark-mode #skills,
.dark-mode #projects {
    background-color: var(--dark-bg);
}

/* Dark mode styling for Contact section */
.dark-mode #contact {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* Ensure proper rendering on all devices */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.375rem;
}

p {
    margin-bottom: 1.5rem;
}

small {
    font-size: 0.875rem;
}

html {
    scroll-behavior: smooth;
}

/* Utilities */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: var(--gradient);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 22px;
    z-index: -1;
}

.glass-input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
}

/* Dark mode glass elements */
.dark-mode .glass-nav {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* Dark mode navbar */
.dark-mode .navbar {
    background: rgba(30, 41, 59, 0.95);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .navbar.scrolled,
.navbar.dark-scrolled {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .glass-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Dark mode styling for project cards */
.dark-mode .project-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .project-card:hover {
    border-color: var(--dark-accent);
}

.dark-mode .project-title {
    color: var(--dark-text);
}

.dark-mode .project-category {
    color: var(--dark-accent);
}

.dark-mode .project-description {
    color: var(--dark-text);
}

/* Dark mode styling for skill cards */
.dark-mode .skill-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-card:hover {
    border-color: var(--dark-accent);
}

.dark-mode .skill-card h4 {
    color: var(--dark-text);
}

.dark-mode .skill-name {
    color: var(--dark-text);
}

.dark-mode .skill-level {
    color: var(--dark-accent);
}

.dark-mode .progress {
    background-color: #334155;
}

.dark-mode .glass-input {
    background: rgba(30, 41, 59, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: var(--dark-text) !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark mode section title */
.dark-mode .section-title {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .dark-mode-toggle .btn {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--dark-text);
}

.dark-mode-toggle .btn:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.dark-mode .dark-mode-toggle .btn:hover {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Navigation */
.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.1);
}

/* Dark mode navigation */
.dark-mode .navbar-nav .nav-link {
    color: var(--dark-text) !important;
}

.dark-mode .navbar-nav .nav-link:hover,
.dark-mode .navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.2);
}

/* Dark mode navbar toggler */
.dark-mode .navbar-toggler {
    color: var(--dark-text);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28241, 245, 249, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
                radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="3" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 20px;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    z-index: -1;
    backdrop-filter: blur(10px);
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Dark mode hero section */
.dark-mode .hero-section {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.dark-mode .hero-section::before {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, transparent 30%),
                radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
}

.dark-mode .hero-content::before {
    background: rgba(255, 255, 255, 0.03);
}

/* Enhanced buttons */
.hero-buttons .btn {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    border: none;
    /* Add z-index animation properties */
    transform: translateZ(-10px);
    opacity: 0;
}

/* Button animation for initial load */
.hero-buttons .btn.animate-in {
    transform: translateZ(0);
    opacity: 1;
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.btn-hero-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:active {
    transform: translateY(-1px) translateZ(0);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary:active {
    transform: translateY(-1px) translateZ(0);
}

/* Button animation */
.btn-hero-primary::before,
.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-hero-primary:hover::before,
.btn-hero-secondary:hover::before {
    transform: translateX(100%);
}

.hero-buttons .btn {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.btn-hero-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:active {
    transform: translateY(-1px) translateZ(0);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary:active {
    transform: translateY(-1px) translateZ(0);
}

/* Profile Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    padding: 5px;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* About Section */
.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.stats-row .stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.stats-row .stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-row .stat-card:hover::before {
    opacity: 1;
}

.stats-row .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* Skills Section */
.skill-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.skill-card .skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-right-color: white;
}

/* Dark mode timeline content */
.dark-mode .timeline-content {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
}

.dark-mode .timeline-content:hover {
    border-color: var(--dark-accent);
}

.dark-mode .timeline-item:nth-child(odd) .timeline-content::before {
    border-left-color: var(--dark-card);
}

.dark-mode .timeline-item:nth-child(even) .timeline-content::before {
    border-right-color: var(--dark-card);
}

.dark-mode .timeline-date {
    background: var(--gradient);
    color: white;
}

.dark-mode .timeline-title {
    color: var(--dark-text);
}

.dark-mode .timeline-company {
    color: var(--dark-accent);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-date {
    background: var(--gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Projects */
.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Contact */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.contact-details h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    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;
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-5px);
}

.social-link:active {
    transform: translateY(-2px);
}

/* Entrance Animations */
.fade-in {
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.6s ease-out forwards;
}

.slide-up-delay-1 {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.6s ease-out 0.1s forwards;
}

.slide-up-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.6s ease-out 0.2s forwards;
}

.slide-up-delay-3 {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.6s ease-out 0.3s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Loading Animations */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    /* Only run animation when needed */
    animation-play-state: paused;
}

.skeleton.animate {
    animation-play-state: running;
}

@keyframes skeleton-loading {
    0% {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    100% {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

.skeleton-text {
    width: 100%;
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-text:last-child {
    margin-bottom: 0;
    width: 80%;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Dark Mode AOS Animations */
.dark-mode-aos {
    /* Add any dark mode specific AOS animation styles here */
}

/* Project Filters */
.project-filters {
    margin-bottom: 2rem;
}

/* Skill Filters */
.skill-filters {
    margin-bottom: 2rem;
}

.skill-filters .btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.skill-filters .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.skill-filters .btn:not(.active) {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.skill-filters .btn:not(.active):hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Dark mode adjustments */
.dark-mode .skill-filters .btn:not(.active) {
    border-color: var(--dark-accent);
    color: var(--dark-accent);
}

.dark-mode .skill-filters .btn:not(.active):hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--dark-accent);
}

.project-filters .btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.project-filters .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.project-filters .btn:not(.active) {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.project-filters .btn:not(.active):hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Dark mode adjustments */
.dark-mode .project-filters .btn:not(.active) {
    border-color: var(--dark-accent);
    color: var(--dark-accent);
}

.dark-mode .project-filters .btn:not(.active):hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--dark-accent);
}

/* Skill Progress Bars */
.skill-progress-container {
    margin-top: 1.5rem;
}

.skill-progress {
    margin-bottom: 1.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.skill-level {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.progress {
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: visible;
}

.progress-bar {
    border-radius: 4px;
    position: relative;
    animation: progressAnimation 1s ease-in-out;
}

/* Floating Cards */
.floating-card {
position: absolute;
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
padding: 12px 16px;
display: flex;
align-items: center;
gap: 8px;
color: white;
font-weight: 500;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
animation: float 6s ease-in-out infinite;
z-index: 10;
}

.floating-card i {
font-size: 1.2rem;
}

.floating-card:nth-child(1) {
top: 20%;
left: 10%;
animation-delay: 0s;
}

.floating-card:nth-child(2) {
top: 60%;
right: 10%;
animation-delay: 2s;
}

.floating-card:nth-child(3) {
bottom: 20%;
left: 20%;
animation-delay: 4s;
}

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

.dark-mode .skill-name {
    color: var(--dark-text);
}

.dark-mode .progress {
    background-color: #334155;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .profile-img {
        width: 300px;
        height: 300px;
    }
    }
    
    .floating-card {
        position: absolute;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
        font-weight: 500;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        animation: float 6s ease-in-out infinite;
        z-index: 10;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .floating-card:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }
    
    .floating-card:nth-child(2) {
        top: 60%;
        right: 10%;
        animation-delay: 2s;
    }
    
    .floating-card:nth-child(3) {
        bottom: 20%;
        left: 20%;
        animation-delay: 4s;
    }
    
    @keyframes float {
        0% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-20px);
        }
        100% {
            transform: translateY(0px);
        }
    }

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
}

/* Ensure profile image maintains circular shape on all screen sizes */
.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 5px;
    /* Ensure the image maintains its aspect ratio and circular shape */
    aspect-ratio: 1;
    object-position: center;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -20px;
        right: auto;
        border-right-color: white;
        border-left-color: transparent;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .floating-card {
        position: absolute;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
        font-weight: 500;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        animation: float 6s ease-in-out infinite;
        z-index: 10;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .floating-card:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }
    
    .floating-card:nth-child(2) {
        top: 60%;
        right: 10%;
        animation-delay: 2s;
    }
    
    .floating-card:nth-child(3) {
        bottom: 20%;
        left: 20%;
        animation-delay: 4s;
    }
    
    @keyframes float {
        0% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-20px);
        }
        100% {
            transform: translateY(0px);
        }
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 10px 0;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .floating-card {
        position: relative;
        margin: 10px auto;
        width: fit-content;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none;
    }
    
    .floating-card:nth-child(1),
    .floating-card:nth-child(2),
    .floating-card:nth-child(3) {
        position: relative;
        animation: none;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Dark mode adjustments */
.dark-mode .scroll-to-top {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .scroll-to-top:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Project Modal */
.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Interactive Timeline */
.timeline-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.timeline-content {
    position: relative;
    overflow: hidden;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-content::after {
    opacity: 1;
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.timeline-item.expanded .timeline-details {
    max-height: 500px;
}

.timeline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.timeline-toggle:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.timeline-toggle i {
    transition: transform 0.3s ease;
}

.timeline-item.expanded .timeline-toggle i {
    transform: rotate(180deg);
}

.dark-mode .modal-content {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.dark-mode .modal-title {
    color: var(--dark-text);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dark-mode .btn-close {
    filter: invert(0) grayscale(100%) brightness(0);
}

.project-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.project-modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}

.project-modal-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-modal-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.dark-mode .project-modal-link {
    background: rgba(99, 102, 241, 0.2);
    color: var(--dark-accent);
}

.dark-mode .project-modal-link:hover {
    background: var(--primary);
    color: white;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}