:root {
    --primary-color: #FF4D8F;
    --primary-color-rgb: 255, 77, 143;
    --secondary-color: #845EC2;
    --background-gradient-1: #13111C;
    --background-gradient-2: #201C2C;
    --background-gradient-3: #2D2640;
    --text-color: #FFFFFF;
    --accent-color: #00C9A7;
    --subtitle-color: #4D9EFF;
    --transition-speed: 0.3s;
    --gradient-angle: 45deg;
    --gradient-opacity: 0.8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--background-gradient-1) 0%, var(--background-gradient-2) 50%, var(--background-gradient-3) 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(255, 77, 143, 0.05) 0%, transparent 70%);
    opacity: 1;
}

@media (max-width: 768px) {
    .background-animation {
        opacity: 0.25;
    }
}

/* Navigation Styles */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.nav-profile-image {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.nav-profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.2);
    border-color: transparent;
}

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

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

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

/* Section Styles */
.section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

/* Home Section Enhanced */
#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
    margin: 0;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

#home .content-wrapper {
    max-width: 1000px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    display: inline-block;
    color: var(--text-color);
    text-align: center;
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

.title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at var(--mouse-x) var(--mouse-y), 
        var(--primary-color) 0%,
        var(--secondary-color) 25%,
        transparent 75%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: var(--gradient-opacity);
    transition: opacity 0.5s ease;
}

.title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: var(--text-color);
    opacity: calc(1 - var(--gradient-opacity));
    transition: opacity 0.5s ease;
}

/* Remove hover states as we're using proximity-based effect */
.title .highlight {
    color: inherit;
}

.section-title {
    position: relative;
    display: inline-block;
    color: var(--text-color);
    text-align: center;
    width: 100%;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    font-family: 'Raleway', sans-serif;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at var(--mouse-x) var(--mouse-y), 
        var(--primary-color) 0%,
        var(--secondary-color) 25%,
        var(--text-color) 75%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: var(--gradient-opacity);
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Remove the ::after pseudo-element since we don't need it anymore */
.section-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 0;
}

/* Remove hover states as we're using proximity-based effect */
.section-title .highlight {
    color: inherit;
}

.subtitle {
    font-size: 1.5rem !important;
    color: var(--accent-color) !important;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    max-width: 900px;
    white-space: nowrap;
    font-family: 'Raleway', sans-serif;
}

#home .subtitle {
    font-size: 1.5rem !important;
    color: var(--accent-color) !important;
}

.description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    opacity: 0.9;
    transform: translateY(20px);
    line-height: 1.4;
    font-family: 'Raleway', sans-serif;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition-speed);
    opacity: 0;
    transform: translateY(20px);
    background: rgba(0, 201, 167, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 201, 167, 0.3);
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.1);
    min-width: 180px;
    text-align: center;
}

/* Primary CTA - View My Work */
.cta-button:not(.secondary):not(.download) {
    background: rgba(0, 201, 167, 0.15);
    border: 2px solid rgba(0, 201, 167, 0.3);
    color: var(--accent-color);
    transition: all var(--transition-speed);
}

.cta-button:not(.secondary):not(.download):hover {
    transform: translateY(-5px);
    background: rgba(45, 38, 64, 0.75);
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.25),
                0 16px 48px rgba(var(--primary-color-rgb), 0.1),
                0 0 0 1px rgba(var(--primary-color-rgb), 0.05);
    border-color: transparent;
}

/* Secondary CTA - Let's Connect & Download Resume */
.cta-button.secondary,
.cta-button.download {
    background: rgba(0, 201, 167, 0.15);
    border: 2px solid rgba(0, 201, 167, 0.3);
    color: var(--accent-color);
    transition: all var(--transition-speed);
}

.cta-button.secondary:hover,
.cta-button.download:hover {
    transform: translateY(-5px);
    background: rgba(45, 38, 64, 0.75);
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.25),
                0 16px 48px rgba(var(--primary-color-rgb), 0.1),
                0 0 0 1px rgba(var(--primary-color-rgb), 0.05);
    border-color: transparent;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.5s;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 2s;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(10px, 10px); }
    100% { transform: rotate(45deg) translate(0, 0); }
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin: 0;
    padding: 0;
}

.about-text {
    font-size: 1.1rem;
}

.skill-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-list li {
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    text-align: center;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.view-more-btn {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-more-btn:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.view-more-btn.hidden {
    display: none;
}

.portfolio-item {
    background: rgba(45, 38, 64, 0.65);
    padding: 0;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
    cursor: pointer;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    background: rgba(45, 38, 64, 0.75);
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.25),
                0 16px 48px rgba(var(--primary-color-rgb), 0.1),
                0 0 0 1px rgba(var(--primary-color-rgb), 0.05);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}

.portfolio-content p {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-content .tag {
    padding: 0.2rem 0.6rem;
    background: rgba(0, 201, 167, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* CTA Buttons for Special Projects */
.cta-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.chat-btn {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.docs-btn {
    background: rgba(132, 94, 194, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.docs-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 94, 194, 0.3);
}

.cta-btn i {
    font-size: 0.8rem;
}

/* Responsive CTA Buttons */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        gap: 0.4rem;
    }
    
    .cta-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2100;
    backdrop-filter: blur(5px);
}

.portfolio-modal.active {
    display: flex !important;
}

.portfolio-modal .modal-content {
    background: var(--background-gradient-1);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 0;
    padding: 2rem;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-modal .modal-header {
    margin-bottom: 2rem;
    padding-right: 2rem;
    background: var(--background-gradient-1);
    position: sticky;
    top: 0;
    z-index: 2;
}

.portfolio-modal .project-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    text-align: left;
    font-family: 'Raleway', sans-serif;
}

.portfolio-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    padding-right: 1rem;
    margin-right: -1rem;
}

.portfolio-modal .detail-section {
    width: 100%;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-modal .detail-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.portfolio-modal .detail-section h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
}

.portfolio-modal .detail-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
    white-space: pre-line;
    opacity: 0.9;
}

.portfolio-modal .modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.portfolio-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Scrollbar styling for modal body */
.portfolio-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.portfolio-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

@media (max-width: 768px) {
    .portfolio-modal {
        padding: 1rem;
    }

    .portfolio-modal .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .portfolio-modal .project-title {
        font-size: 2rem;
    }
    
    .portfolio-modal .modal-close-btn {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Experience Timeline Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-content {
    background: rgba(45, 38, 64, 0.65);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 42%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(45, 38, 64, 0.75);
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.25),
                0 16px 48px rgba(var(--primary-color-rgb), 0.1),
                0 0 0 1px rgba(var(--primary-color-rgb), 0.05);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--background-gradient-2);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 77, 143, 0.3);
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.company-logo {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.company-logo:hover,
.timeline-content:hover ~ .timeline-marker .company-logo {
    filter: none;
}

.timeline-marker-info {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    white-space: nowrap;
}

.timeline-item:nth-child(odd) .timeline-marker-info {
    right: calc(50% + 60px);
    text-align: right;
    align-items: flex-end;
}

.timeline-item:nth-child(even) .timeline-marker-info {
    left: calc(50% + 60px);
    text-align: left;
    align-items: flex-start;
}

.timeline-marker-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    line-height: 1.2;
}

.timeline-marker-company {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.2;
}

/* Mobile Timeline Styles */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start;
        margin-bottom: 6rem;
        padding-top: 40px;
        position: relative;
        width: 100%;
        padding-left: 0;
    }

    .timeline-content {
        width: calc(100% - 60px) !important;
        margin-left: 60px !important;
        padding: 1.5rem;
        margin-top: 25px;
    }

    .timeline-marker {
        left: 30px;
        top: 20px;
        width: 50px;
        height: 50px;
        transform: translate(-50%, -50%);
    }

    .timeline-marker-info {
        position: absolute;
        left: 70px !important;
        top: 20px !important;
        transform: translateY(-50%) !important;
        text-align: left !important;
        align-items: flex-start !important;
        width: calc(100% - 85px);
        padding-right: 20px;
        background: none;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
    }

    .timeline-marker-date {
        font-size: 0.9rem;
        margin-bottom: 4px;
        color: var(--accent-color);
    }

    .timeline-marker-company {
        font-size: 1rem;
        color: var(--text-color);
        opacity: 0.9;
        font-weight: 500;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px) !important;
        margin-left: 60px !important;
        transform: none;
    }

    .timeline-content {
        margin-right: 0 !important;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-subtitle {
        font-size: 0.9rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }
}

/* Hobbies Section */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.hobby-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all var(--transition-speed) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.hobby-item:hover {
    transform: translateY(-5px) !important;
    border-color: transparent !important;
    background: rgba(45, 38, 64, 0.75) !important;
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.25),
                0 16px 48px rgba(var(--primary-color-rgb), 0.1),
                0 0 0 1px rgba(var(--primary-color-rgb), 0.05) !important;
}

.hobby-content {
    position: relative;
    z-index: 1;
}

.hobby-item {
    transition: all var(--transition-speed);
}

.hobby-item:hover {
    transform: translateY(-5px);
    border-color: transparent;
}

.hobby-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-speed);
    border-radius: 15px;
}

.hobby-item:hover::before {
    opacity: 1;
}

.hobby-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-speed);
    position: relative;
}

.hobby-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    position: relative;
    font-family: 'Raleway', sans-serif;
}

.hobby-item p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all var(--transition-speed);
    position: relative;
}

.hobby-item:hover .hobby-icon,
.hobby-item:hover h3,
.hobby-item:hover p {
    color: white;
}

/* Remove hover overlay */
.hover-overlay {
    display: none;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.form-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(45, 38, 64, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

/* Button States */
.submit-button {
    position: relative;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
    padding: 1rem;
    color: var(--background-gradient-1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.submit-button:hover:not(:disabled) {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.submit-button.sending {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.submit-button.success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--background-gradient-1);
}

.submit-button.error {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

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

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all var(--transition-speed);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .cta-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .quick-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.25rem !important;
    }

    #home .subtitle {
        font-size: 1.25rem !important;
    }

    .description {
        font-size: 1.1rem;
    }

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

    .timeline-item {
        justify-content: flex-start;
    }

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

    .timeline-marker {
        left: 30px;
        width: 50px;
        height: 50px;
    }

    .timeline-marker-info {
        left: 70px !important;
        text-align: left !important;
        align-items: flex-start !important;
        width: auto;
        max-width: calc(100% - 90px);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        transform: none;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Gallery Overlay Styles */
.gallery-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    background: var(--background-gradient-1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.gallery-overlay.active {
    display: block;
    opacity: 1;
}

.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 15px;
    background: inherit;
    z-index: 2001;
}

/* Scrollbar styling */
.gallery-content::-webkit-scrollbar {
    width: 6px;
}

.gallery-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.gallery-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.overlay-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    z-index: 2001;
}

.overlay-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: rgba(0, 0, 0, 0.9);
}

/* Add a background overlay when gallery is active */
.gallery-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1999;
    display: none;
}

.gallery-backdrop.active {
    display: block;
}

/* Gallery Title */
.gallery-content .title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gallery-content .title[data-text] {
    position: relative;
    display: inline-block;
}

.gallery-content .title[data-text]::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
}

/* Gallery Grid Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    max-width: 100%;
    margin: 0 auto;
}

/* Photography Gallery Specific Styles */
#photography-overlay .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1/1;
    width: 100%;
    background: none;
}

#photography-overlay .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

#photography-overlay .gallery-item:hover img {
    transform: scale(1.05);
}

/* Travel Gallery Specific Styles */
#travel-overlay .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 2/3;
    width: 100%;
    background: none;
}

#travel-overlay .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

#travel-overlay .gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
}

#travel-overlay .photo-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    z-index: 2;
    background: none;
    padding: 0;
}

#travel-overlay .photo-info h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#travel-overlay .photo-info p {
    margin: 0.3rem 0 0;
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#travel-overlay .gallery-item:hover img {
    transform: scale(1.05);
}

/* Reading Overlay Styles */
#reading-overlay .reading-content {
    max-width: 1200px;
    padding: 2rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    padding: 2rem 0;
}

.book-tile {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.book-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.book-cover {
    position: relative;
    padding-top: 150%; /* 2:3 aspect ratio for book covers */
    overflow: hidden;
}

.book-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-tile:hover .book-cover img {
    transform: scale(1.05);
}

.book-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.book-tile:hover .book-info {
    transform: translateY(0);
}

.book-info h3 {
    font-size: 1rem;
    margin: 0;
    color: white;
    font-family: 'Raleway', sans-serif;
}

.book-info .author {
    font-size: 0.8rem;
    margin: 0.2rem 0;
    color: var(--accent-color);
}

.book-info .description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .book-info {
        padding: 0.8rem;
    }

    .book-info h3 {
        font-size: 0.9rem;
    }

    .book-info .author {
        font-size: 0.75rem;
    }

    .book-info .description {
        font-size: 0.7rem;
    }
}

/* Sports Overlay Styles */
.sports-content {
    padding: 2rem;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.sport-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sport-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sport-icon {
    position: relative;
    width: 100%;
    height: 100%;
}

.sport-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sport-tile:hover .sport-icon img {
    transform: scale(1.05);
}

.sport-icon h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.sport-tile:hover .sport-icon h3 {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.sport-info {
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.sport-info h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-family: 'Raleway', sans-serif;
}

.sport-info .description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .sports-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sports-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Modal Styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2005;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.modal-content img {
    max-width: calc(100% - 120px); /* Account for button width on both sides */
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Modal Navigation Buttons */
.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2006;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev-btn {
    left: 5%;
}

.modal-next-btn {
    right: 5%;
}

/* Modal Close Button */
.modal-close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2006;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 3rem;
    }

    .modal-content img {
        max-width: calc(100% - 80px);
    }

    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .modal-prev-btn {
        left: 1rem;
    }

    .modal-next-btn {
        right: 1rem;
    }

    .gallery-item {
        aspect-ratio: 2/3;
    }
    
    .photo-info h3 {
        font-size: 1.3rem;
    }

    .photo-info p {
        font-size: 1rem;
    }
}

/* Update z-index for gallery overlay */
.gallery-overlay {
    z-index: 2000;
}

.gallery-content {
    z-index: 2001;
}

/* Move modal outside of gallery-content */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2005;
}

/* Add button labels */
.modal-nav-btn::after {
    display: none;
}

.modal-prev-btn::after {
    display: none;
}

.modal-next-btn::after {
    display: none;
}

.modal-close-btn::after {
    display: none;
}

.modal-nav-btn:hover::after,
.modal-close-btn:hover::after {
    display: none;
}

/* Update gallery item styles */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Navigation Buttons */
.prev-btn,
.next-btn,
.close-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    backdrop-filter: blur(5px);
}

.close-btn {
    top: -50px;
    right: 0;
}

.prev-btn {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.close-btn:hover,
.prev-btn:hover,
.next-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-overlay {
        width: 90%;
        height: 85%;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .overlay-close-btn {
        top: 10px;
        right: 10px;
    }
}

/* Book Modal Styles */
.book-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-modal.active {
    display: flex;
    opacity: 1;
}

.book-modal-content {
    background: var(--background-gradient-2);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.book-modal .modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.book-modal .modal-close-btn:hover {
    color: var(--primary-color);
}

.book-summary-content {
    padding-right: 1rem;
}

.book-summary-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-family: 'Raleway', sans-serif;
}

.book-summary-content h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    font-weight: normal;
    font-family: 'Raleway', sans-serif;
}

.book-summary-content .summary {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
}

.book-summary-content .summary ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.book-summary-content .summary li {
    margin-bottom: 0.5rem;
}

/* Style bullet points */
.book-summary-content .summary {
    white-space: pre-wrap;
}

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

.book-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.book-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .book-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

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

    .book-summary-content h3 {
        font-size: 1.1rem;
    }

    .book-summary-content .summary {
        font-size: 0.9rem;
    }
}

/* Values Section Styles */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.value-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.value-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    padding-right: 24px;
}

.value-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.value-icon {
    font-size: 1.25rem;
    min-width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.expand-indicator {
    display: none;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.5;
    transition: transform 0.3s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.value-item h3 {
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: transparent;
    background: rgba(45, 38, 64, 0.75);
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.25),
                0 16px 48px rgba(var(--primary-color-rgb), 0.1),
                0 0 0 1px rgba(var(--primary-color-rgb), 0.05);
}

.value-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out, padding-top 0.3s ease-out;
    opacity: 0;
    text-align: left;
}

.value-item:hover .value-details {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (min-width: 769px) {
    .value-item:hover .value-details {
        max-height: 100px;
        opacity: 1;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.value-details p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .value-item {
        padding: 0.75rem;
    }
    
    .value-item:hover {
        transform: none;
    }
    
    .expand-indicator {
        display: block;
    }
    
    .value-item.expanded .expand-indicator {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .value-item.expanded .value-details {
        max-height: 100px;
        opacity: 1;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.portfolio-grid-overlay {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid-overlay .portfolio-item {
    background: rgba(45, 38, 64, 0.65);
    padding: 0;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-grid-overlay .portfolio-item:hover {
    transform: translateY(-5px);
    background: rgba(45, 38, 64, 0.75);
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.25),
                0 16px 48px rgba(var(--primary-color-rgb), 0.1),
                0 0 0 1px rgba(var(--primary-color-rgb), 0.05);
}

.portfolio-grid-overlay .portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio-grid-overlay .portfolio-item .portfolio-info {
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.portfolio-grid-overlay .portfolio-item h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Raleway', sans-serif;
}

.portfolio-grid-overlay .portfolio-item p {
    color: var(--text-color);
    opacity: 0.9;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    width: 100%;
}

.portfolio-grid-overlay .portfolio-item .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.portfolio-grid-overlay .portfolio-item .tag {
    padding: 0.2rem 0.6rem;
    background: rgba(0, 201, 167, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .portfolio-grid-overlay {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

.hero-container {
    display: none;
}

.hero-content {
    display: none;
}

.profile-image {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

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

    .profile-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
}

/* Profile Modal Styles */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.profile-modal-close {
    position: absolute;
    right: -40px;
    top: -40px;
    color: var(--text-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-modal-close:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Animation for modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-60%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.profile-modal.show {
    display: flex;
}

.profile-modal.show .profile-modal-content {
    animation: modalFadeIn 0.3s ease forwards;
}

@media (max-width: 768px) {
    .profile-modal-content {
        width: 90%;
        margin: 0 auto;
    }
    
    .profile-modal-close {
        right: 10px;
        top: -50px;
    }
}

@media (max-width: 1024px) {
    #home .content-wrapper {
        max-width: 90%;
    }
    
    .subtitle {
        white-space: normal;
        text-align: center;
    }
    
    .description {
        text-align: center;
    }
}

/* Photo Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: none !important;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 15px;
    backdrop-filter: none !important;
    border: none !important;
}

.gallery-item:hover .photo-info {
    transform: translateY(0);
    border-color: transparent !important;
    box-shadow: none !important;
    background: none !important;
    backdrop-filter: none !important;
}

.photo-info h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-family: 'Raleway', sans-serif;
}

.photo-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.fullsize-photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.fullsize-photo-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
}

.fullsize-photo-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-fullsize {
    position: absolute;
    top: -2rem;
    right: -2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2001;
}

.close-fullsize:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .photo-info {
        padding: 0.5rem;
    }

    .photo-info h3 {
        font-size: 0.9rem;
    }

    .photo-info p {
        font-size: 0.8rem;
    }

    .fullsize-photo-container {
        width: 95vw;
    }

    .close-fullsize {
        top: -1.5rem;
        right: -1rem;
        font-size: 1.5rem;
    }
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    margin-left: 0px; /* Reduced from 20px to move it more to the left */
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0; /* Changed from 20px to 0 to align with screen edge */
    width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 0 12px 12px 0; /* Changed to only round the right corners */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    width: 100%;
}

.mobile-nav-links li {
    margin: 8px 0; /* Reduced from 12px */
}

.mobile-nav-links a {
    color: var(--text-color);
    font-size: 16px; /* Reduced from 18px */
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0; /* Reduced from 6px */
}

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

.mobile-nav-close {
    position: absolute;
    top: 8px; /* Reduced from 10px */
    right: 8px; /* Reduced from 10px */
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-color);
    font-size: 16px; /* Reduced from 18px */
    cursor: pointer;
    width: 24px; /* Reduced from 28px */
    height: 24px; /* Reduced from 28px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
}

/* Responsive Design Improvements */
@media (max-width: 1024px) {
    /* Keep other responsive styles but remove timeline-related ones */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-content {
        justify-content: flex-end;
        padding: 0 20px;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .content-wrapper {
        max-width: 100%;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 3.5rem;
    }

    .title::before {
        opacity: 1;
        background-image: radial-gradient(circle at center, 
            var(--primary-color) 0%,
            var(--secondary-color) 50%,
            transparent 100%);
    }

    .title::after {
        opacity: 0;
    }

    .section-title::before {
        opacity: 1;
        background-image: radial-gradient(circle at center, 
            var(--primary-color) 0%,
            var(--secondary-color) 50%,
            var(--text-color) 100%);
    }

    .section-title::after {
        opacity: 0;
    }

    .subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        margin: 10px 0;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .form-container {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-modal .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .gallery-item {
        width: 100%;
    }
    
    .book-tile {
        width: 100%;
    }
    
    .sport-tile {
        width: 100%;
    }
}

/* Touch-friendly interactions */
@media (hover: none) {
    .portfolio-item:hover,
    .value-item:hover,
    .hobby-item:hover,
    .sport-tile:hover {
        transform: none;
    }
    
    .cta-button:hover,
    .submit-button:hover {
        transform: none;
        background: var(--primary-color);
    }
    
    .social-icon:hover {
        transform: none;
    }
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-header {
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-family: 'Raleway', sans-serif;
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: var(--subtitle-color);
    font-weight: 500;
    opacity: 1;
    font-family: 'Raleway', sans-serif;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 1rem;
}

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

.timeline-tech span {
    padding: 0.2rem 0.6rem;
    background: rgba(0, 201, 167, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Mobile Timeline Styles */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start;
        margin-bottom: 6rem;
        padding-top: 40px;
        position: relative;
        width: 100%;
        padding-left: 0;
    }

    .timeline-content {
        width: calc(100% - 60px) !important;
        margin-left: 60px !important;
        padding: 1.5rem;
        margin-top: 25px;
    }

    .timeline-marker {
        left: 30px;
        top: 20px;
        width: 50px;
        height: 50px;
        transform: translate(-50%, -50%);
    }

    .timeline-marker-info {
        position: absolute;
        left: 70px !important;
        top: 20px !important;
        transform: translateY(-50%) !important;
        text-align: left !important;
        align-items: flex-start !important;
        width: calc(100% - 85px);
        padding-right: 20px;
        background: none;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
    }

    .timeline-marker-date {
        font-size: 0.9rem;
        margin-bottom: 4px;
        color: var(--accent-color);
    }

    .timeline-marker-company {
        font-size: 1rem;
        color: var(--text-color);
        opacity: 0.9;
        font-weight: 500;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px) !important;
        margin-left: 60px !important;
        transform: none;
    }

    .timeline-content {
        margin-right: 0 !important;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-subtitle {
        font-size: 0.9rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }
}

.value-header .expand-indicator {
    display: none !important;
}

@media (max-width: 768px) {
    .value-header .expand-indicator {
        display: block !important;
        font-size: 1rem;
        color: var(--text-color);
        opacity: 0.5;
        transition: transform 0.3s ease;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .value-item.expanded .expand-indicator {
        transform: translateY(-50%) rotate(180deg);
    }
} 
