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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Loading State */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.loaded)::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Color Palette - Refined & Professional Bright Theme */
:root {
    /* Light Theme Colors - Clean White Like Friend's Portfolio */
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --accent-primary: #3b82f6;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #3b82f6;
    --border-light: #e5e5e5;
    --border-medium: #d4d4d4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #3b82f6, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #3b82f6, #3b82f6);
    --gradient-accent: linear-gradient(135deg, #3b82f6, #3b82f6);
}

html[data-theme="light"],
body[data-theme="light"] {
    /* Light Theme Colors */
    --bg-primary: #ffffff !important;
    --bg-secondary: #ffffff !important;
    --bg-tertiary: #ffffff !important;
    --text-primary: #000000 !important;
    --text-secondary: #333333 !important;
    --text-muted: #666666 !important;
    --accent-primary: #3b82f6 !important;
    --accent-secondary: #3b82f6 !important;
    --accent-tertiary: #3b82f6 !important;
    --border-light: #e5e5e5 !important;
    --border-medium: #d4d4d4 !important;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15) !important;
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #3b82f6) !important;
    --gradient-secondary: linear-gradient(135deg, #3b82f6, #3b82f6) !important;
    --gradient-accent: linear-gradient(135deg, #3b82f6, #3b82f6) !important;
}

html[data-theme="dark"],
body[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #0f172a !important;
    --bg-secondary: #1e293b !important;
    --bg-tertiary: #334155 !important;
    --text-primary: #f8fafc !important;
    --text-secondary: #cbd5e1 !important;
    --text-muted: #94a3b8 !important;
    --accent-primary: #3b82f6 !important;
    --accent-secondary: #3b82f6 !important;
    --accent-tertiary: #3b82f6 !important;
    --border-light: #334155 !important;
    --border-medium: #475569 !important;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4) !important;
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5) !important;
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6) !important;
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.7) !important;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #3b82f6) !important;
    --gradient-secondary: linear-gradient(135deg, #3b82f6, #3b82f6) !important;
    --gradient-accent: linear-gradient(135deg, #3b82f6, #3b82f6) !important;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

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

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-light);
}

/* Default light theme navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
}

/* Dark theme navbar */
[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3) !important;
}

/* Light theme navbar explicit */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(229, 229, 229, 0.8) !important;
}

/* Body theme styling */
body[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3) !important;
}

body[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(229, 229, 229, 0.8) !important;
}

[data-theme="dark"] {
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-name,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-description {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .project-card {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .project-card h3,
[data-theme="dark"] .project-card p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-tag {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-medium) !important;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: var(--text-muted) !important;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 2px solid #e2e8f0 !important;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
    color: #64748b !important;
}

body[data-theme="light"] .contact-form input,
body[data-theme="light"] .contact-form textarea {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 2px solid #e2e8f0 !important;
}

body[data-theme="light"] .contact-form input::placeholder,
body[data-theme="light"] .contact-form textarea::placeholder {
    color: #64748b !important;
}

/* Contact Details */
.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    width: 20px;
    text-align: center;
}

.contact-text h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-text p,
.contact-text a {
    margin: 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Professional Contact Form */
.contact-form-container {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.contact-form-container h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-form-container > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select {
    cursor: pointer;
}

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

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

.form-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-send {
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Dark Mode Form Styling */
[data-theme="dark"] .contact-form-container {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
}

[data-theme="dark"] .contact-form-container h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .contact-form-container > p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .form-group label {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: #94a3b8 !important;
}

[data-theme="dark"] .form-note {
    color: #94a3b8 !important;
}

[data-theme="dark"] .contact-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
}

[data-theme="dark"] .contact-text h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .contact-text p,
[data-theme="dark"] .contact-text a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .contact-text a:hover {
    color: var(--accent-primary) !important;
}

/* Body dark mode styling */
body[data-theme="dark"] .contact-form-container {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
}

body[data-theme="dark"] .contact-form-container h3 {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .contact-form-container > p {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .form-group label {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group select,
body[data-theme="dark"] .form-group textarea {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .form-group input:focus,
body[data-theme="dark"] .form-group select:focus,
body[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

body[data-theme="dark"] .form-group input::placeholder,
body[data-theme="dark"] .form-group textarea::placeholder {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .form-note {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .contact-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
}

body[data-theme="dark"] .contact-text h4 {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .contact-text p,
body[data-theme="dark"] .contact-text a {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .contact-text a:hover {
    color: var(--accent-primary) !important;
}

/* Light Mode Form Styling */
[data-theme="light"] .contact-form-container {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .contact-form-container h3 {
    color: #1e293b !important;
}

[data-theme="light"] .contact-form-container > p {
    color: #475569 !important;
}

[data-theme="light"] .form-group label {
    color: #1e293b !important;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: #64748b !important;
}

[data-theme="light"] .form-note {
    color: #64748b !important;
}

[data-theme="light"] .contact-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .contact-text h4 {
    color: #1e293b !important;
}

[data-theme="light"] .contact-text p,
[data-theme="light"] .contact-text a {
    color: #475569 !important;
}

[data-theme="light"] .contact-text a:hover {
    color: var(--accent-primary) !important;
}

/* Body light mode styling */
body[data-theme="light"] .contact-form-container {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body[data-theme="light"] .contact-form-container h3 {
    color: #1e293b !important;
}

body[data-theme="light"] .contact-form-container > p {
    color: #475569 !important;
}

body[data-theme="light"] .form-group label {
    color: #1e293b !important;
}

body[data-theme="light"] .form-group input,
body[data-theme="light"] .form-group select,
body[data-theme="light"] .form-group textarea {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

body[data-theme="light"] .form-group input:focus,
body[data-theme="light"] .form-group select:focus,
body[data-theme="light"] .form-group textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

body[data-theme="light"] .form-group input::placeholder,
body[data-theme="light"] .form-group textarea::placeholder {
    color: #64748b !important;
}

body[data-theme="light"] .form-note {
    color: #64748b !important;
}

body[data-theme="light"] .contact-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body[data-theme="light"] .contact-text h4 {
    color: #1e293b !important;
}

body[data-theme="light"] .contact-text p,
body[data-theme="light"] .contact-text a {
    color: #475569 !important;
}

body[data-theme="light"] .contact-text a:hover {
    color: var(--accent-primary) !important;
}

[data-theme="dark"] .btn-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Ensure dark mode loads immediately without JavaScript flash */
body[data-theme="dark"] {
    color: #f8fafc !important;
    background-color: #0f172a !important;
}

/* Additional dark mode skill styling */
body[data-theme="dark"] .skill-item {
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .skill-item i {
    color: #10b981 !important;
}

body[data-theme="dark"] .skill-item.learning i {
    color: #f59e0b !important;
}

[data-theme="dark"] .nav-link {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .nav-link:hover {
    color: var(--accent-primary) !important;
}

[data-theme="dark"] .nav-logo h2 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .nav-logo a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .section-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .about-text p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .about-subtitle {
    color: var(--accent-primary) !important;
}

[data-theme="dark"] .about-text strong {
    color: var(--accent-primary) !important;
}

[data-theme="dark"] .about-stats .stat-item h3,
[data-theme="dark"] .about-stats .stat-item p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .project-tech span {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-category {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-category h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skills-description p {
    color: var(--text-secondary) !important;
}

/* Light mode specific styles */
[data-theme="light"],
body[data-theme="light"],
html[data-theme="light"] {
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
}

/* Ensure light mode body defaults */
body[data-theme="light"] {
    background-color: #ffffff !important;
    color: #000000 !important;
}

html[data-theme="light"] {
    background-color: #ffffff !important;
    color: #000000 !important;
}

[data-theme="light"] .nav-link {
    color: var(--text-primary) !important;
}

[data-theme="light"] .nav-link:hover {
    color: var(--accent-primary) !important;
}

[data-theme="light"] .nav-logo h2 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .nav-logo a {
    color: var(--text-primary) !important;
}

[data-theme="light"] .btn-primary {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    border-color: var(--accent-primary) !important;
}

[data-theme="light"] .btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

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

.nav-logo a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.nav-logo h2 {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover::before {
    transform: scale(1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle i {
    position: relative;
    z-index: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Enhanced Hero Section - Refined & Professional */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Professional Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Subtle Grid Pattern */
.pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Dot Pattern */
.pattern-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dots-float 15s ease-in-out infinite;
}

@keyframes dots-float {
    0%, 100% { transform: translateY(0px); opacity: 0.8; }
    50% { transform: translateY(-10px); opacity: 0.4; }
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.05));
    filter: blur(40px);
    animation: orb-float 8s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.gradient-orb-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes orb-float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-20px, -30px) scale(1.1);
        opacity: 0.3;
    }
}

/* Theme-specific adjustments */
[data-theme="dark"] .pattern-grid {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .pattern-dots {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
}

[data-theme="dark"] .gradient-orb {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.15), rgba(147, 197, 253, 0.08));
}

[data-theme="light"] .pattern-grid {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
}

[data-theme="light"] .pattern-dots {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .gradient-orb {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.06), rgba(147, 197, 253, 0.03));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 1;
    animation: none;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    opacity: 0.7;
    /* animation: float 3s ease-in-out infinite; */
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-indicator 2s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 10px #10b981, 0 0 20px #10b981, 0 0 30px #10b981;
}

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

@keyframes glow {
    0% {
        box-shadow: 0 0 5px #10b981, 0 0 10px #10b981, 0 0 15px #10b981;
    }
    100% {
        box-shadow: 0 0 10px #10b981, 0 0 20px #10b981, 0 0 30px #10b981;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Featured Project Preview */
.hero-project-preview {
    margin: 3rem 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Ensure visibility in both themes */
[data-theme="light"] .hero-project-preview,
[data-theme="dark"] .hero-project-preview,
body[data-theme="light"] .hero-project-preview,
body[data-theme="dark"] .hero-project-preview {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

[data-theme="light"] .preview-card,
[data-theme="dark"] .preview-card,
body[data-theme="light"] .preview-card,
body[data-theme="dark"] .preview-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Override all animation states for featured project */
.hero-project-preview.animate-on-scroll,
.hero-project-preview.animate-on-scroll.fade-in-up,
.hero-project-preview.animate-on-scroll:not(.animate-in) {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Override for preview elements */
.hero-project-preview .preview-card,
.hero-project-preview .preview-header,
.hero-project-preview .preview-content,
.hero-project-preview .preview-image {
    opacity: 1 !important;
    visibility: visible !important;
}

.preview-header {
    text-align: center;
    margin-bottom: 1rem;
}

.preview-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
    text-decoration: none;
    color: inherit;
}

.preview-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-content p {
    margin: 0 0 0.8rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.preview-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preview-tech span {
    background: var(--accent-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.preview-tech span:last-child {
    background: #10b981;
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    opacity: 0.8;
}

.hero-name {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    50% {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: var(--accent-color);
    }
    51%, 100% {
        border-color: transparent;
    }
}

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

.highlight {
    color: var(--accent-secondary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-secondary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: expandWidth 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes expandWidth {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    color: var(--accent-color);
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    position: relative;
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    animation: typewriter 2s steps(40) 1s 1 normal both, blink 1s infinite;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0 3rem;
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

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

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

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

/* Professional Animated Character */
.animated-character {
    position: absolute;
    bottom: 8%;
    right: 3%;
    z-index: 2;
    opacity: 0.85;
}

.workspace {
    position: relative;
    /* Animation removed to keep workspace static */
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(0.5deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-0.5deg); }
}

/* Desk */
.desk {
    position: relative;
    z-index: 1;
}

.desk-surface {
    width: 140px;
    height: 12px;
    background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #d97706 100%);
    border-radius: 6px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        0 2px 4px rgba(180, 83, 9, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
}

.desk-surface::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 1px;
}

.desk-leg {
    position: absolute;
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #92400e, #78350f);
    bottom: -28px;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.desk-leg.left { left: 12px; }
.desk-leg.right { right: 12px; }





/* Computer Setup */
.computer-setup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    z-index: 2;
}

/* Monitor */
.monitor {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.monitor::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 42px;
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: -1;
}

.monitor-screen {
    width: 55px;
    height: 38px;
    background: #0f172a;
    border: 3px solid #374151;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px #4b5563,
        inset 0 0 20px rgba(0,0,0,0.8),
        0 6px 20px rgba(0,0,0,0.3);
}

.monitor-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        transparent 50%, 
        rgba(139, 92, 246, 0.03) 100%);
    pointer-events: none;
    animation: screen-glow 4s ease-in-out infinite alternate;
}

@keyframes screen-glow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.code-editor {
    width: 100%;
    height: 100%;
    font-size: 4px;
    font-family: monospace;
}

.title-bar {
    height: 6px;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
}

.window-controls {
    display: flex;
    gap: 1px;
}

.control {
    width: 2px;
    height: 2px;
    border-radius: 50%;
}

.control.close { background: #ef4444; }
.control.minimize { background: #f59e0b; }
.control.maximize { background: #10b981; }

.file-name {
    color: #9ca3af;
    font-size: 3px;
}

.code-area {
    display: flex;
    height: calc(100% - 6px);
    font-size: 3px;
}

.line-numbers {
    width: 6px;
    background: #111827;
    color: #6b7280;
    padding: 1px;
    font-size: 2px;
    line-height: 1.2;
}

.code-content {
    flex: 1;
    padding: 1px 2px;
    color: #e5e7eb;
    line-height: 1.2;
    font-size: 2px;
}

.code-line {
    white-space: nowrap;
    animation: code-typing 3s ease-in-out infinite;
}

.code-line:nth-child(2) { animation-delay: 0.5s; }
.code-line:nth-child(3) { animation-delay: 1s; }
.code-line:nth-child(4) { animation-delay: 1.5s; }

@keyframes code-typing {
    0%, 80% { opacity: 0.3; }
    10%, 70% { opacity: 1; }
}

.cursor {
    color: #10b981;
    animation: cursor-blink 1s infinite;
}

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

.monitor-stand {
    width: 18px;
    height: 6px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-radius: 3px;
    margin-top: 3px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.monitor-stand::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #4b5563, #374151);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Keyboard and Mouse */
.keyboard-mouse {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
    justify-content: center;
    position: relative;
}

.keyboard-full {
    width: 38px;
    background: linear-gradient(135deg, #4b5563, #374151);
    border-radius: 4px;
    padding: 2px;
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
}

.keyboard-full::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    right: 2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    border-radius: 1px;
}

.key-row {
    display: flex;
    gap: 1px;
    margin-bottom: 1px;
}

.key {
    width: 4px;
    height: 3px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-radius: 1px;
    animation: key-light 2s ease-in-out infinite;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.key:nth-child(1) { animation-delay: 0s; }
.key:nth-child(2) { animation-delay: 0.2s; }
.key:nth-child(3) { animation-delay: 0.4s; }
.key:nth-child(4) { animation-delay: 0.6s; }
.key:nth-child(5) { animation-delay: 0.8s; }

.space-bar {
    width: 22px;
    height: 3px;
    animation-delay: 1s;
}

@keyframes key-light {
    0%, 90%, 100% { 
        background: linear-gradient(135deg, #6b7280, #4b5563);
        box-shadow: 
            0 1px 2px rgba(0,0,0,0.2),
            inset 0 1px 0 rgba(255,255,255,0.1);
    }
    5%, 85% { 
        background: linear-gradient(135deg, #8b5cf6, #6b46c1);
        box-shadow: 
            0 0 4px rgba(139, 92, 246, 0.4),
            0 1px 2px rgba(0,0,0,0.2),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
}

.mouse {
    width: 7px;
    height: 11px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-radius: 4px 4px 7px 7px;
    position: absolute;
    left: 92px;
    bottom: 12px;
    z-index: 3;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.mouse::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 4px;
    background: linear-gradient(180deg, #8b5cf6, #6b46c1);
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(139, 92, 246, 0.3);
}

.mouse::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    border-radius: 1px;
}

/* Workspace Details */
.workspace-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Coffee Cup */
.coffee-cup {
    position: absolute;
    left: 105px;
    bottom: 12px;
    z-index: 3;
}

.cup-body {
    width: 8px;
    height: 10px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 0 0 4px 4px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.cup-body::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 8px;
    background: linear-gradient(135deg, #92400e, #78350f);
    border-radius: 0 0 3px 3px;
}

.cup-handle {
    position: absolute;
    top: 3px;
    right: -3px;
    width: 4px;
    height: 6px;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 3px 3px 0;
}

.coffee-steam {
    position: absolute;
    top: -8px;
    left: 2px;
    width: 4px;
    height: 8px;
}

.coffee-steam::before,
.coffee-steam::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
    border-radius: 1px;
    animation: steam-rise 2s ease-in-out infinite;
}

/* Light mode steam visibility */
[data-theme="light"] .coffee-steam::before,
[data-theme="light"] .coffee-steam::after {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.7), transparent);
}

body[data-theme="light"] .coffee-steam::before,
body[data-theme="light"] .coffee-steam::after {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.7), transparent);
}

.coffee-steam::before {
    left: 1px;
    animation-delay: 0s;
}

.coffee-steam::after {
    right: 1px;
    animation-delay: 0.5s;
}

@keyframes steam-rise {
    0% { 
        opacity: 0.8; 
        transform: translateY(0px) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translateY(-6px) scale(0.5);
    }
}

/* Theme Adaptations */
[data-theme="light"] .animated-character {
    opacity: 0.75;
}

[data-theme="light"] .monitor-screen {
    background: #f9fafb;
    border-color: #d1d5db;
}

[data-theme="light"] .code-area {
    background: #ffffff;
}

[data-theme="light"] .line-numbers {
    background: #f3f4f6;
    color: #6b7280;
}

[data-theme="light"] .code-content {
    color: #1f2937;
}

[data-theme="light"] .title-bar {
    background: #e5e7eb;
}

[data-theme="dark"] .animated-character {
    opacity: 0.9;
}

.scroll-arrow {
    width: 2px;
    height: 25px;
    background: white;
    position: relative;
    border-radius: 1px;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.hero-avatar {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    animation: floatAvatar 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%; /* Zoomed out to show more of the full picture */
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure image fills the container properly */
    min-width: 100%;
    min-height: 100%;
}

.hero-avatar:hover .profile-image {
    transform: scale(1.05);
}

@keyframes floatAvatar {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-avatar i {
    font-size: 6.5rem;
    color: var(--accent-secondary);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.social-icon i {
    font-size: 1.2rem;
}

/* Enhanced Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent-tertiary);
    border-radius: 1px;
}

/* Enhanced About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.about-image .profile-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.about-image .profile-image::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 16px;
    background: var(--bg-primary);
    z-index: -1;
}

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

/* Removed hover animation - picture stays still */

.about-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-align: left;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.about-text strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.fitexplorer-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.fitexplorer-link:hover {
    color: var(--accent-secondary);
    text-decoration: none;
}

.fitexplorer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.fitexplorer-link:hover::after {
    width: 100%;
}

.skills h3 {
    margin: 2.5rem 0 1.5rem;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

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

/* Dark mode skills section */
[data-theme="dark"] .skills {
    background: var(--bg-secondary) !important;
}

body[data-theme="dark"] .skills {
    background: #1e293b !important;
}

.skills-description {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skills-description p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.skills-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 25px;
    border: 1px solid var(--border-light);
}

.legend-item i {
    font-size: 1rem;
}

.legend-item:first-child i {
    color: #10b981;
}

.legend-item:last-child i {
    color: #f59e0b;
}

.legend-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Dark mode adjustments for legend */
[data-theme="dark"] .legend-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .legend-item span {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .skills-description p {
    color: #cbd5e1 !important;
}

/* Additional dark mode body styling */
body[data-theme="dark"] .legend-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
}

body[data-theme="dark"] .legend-item span {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .skills-description p {
    color: #cbd5e1 !important;
}

[data-theme="light"] .legend-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .legend-item span {
    color: #475569 !important;
}

[data-theme="light"] .skills-description p {
    color: #475569 !important;
}

@media (max-width: 768px) {
    .skills-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .legend-item {
        padding: 0.4rem 0.8rem;
    }
    
    .legend-item span {
        font-size: 0.85rem;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-category .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-category .skill-tag {
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-category .skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: var(--accent-secondary);
}

/* Completed Skills - Green */
.skill-category .skill-tag {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

/* Currently Learning Skills - Orange */
.skill-category .skill-tag.learning {
    background: #f59e0b !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

.skill-tag i {
    margin-left: 8px;
    font-size: 0.8rem;
    color: #ffffff !important;
}

/* Enhanced Projects Section */
.projects {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Carousel Styles */
.projects-carousel-container {
    position: relative;
    margin-top: 3rem;
    max-width: 100%;
}

.projects-carousel {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-track .project-card {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    max-width: 800px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.carousel-btn {
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

/* Carousel project card adjustments */
.carousel-track .project-card {
    margin: 0 !important;
    height: auto;
    display: flex;
    flex-direction: column;
}

.carousel-track .project-card .project-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .projects-carousel {
        max-width: 100%;
        margin: 0;
        border-radius: 15px;
    }
    
    .carousel-track .project-card {
        min-width: 100%;
        width: 100%;
    }
    
    .carousel-controls {
        margin-bottom: 1.5rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Skills Cards Layout */
.skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.skill-card-header {
    margin-bottom: 1.5rem;
}

.skill-card-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.skill-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Two columns for cards with many skills */
.skill-card:nth-child(1) .skill-items,  /* Programming Languages */
.skill-card:nth-child(4) .skill-items,  /* Frameworks & Libraries */
.skill-card:nth-child(5) .skill-items {  /* AI & Machine Learning */
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    transition: all 0.3s ease;
    min-height: 2rem;
}

.skill-item:hover {
    transform: translateX(5px);
}



.skill-item i {
    color: #10b981;
    font-size: 1rem;
    width: 16px;
    flex-shrink: 0;
}

.skill-item span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    transition: none !important;
}

/* Ensure text is visible in both themes and no hover effects */
[data-theme="dark"] .skill-item span {
    color: #e2e8f0 !important;
}

[data-theme="light"] .skill-item span {
    color: #1e293b !important;
}

/* Default light mode fallback */
.skill-item span {
    color: #1e293b;
}

/* Explicitly prevent any hover color changes */
.skill-item:hover span {
    color: inherit !important;
}

/* Learning skills styling */
.skill-item.learning i {
    color: #f59e0b;
}

.skill-item.learning span {
    font-style: italic;
}

[data-theme="dark"] .skill-item.learning span {
    color: #fbbf24 !important;
    font-style: italic;
}

body[data-theme="dark"] .skill-item.learning span {
    color: #fbbf24 !important;
    font-style: italic;
}

[data-theme="light"] .skill-item.learning span {
    color: #475569 !important;
}

/* Dark mode adjustments for skill cards */
[data-theme="dark"] .skill-card {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .skill-card:hover {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .skill-card-header h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .skill-item span {
    color: #e2e8f0 !important;
}

/* Default dark mode skill card styling */
body[data-theme="dark"] .skill-card {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .skill-card-header h3 {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .skill-item span {
    color: #e2e8f0 !important;
}

/* Light mode adjustments */
[data-theme="light"] .skill-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .skill-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .skill-card-header h3 {
    color: #1e293b !important;
}

[data-theme="light"] .skill-item span {
    color: #1e293b !important;
}

/* Default skill card styling for light mode */
.skill-card {
    background: #ffffff;
    color: #1e293b;
}

.skill-card-header h3 {
    color: #1e293b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    /* Single column on mobile for better readability */
    .skill-card:nth-child(1) .skill-items,
    .skill-card:nth-child(4) .skill-items,
    .skill-card:nth-child(5) .skill-items {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .skill-item {
        padding: 0.3rem 0;
        min-height: 1.8rem;
    }
    
    .skill-item span {
        font-size: 0.9rem;
    }
}

/* Original grid styles (fallback) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

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

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

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

.project-image {
    height: 300px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-card:first-child .project-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b46c1 50%, #a855f7 100%);
}

.project-card:nth-child(4) .project-image {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%);
}

.project-card:nth-child(5) .project-image {
    background: linear-gradient(135deg, #6b46c1 0%, #7c3aed 50%, #8b5cf6 100%);
}

.project-card:nth-child(6) .project-image {
    background: linear-gradient(135deg, #7c3aed 0%, #6b46c1 50%, #a855f7 100%);
}

.project-card:nth-child(7) .project-image {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #6b46c1 100%);
}

.project-card:nth-child(8) .project-image {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #8b5cf6 100%);
}

.project-card:nth-child(9) .project-image {
    background: linear-gradient(135deg, #6b46c1 0%, #8b5cf6 50%, #a855f7 100%);
}

.project-card:nth-child(10) .project-image {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #6b46c1 100%);
}

.project-card:nth-child(11) .project-image {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b46c1 50%, #7c3aed 100%);
}

.project-card:nth-child(12) .project-image {
    background: linear-gradient(135deg, #a855f7 0%, #6b46c1 50%, #8b5cf6 100%);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-image i {
    font-size: 4.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.project-card:hover .project-image i {
    transform: scale(1.1) rotate(5deg);
}

.project-logo {
    max-width: 280px;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Special styling for portfolio screenshot */
.project-card:nth-child(3) .project-logo {
    max-width: 260px;
    max-height: 260px;
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.project-tech span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-tech span:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1.2rem;
}

.project-link {
    text-decoration: none;
    color: var(--accent-primary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid transparent;
}

.project-link:hover {
    color: var(--accent-primary);
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

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

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.social-link {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.social-link i {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.contact-form {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    transform: translateY(-2px);
}

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

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

/* Enhanced Footer */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

/* Enhanced Notifications */
.notification {
    position: fixed;
    top: 120px;
    right: 20px;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.notification-success {
    background: var(--accent-success);
}

.notification-error {
    background: var(--accent-error);
}

.notification-info {
    background: var(--accent-primary);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--border-light);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        text-align: center;
    }

    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-project-preview {
        margin: 2rem 0 1rem;
    }
    
    .preview-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    
    .preview-image {
        width: 50px;
        height: 50px;
    }
    
    .gradient-orb {
        filter: blur(30px);
    }
    
    .gradient-orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .gradient-orb-2 {
        width: 150px;
        height: 150px;
    }
    
    .gradient-orb-3 {
        width: 100px;
        height: 100px;
    }
    
    .animated-character {
        bottom: 3%;
        right: 1%;
        transform: scale(0.6);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-image .profile-image {
        width: 250px;
        height: 250px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
    
    .form-buttons {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .project-filters {
        gap: 0.8rem;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    .hero-avatar i {
        font-size: 4rem;
    }
}

/* ========================================
   ADVANCED ANIMATIONS
   ======================================== */

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Exception for featured project - always visible */
.hero-project-preview.animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from left */
.animate-on-scroll.fade-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-in-left.animate-in {
    transform: translateX(0);
}

/* Fade in from right */
.animate-on-scroll.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.fade-in-right.animate-in {
    transform: translateX(0);
}

/* Fade in from bottom */
.animate-on-scroll.fade-in-up {
    transform: translateY(50px);
}

.animate-on-scroll.fade-in-up.animate-in {
    transform: translateY(0);
}

/* Exception for featured project fade-in-up */
.hero-project-preview.animate-on-scroll.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Scale animation */
.animate-on-scroll.scale-in {
    transform: scale(0.8);
}

.animate-on-scroll.scale-in.animate-in {
    transform: scale(1);
}

/* Stagger animation for multiple elements */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }

/* Typewriter effect - cursor removed */
.typewriter-text {
    opacity: 0;
}

/* Enhanced hover effects */
.enhanced-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Floating animation disabled */
.floating {
    animation: none;
}

/* Pulse animation for buttons */
.pulse-on-hover {
    position: relative;
    overflow: hidden;
}

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

.pulse-on-hover:hover::before {
    width: 300px;
    height: 300px;
}

.pulse-on-hover * {
    position: relative;
    z-index: 1;
}

/* Smooth page load */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}
