* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme variables - Professional mint/blue palette */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-accent: #196c97;
    --text-primary: #bcf0e7;
    --text-secondary: #8cdfd1;
    --text-light: #bcf0e7;
    --accent-color: #2faee9;
    --primary-color: #8cdfd1;
    --accent-gradient: linear-gradient(135deg, #2faee9 0%, #8cdfd1 100%);
    --shadow-light: rgba(47, 174, 233, 0.1);
    --shadow-medium: rgba(47, 174, 233, 0.2);
    --shadow-dark: rgba(47, 174, 233, 0.3);
    --border-color: #196c97;
    --glass-bg: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] {
    /* Dark theme variables - Same professional palette */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-accent: #196c97;
    --text-primary: #bcf0e7;
    --text-secondary: #8cdfd1;
    --text-light: #bcf0e7;
    --accent-color: #2faee9;
    --primary-color: #8cdfd1;
    --accent-gradient: linear-gradient(135deg, #2faee9 0%, #8cdfd1 100%);
    --shadow-light: rgba(47, 174, 233, 0.2);
    --shadow-medium: rgba(47, 174, 233, 0.3);
    --shadow-dark: rgba(47, 174, 233, 0.4);
    --border-color: #196c97;
    --glass-bg: rgba(0, 0, 0, 0.9);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px var(--shadow-light);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px var(--shadow-medium);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    animation: heroEnter 1.2s ease-out;
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.instagram-icon-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.instagram-icon-inline::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.6s ease;
}

.instagram-icon-inline:hover::before {
    left: 100%;
}

.instagram-icon-inline:hover {
    transform: translateY(-3px) scale(1.1);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.instagram-svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.instagram-icon-inline:hover .instagram-svg {
    transform: rotate(15deg) scale(1.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Social Links */
.social-links {
    margin-top: 2rem;
    animation: fadeInUp 1.5s ease-out 0.8s both;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.instagram-link::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.6s ease;
}

.instagram-link:hover::before {
    left: 100%;
}

.instagram-link:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.instagram-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.instagram-link:hover .instagram-icon {
    transform: rotate(15deg) scale(1.1);
}

.instagram-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Instagram gradient effect on hover */
.instagram-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: white;
}

/* Mobile responsive for social links */
@media (max-width: 768px) {
    .instagram-link {
        width: 50px;
        height: 50px;
    }

    .instagram-icon {
        width: 20px;
        height: 20px;
    }

    .social-links {
        margin-top: 1.5rem;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.8s ease 0.3s;
}

.section-title.animate::after {
    width: 60px;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease 0.2s;
}

.bio.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}

.gallery-item.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) saturate(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 0.3;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    z-index: 2;
    transition: transform 0.3s ease;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Masonry Layout Heights */
.gallery-item:nth-child(3n+1) {
    grid-row: span 2;
}

.gallery-item:nth-child(3n+2) {
    grid-row: span 1;
}

.gallery-item:nth-child(3n+3) {
    grid-row: span 3;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-accent);
    color: var(--text-light);
    text-align: center;
    transition: background-color 0.3s ease;
}

.contact .section-title {
    color: var(--text-light);
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s;
}

.contact p.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-info {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.contact-info.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-info p:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: #3498db;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    /* Mobile Masonry Layout - 2 columns */
    .gallery-item:nth-child(2n+1) {
        grid-row: span 2;
    }

    .gallery-item:nth-child(2n) {
        grid-row: span 3;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tablet Masonry Layout - 2 columns */
    .gallery-item:nth-child(2n+1) {
        grid-row: span 2;
    }

    .gallery-item:nth-child(2n) {
        grid-row: span 3;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* A
dditional Beautiful Animations */
@keyframes heroEnter {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }

    70% {
        transform: scale(0.9) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-color);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Parallax Elements */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Enhanced Profile Image Animation */
.profile-image {
    animation: pulse 2s infinite;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), transparent, var(--accent-color));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Stagger Animation for Gallery Items */
.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

.gallery-item:nth-child(7) {
    animation-delay: 0.7s;
}

.gallery-item:nth-child(8) {
    animation-delay: 0.8s;
}

.gallery-item:nth-child(9) {
    animation-delay: 0.9s;
}

/* Smooth Transitions for Theme Changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Enhanced Modal Animation */
.modal {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    animation: modalZoom 0.4s ease;
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Hover Effects for Navigation */
.nav-brand:hover {
    transform: scale(1.05);
    color: var(--accent-color);
}

/* Enhanced Button Animations */
.theme-toggle:active {
    transform: scale(0.95);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    animation: bounce 2s infinite;
    font-size: 2rem;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.text-reveal.animate::before {
    transform: translateX(100%);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .theme-toggle {
        min-width: 50px;
        height: 35px;
    }

    .theme-toggle .sun-icon,
    .theme-toggle .moon-icon {
        font-size: 1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title-container {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .instagram-icon-inline {
        width: 40px;
        height: 40px;
        margin-top: 0.5rem;
    }

    .instagram-svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .instagram-icon-inline {
        width: 45px;
        height: 45px;
    }

    .instagram-svg {
        width: 22px;
        height: 22px;
    }
}

/* Dark theme specific enhancements */
[data-theme="dark"] .gallery-item {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .modal {
    background-color: rgba(0, 0, 0, 0.95);
}

/* Performance optimizations */
.gallery-item,
.hero-content,
.section-title,
.bio {
    will-change: transform, opacity;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Footer Styles */
.footer {
    background: var(--bg-accent);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.footer-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.footer-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.copyright {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-light);
    opacity: 0.7;
    font-style: italic;
    margin: 0;
}

/* Footer hover effects */
.footer:hover .copyright {
    opacity: 1;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.footer:hover .footer-tagline {
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Dark theme footer adjustments */
[data-theme="dark"] .footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .footer-tagline {
        font-size: 0.75rem;
    }
}

/* P
rofessional Typing Effect */
.typing-cursor {
    display: inline-block;
    background-color: var(--accent-color);
    margin-left: 3px;
    width: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Enhanced Bio Section with Professional Animations */
.bio {
    position: relative;
    overflow: hidden;
}

.bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.8s ease;
}

.bio:hover::before {
    left: 100%;
}

/* Professional Gallery Item Animations */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.gallery-item:hover::after {
    transform: translateX(100%) rotate(45deg);
}

/* Enhanced Section Titles */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.8s ease;
}

.section-title:hover::before {
    left: 100%;
}

/* Professional Modal Enhancements */
.modal-content {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

/* Enhanced Theme Toggle */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.theme-toggle:hover::before {
    left: 100%;
}

/* Professional Scroll Progress Bar */
.scroll-progress {
    background: linear-gradient(90deg, var(--accent-color), #667eea, #764ba2);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

/* Enhanced Navigation */
.nav-menu a {
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}