/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-rgb: 37, 99, 235;
    /* Added RGB values for primary color */
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --bg-color: #fff;
    --light-bg: #f9fafb;
    --dark-bg: #1f2937;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-color: #f3f4f6;
    --light-text: #d1d5db;
    --lighter-text: #9ca3af;
    --bg-color: #111827;
    --light-bg: #1f2937;
    --dark-bg: #000000;
    --border-color: #374151;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Theme Toggle Button - Mobile App Style FAB */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: var(--secondary-color);
}

.theme-toggle:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* FAB Ripple Effect */
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.theme-toggle:active::before {
    width: 120px;
    height: 120px;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-2px);
    }
}

.theme-toggle {
    animation: float 3s ease-in-out infinite;
}

/* Mobile responsive positioning - FAB Style */
@media screen and (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        z-index: 1001;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    .theme-toggle i {
        font-size: 1.3rem;
    }
}

/* Privacy Notice Styles */
.privacy-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    display: none;
}

.privacy-notice.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.privacy-content {
    padding: 20px;
}

.privacy-content h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.privacy-content p {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.privacy-details {
    margin: 15px 0;
    font-size: 0.85rem;
}

.privacy-details p {
    margin: 8px 0 5px 0;
    font-weight: 500;
    color: var(--text-color);
}

.privacy-details ul {
    margin: 5px 0 15px 20px;
    padding: 0;
}

.privacy-details li {
    margin: 3px 0;
    color: var(--text-color);
    font-size: 0.8rem;
}

.privacy-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.privacy-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Dark theme privacy notice */
[data-theme="dark"] .privacy-notice {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .privacy-content h3,
[data-theme="dark"] .privacy-content p,
[data-theme="dark"] .privacy-details p,
[data-theme="dark"] .privacy-details li {
    color: var(--text-color);
}

/* Mobile responsive privacy notice */
@media screen and (max-width: 768px) {
    .privacy-notice {
        bottom: 80px;
        /* Above the theme toggle */
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .privacy-content {
        padding: 15px;
    }

    .privacy-actions {
        flex-direction: column;
    }

    .privacy-actions .btn {
        width: 100%;
        margin: 2px 0;
    }
}

@media screen and (max-width: 480px) {
    .theme-toggle {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
        z-index: 1001;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .theme-toggle i {
        font-size: 1.3rem;
    }
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Dark Theme Specific Styles */
[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] header {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] header.scrolled {
    background-color: rgba(17, 24, 39, 0.98);
}

[data-theme="dark"] .about {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
}

[data-theme="dark"] .about-text {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] .personal-info {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] .info-item {
    background: rgba(31, 41, 55, 0.5);
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .skill-category {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] .project-card {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] .timeline-content {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] .contact-info {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] .contact-cta {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] .modal-content {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

[data-theme="dark"] footer {
    background: var(--dark-bg);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

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

html {
    scroll-behavior: smooth;
}

/* Smooth scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
}

/* Initially hide elements for animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reset animation state when not visible */
.animate-on-scroll:not(.visible) {
    opacity: 0;
    transform: translateY(50px);
}

/* Slide animations for different directions */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left:not(.visible) {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right:not(.visible) {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-up:not(.visible) {
    opacity: 0;
    transform: translateY(50px);
}

.slide-in-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-down.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-down:not(.visible) {
    opacity: 0;
    transform: translateY(-50px);
}

/* Scale animations */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.scale-in:not(.visible) {
    opacity: 0;
    transform: scale(0.8);
}

/* Rotate animations */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.rotate-in:not(.visible) {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
}

/* Loading states and skeleton screens */
.loading {
    position: relative;
    overflow: hidden;
}

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

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Image error states */
img[alt*="failed to load"] {
    border: 2px dashed #ff6b6b !important;
    background-color: #ffe0e0 !important;
    position: relative;
}

img[alt*="failed to load"]::after {
    content: 'Image failed to load';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Focus indicators for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
button,
a,
input,
textarea {
    transition: var(--transition);
}

/* Enhanced hover effects */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

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

.contact-item:hover {
    transform: translateY(-8px);
}

/* Ripple effect for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success and error states */
.success-message {
    background-color: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 0;
    animation: slideInDown 0.5s ease-out;
}

.error-message {
    background-color: var(--danger-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 0;
    animation: slideInDown 0.5s ease-out;
}

/* Improved focus states */
.btn:focus,
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

/* Staggered animation delays */
.skill-category:nth-child(odd) {
    animation-delay: 0.1s;
}

.skill-category:nth-child(even) {
    animation-delay: 0.2s;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Enhanced animation performance */
.animate-on-scroll,
.slide-in-left,
.slide-in-right,
.slide-in-up,
.slide-in-down,
.scale-in,
.rotate-in {
    will-change: transform, opacity;
}

/* Touch-friendly mobile interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.95);
        transition: var(--transition-fast);
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:active {
        transform: scale(0.98);
        transition: var(--transition-fast);
    }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

ul {
    list-style: none;
}

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

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

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.underline {
    height: 4px;
    width: 100px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.underline::before,
.underline::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.underline::before {
    left: -15px;
}

.underline::after {
    right: -15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

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

.btn-primary:active {
    transform: translateY(-1px);
    transition: var(--transition-fast);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-secondary:active {
    transform: translateY(-1px);
    transition: var(--transition-fast);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

/* Remove focus outline from navigation links */
.nav-menu a:focus,
.nav-menu a:active {
    outline: none !important;
    box-shadow: none !important;
}

.nav-menu a {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

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

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    padding-top: 80px;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--box-shadow);
    border: 5px solid white;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.hero-buttons {
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%232563eb" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

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

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--lighter-text);
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--box-shadow);
    border: 5px solid white;
}

.about-text {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    padding-left: 20px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.personal-info {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-title {
    min-width: 120px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

/* Skills Section */
.skills-content {
    padding: 20px 0;
}

.skills-content {
    padding: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-category {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(var(--primary-rgb), 0.3);
}

/* Projects Section */
.projects {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-brief {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.project-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: auto;
}

.store-link {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.store-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.more-info-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 8px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.more-info-btn:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.more-info-btn:active {
    transform: scale(0.95);
}

/* Ripple effect for info button */
.more-info-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.more-info-btn:active::before {
    width: 100px;
    height: 100px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
    backdrop-filter: blur(0px);
}

.modal.show {
    display: block;
    opacity: 1;
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.4s ease-out;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 800px;
    position: relative;
    transform: translateY(-100px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    border: 1px solid var(--border-color);
}

/* Light theme specific modal styling */
[data-theme="light"] .modal-content {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal h2 {
    color: #2c3e50;
    border-bottom-color: #e0e0e0;
}

[data-theme="light"] .modal-body {
    color: #34495e;
}

[data-theme="light"] .modal-body p {
    color: #34495e;
}

[data-theme="light"] .modal-body h4 {
    color: #2c3e50;
}

[data-theme="light"] .modal-body ul {
    color: #34495e;
}

[data-theme="light"] .modal-body li {
    color: #34495e;
}

[data-theme="light"] .close-modal {
    color: #666666;
    background: rgba(0, 0, 0, 0.05);
    border-color: #e0e0e0;
}

[data-theme="light"] .close-modal:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modal Animation Keyframes */
@keyframes modalFadeIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }

    50% {
        transform: translateY(-20px) scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Enhanced modal content animations */
.modal.show .modal-content h2 {
    animation: titleSlideIn 0.6s ease-out 0.2s both;
}

.modal.show .modal-body {
    animation: contentFadeIn 0.8s ease-out 0.4s both;
}

@keyframes titleSlideIn {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes contentFadeIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--text-color-rgb), 0.1);
    border: 2px solid var(--border-color);
    z-index: 1001;
}

.close-modal:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.close-modal:active {
    transform: scale(0.95) rotate(90deg);
    background: rgba(var(--primary-color-rgb), 0.2);
}

.close-modal:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Add a tooltip for the close button */
.close-modal::after {
    content: 'Close';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.close-modal:hover::after {
    opacity: 1;
}

.modal h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

.modal-body p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-body h4 {
    color: var(--text-color);
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body ul {
    color: var(--text-color);
    margin-bottom: 15px;
}

.modal-body li {
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Project links in modal */
.modal-body .btn {
    margin: 5px 10px 5px 0;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.modal-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

/* Tech list styling */
.modal-body .tech-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.modal-body .tech-list li {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

/* Mobile responsive modal animations */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
        border-radius: 10px;
    }

    .modal.show .modal-content {
        animation: modalSlideInMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes modalSlideInMobile {
        0% {
            transform: translateY(-50px) scale(0.9);
            opacity: 0;
        }

        100% {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    .more-info-btn {
        font-size: 1.3rem;
        padding: 6px;
    }

    .close-modal {
        right: 10px;
        top: 10px;
        font-size: 20px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .modal h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .modal-body {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .modal-body .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin: 3px 5px 3px 0;
    }
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .projects-content {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* Experience Section */
.experience {
    background-color: var(--light-bg);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

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

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lighter-text);
    margin-bottom: 15px;
}

.experience-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.experience-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--light-text);
    font-size: 0.95rem;
}

.experience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 20px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text p {
    color: var(--light-text);
}

.contact-cta {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
}

.contact-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-cta p {
    color: var(--light-text);
    margin-bottom: 25px;
    max-width: 500px;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-buttons .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-buttons .btn-secondary {
    background-color: #25D366;
    /* WhatsApp green */
    color: white;
}

.contact-buttons .btn-secondary:hover {
    background-color: #22c55e;
}

.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 30px 0;
}

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

footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
}

/* Tech Tags Styling */
.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 3px 5px rgba(var(--primary-rgb), 0.3);
}

/* Modal Tech List Styling */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-list li {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-list li:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 3px 5px rgba(var(--primary-rgb), 0.3);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

    .social-icons {
        justify-content: center;
    }

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

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .about-text p {
        font-size: 1rem;
        padding-left: 15px;
    }

    .personal-info {
        padding: 20px 15px;
    }

    .info-item {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .info-title {
        min-width: auto;
        margin-bottom: 5px;
    }

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

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
    }

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

    /* Keep theme toggle visible on mobile */
    .theme-toggle {
        display: flex !important;
    }

    .nav-menu li {
        margin: 15px 0;
    }

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

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}