/* Constants */
:root {
    --main-color: #134ecd;
    --main-color-light: #689ffc;
    --main-color-dark: #1e40af;
    --main-shadow-color: #2626dc26;
    --secondary-color: #414042;
    --secondary-color-light: #9ca3af;
    --secondary-color-dark: #101418;
    --background-color: #f9fafb;
    --background-color-light: #ffffff;
    --background-color-dark: #e5e5e5;

    --shadow-color: #00000026;
    --shadow-color-light: #00000012;
    --shadow-color-dark: #00000038;
    --light-shadow-color: #ffffff26;
    --dark-shadow-color: #0000007f;
    --dark-shadow-color-dark: #000000e5;
    
    --error-color: #ff7373;
    --error-color-dark: #991b1b;
    --error-color-light: #ffebee;
    --error-shadow-color: #dc262626;
    --warning-color: #f59e0b;
    --warning-color-dark: #92400e;
    --warning-color-light: #ffffeb;
    --warning-shadow-color: #dcdc2626;
    --success-color: #22c55e;
    --success-color-dark: #166534;
    --success-color-light: #eeffeb;
    --success-shadow-color: #26dc2626;
}

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

html, body {
    height: 100%;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}


body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--background-color-light);
    display: flex;
    flex-direction: column;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background-color-light);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--background-color-dark);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid var(--background-color-dark);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-color-light);
    border: 1px solid var(--background-color-dark);
    border-radius: 6px;
    box-shadow: 0 4px 6px var(--shadow-color);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.lang-menu a:hover {
    background-color: var(--background-color);
    color: var(--main-color);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color-dark);
    transition: 0.1s;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    max-width: 600px;
    width: 90%;
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color-dark);
    animation: slideDown 0.3s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
    font-size: 0.95rem;
}

.flash-error {
    background-color: var(--error-color);
    border-left: 4px solid var(--error-color-dark);
    color: var(--secondary-color-dark);
}

.flash-success {
    background-color: var(--success-color);
    border-left: 4px solid var(--success-color-dark);
    color: var(--success-color);
}

.flash-warning {
    background-color: var(--warning-color);
    border-left: 4px solid var(--warning-color-dark);
    color: var(--warning-color);
}

.flash-info {
    background-color: var(--main-color-light);
    border-left: 4px solid var(--main-color-dark);
    color: var(--main-color-dark);
}

.flash-text {
    flex: 1;
    margin-right: 12px;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 2px 6px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
    background-color: var(--shadow-color);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary-color-dark);
    color: var(--background-color-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

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

.notification-warning {
    background: var(--warning-color);
}

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

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

.notification-close {
    background: none;
    border: none;
    color: var(--background-color-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--main-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--background-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-secondary:hover {
    background-color: var(--main-color);
    color: var(--background-color-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--background-color-dark);
}

.btn-outline:hover {
    background-color: var(--background-color);
    border-color: var(--main-color);
    color: var(--main-color);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
    background: var(--main-color);
    color: var(--background-color-light);
    margin-top: 70px;
    flex: 1 1 auto;
}

.hero-container {
    text-align: center;
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--background-color);
}

.hero-buttons {
    justify-content: center;
    margin-top: 2rem;
}

.profile-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-lazy-loading {
    position: relative;
    overflow: hidden;
}

.image-lazy-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--background-color) 25%, var(--background-color-dark) 50%, var(--background-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.image-loading {
    opacity: 0.7;
}

.image-loaded {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-error {
    background-color: var(--error-color-light) !important;
    border: 2px dashed var(--error-color-dark) !important;
}

.project-image, .project-placeholder-large {
    width: 100%;
    display: block;
}

.image-error p {
    color: var(--error-color-dark);
    align-items: center;
    height: 100%;
    display: flex;
    justify-content: center;
}

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.animate-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--animation-delay, 0s);
}

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

/* Specific animations for contact page elements */
.contact-header.animate-element {
    animation-delay: 0.02s;
}

.contact-form-section.animate-element {
    animation-delay: 0.02s;
}

.contact-info-section.animate-element {
    animation-delay: 0.02s;
}

.form-group.animate-element {
    transition-delay: calc(var(--animation-delay, 0s) + 0.02s);
}

.contact-method.animate-element {
    transition-delay: calc(var(--animation-delay, 0s) + 0.02s);
}

.social-contact.animate-element {
    transition-delay: calc(var(--animation-delay, 0s) + 0.02s);
}

.navbar-scrolled {
    background: var(--background-color) !important;
    box-shadow: 0 2px 20px var(--shadow-color) !important;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--secondary-color-dark);
}

/* Projects Section */
.recent-projects {
    padding-top: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.project-card {
    background: var(--background-color-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.project-image {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: var(--background-color);
}

/* Letterboxing/pillarboxing support for project cards */
.project-image.letterbox,
.project-image.pillarbox {
    background: var(--background-color-light);
}

.project-image.letterbox .image-content,
.project-image.pillarbox .image-content {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.project-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color-light);
}

.project-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary-color-dark);
    width: 100%;
    display: block;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: auto;
    width: 100%;
}

.tag {
    background: #e0e7ff;
    color: var(--main-color-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-all-projects {
    margin-top: 2rem;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--secondary-color-dark);
    color: var(--background-color);
    padding: 2rem 0;
}

.footer-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-row-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    margin: 0;
}

.footer-legal-links {
    font-size: 0.9rem;
    text-align: center;
}

.footer-legal-links a {
    color: var(--secondary-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--warning-color);
}

/* Links styling */
.external-link, .internal-link {
    color: var(--main-color);
    text-decoration: none;
}

.external-link:hover, .internal-link:hover {
    color: var(--main-color-dark);
    text-decoration: underline;
}

.external-link::after, .internal-link::after {
    content: '';
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    margin-left: 0.25em;
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: baseline;
    transition: opacity 0.2s ease;
}

.external-link::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%232563eb" d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"/></svg>');
}

.internal-link::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%232563eb" d="M340.8 363.2 C358.5 363.2 372.8 348.9 372.8 331.2 C372.8 313.5 358.5 299.2 340.8 299.2 L258.1 299.2 L459.4 97.8 C471.9 85.3 471.9 65 459.4 52.5 C446.9 40 426.6 40 414.1 52.5 L212.8 253.9 L212.8 171.2 C212.8 153.5 198.5 139.2 180.8 139.2 C163.1 139.2 148.8 153.5 148.8 171.2 L148.8 331.2 C148.8 348.9 163.1 363.2 180.8 363.2 L152 363.2 zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"/></svg>');
}

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

.social-link {
    color: var(--secondary-color-light);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--warning-color);
}

/* Projects Page */
.projects-page {
    padding: 60px 0 80px;
    margin-top: 70px;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--background-color-dark);
    background: var(--background-color-light);
    color: var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--main-color);
    color: var(--background-color-light);
    border-color: var(--main-color);
}

.projects-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* Project filtering animation classes */
.project-hidden {
    display: none !important;
}

.project-visible {
    display: flex !important;
    animation: fadeIn 0.5s ease-in-out;
}

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

.project-card-full {
    background: var(--background-color-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.project-card-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--warning-color-light);
    color: var(--error-color-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--background-color-dark);
    width: 100%;
    flex-shrink: 0;
}

.project-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Project Detail Page */
.project-detail {
    padding: 60px 0 80px;
    margin-top: 70px;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-title {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.project-description {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.project-section {
    margin-bottom: 2rem;
}

.project-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.project-section p {
    color: var(--secondary-color);
    line-height: 1.7;
    text-align: justify;
}

.project-image-large {
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-placeholder-large {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color-light);
    height: auto;
    width: 80% !important;
}

.project-placeholder-large i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.project-gallery {
    margin-top: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    max-width: 100%;
}

@media (min-width: 2160px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 2000px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1600px) and (max-width: 2159px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (min-width: 768px) and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.gallery-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color-light);
}

.gallery-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Gallery image styles */
.gallery-item {
    display: flex;
    flex-direction: column;
}

.gallery-image {
    aspect-ratio: 4/3;
    background-color: var(--background-color-light);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--background-color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-color-dark);
}

.gallery-image.loaded {
    color: transparent;
}

.gallery-image-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.4;
}

.gallery-empty {
    text-align: center;
    color: var(--secondary-color);
    padding: 2rem;
    font-style: italic;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-shadow-color-dark);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 95vw;
    height: 95vh;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--background-color-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: var(--dark-shadow-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: var(--dark-shadow-color-dark);
    opacity: 1;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    height: 80vh;
    max-width: 90vw;
    max-height: 80vh;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-color-light);
    object-fit: contain;
}

.lightbox-image.loaded {
    color: transparent;
}

.lightbox-description {
    position: static;
    margin-top: 20px;
    background: var(--dark-shadow-color-dark);
    color: var(--background-color-light);
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 80%;
    z-index: 1001;
}

.lightbox-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--background-color-light);
    border-top: 1px solid var(--background-color-dark);
}

/* Lightbox hover arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--dark-shadow-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2002;
    color: var(--background-color-light);
}

.lightbox-arrow:hover {
    background: var(--dark-shadow-color-dark);
}

.lightbox-arrow-left {
    left: 20px;
}

.lightbox-arrow-right {
    right: 20px;
}

/* Show arrows on hover */
.lightbox-content:hover .lightbox-arrow {
    opacity: 1;
}

.lightbox-arrow svg {
    width: 20px;
    height: 20px;
}

/* Counter overlay positioned on the image */
.lightbox-counter-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-shadow-color);
    color: var(--background-color-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show counter and arrows on hover */
.lightbox-content:hover .lightbox-counter-overlay,
.lightbox-content:hover .lightbox-arrow {
    opacity: 1;
}

/* Responsive lightbox - mobile only */
@media (max-width: 768px) and (orientation: portrait) {
    .lightbox-content {
        width: 95vw;
        height: 95vh;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image-container {
        width: 95vw;
        height: 70vh;
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-description {
        margin-top: 10px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

.project-info-card {
    background: var(--background-color-light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
    margin-bottom: 2rem;
}

.project-info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.info-item {
    margin-bottom: 1rem;
}

.info-label {
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

/* About Page */
.about-page {
    padding: 60px 0 80px;
    margin-top: 70px;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-main {
    flex: 2;
}

.about-sidebar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-sidebar-top,
.about-sidebar-bottom {
    width: 100%;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-color-dark);
}

.about-section p {
    color: var(--secondary-color);
    line-height: 1.7;
    text-align: justify;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-color-light);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color-dark);
}

.skill-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--main-color);
    border-radius: 50%;
    border: 3px solid var(--background-color-dark);
}

.timeline-item a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--background-color-light);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color-light);
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.about-section .learn-more-text {
    text-align: right;
    color: var(--secondary-color);
    text-decoration: underline;
    font-size: 0.9rem;
    margin: 0;
}

.timeline-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
    color: var(--main-color);
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--secondary-color-dark);
}

.timeline-meta {
    color: var(--main-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Multi-track Timeline for Parallel Activities */
.timeline-parallel {
    position: relative;
}

/* Track 1 - 0.5rem offset */
.timeline-track-1 {
    margin-left: 2rem;
}

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

.timeline-track-1 .timeline-marker {
    left: -2.5rem;
}

/* Track 2 - 1rem offset */
.timeline-track-2 {
    margin-left: 4rem;
}

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

.timeline-track-2::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -4rem;
    width: 2px;
    background: var(--background-color-dark);
    transform: translateX(-50%);
}

.timeline-track-2 .timeline-marker {
    left: -3rem;
}

.profile-card {
    background: var(--background-color-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
    text-align: center;
    margin-bottom: 2rem;
}

.profile-card .profile-image {
    margin-bottom: 1rem;
}

.profile-card .profile-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: var(--background-color);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-card .profile-placeholder i {
    font-size: 3rem;
}

.profile-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color-dark);
}

.profile-title {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.profile-contact {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--secondary-color);
}

.contact-item i {
    color: var(--main-color);
    width: 1rem;
}

.skills-detailed {
    background: var(--background-color-light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
    margin-bottom: 2rem;
}

.skills-detailed h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.skill-bar {
    margin-bottom: 1rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-progress {
    height: 8px;
    background: var(--background-color-dark);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), #3b82f6);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.skill-fill[data-width="0"] { width: 0%; }
.skill-fill[data-width="1"] { width: 1%; }
.skill-fill[data-width="2"] { width: 2%; }
.skill-fill[data-width="3"] { width: 3%; }
.skill-fill[data-width="4"] { width: 4%; }
.skill-fill[data-width="5"] { width: 5%; }
.skill-fill[data-width="6"] { width: 6%; }
.skill-fill[data-width="7"] { width: 7%; }
.skill-fill[data-width="8"] { width: 8%; }
.skill-fill[data-width="9"] { width: 9%; }
.skill-fill[data-width="10"] { width: 10%; }
.skill-fill[data-width="11"] { width: 11%; }
.skill-fill[data-width="12"] { width: 12%; }
.skill-fill[data-width="13"] { width: 13%; }
.skill-fill[data-width="14"] { width: 14%; }
.skill-fill[data-width="15"] { width: 15%; }
.skill-fill[data-width="16"] { width: 16%; }
.skill-fill[data-width="17"] { width: 17%; }
.skill-fill[data-width="18"] { width: 18%; }
.skill-fill[data-width="19"] { width: 19%; }
.skill-fill[data-width="20"] { width: 20%; }
.skill-fill[data-width="21"] { width: 21%; }
.skill-fill[data-width="22"] { width: 22%; }
.skill-fill[data-width="23"] { width: 23%; }
.skill-fill[data-width="24"] { width: 24%; }
.skill-fill[data-width="25"] { width: 25%; }
.skill-fill[data-width="26"] { width: 26%; }
.skill-fill[data-width="27"] { width: 27%; }
.skill-fill[data-width="28"] { width: 28%; }
.skill-fill[data-width="29"] { width: 29%; }
.skill-fill[data-width="30"] { width: 30%; }
.skill-fill[data-width="31"] { width: 31%; }
.skill-fill[data-width="32"] { width: 32%; }
.skill-fill[data-width="33"] { width: 33%; }
.skill-fill[data-width="34"] { width: 34%; }
.skill-fill[data-width="35"] { width: 35%; }
.skill-fill[data-width="36"] { width: 36%; }
.skill-fill[data-width="37"] { width: 37%; }
.skill-fill[data-width="38"] { width: 38%; }
.skill-fill[data-width="39"] { width: 39%; }
.skill-fill[data-width="40"] { width: 40%; }
.skill-fill[data-width="41"] { width: 41%; }
.skill-fill[data-width="42"] { width: 42%; }
.skill-fill[data-width="43"] { width: 43%; }
.skill-fill[data-width="44"] { width: 44%; }
.skill-fill[data-width="45"] { width: 45%; }
.skill-fill[data-width="46"] { width: 46%; }
.skill-fill[data-width="47"] { width: 47%; }
.skill-fill[data-width="48"] { width: 48%; }
.skill-fill[data-width="49"] { width: 49%; }
.skill-fill[data-width="50"] { width: 50%; }
.skill-fill[data-width="51"] { width: 51%; }
.skill-fill[data-width="52"] { width: 52%; }
.skill-fill[data-width="53"] { width: 53%; }
.skill-fill[data-width="54"] { width: 54%; }
.skill-fill[data-width="55"] { width: 55%; }
.skill-fill[data-width="56"] { width: 56%; }
.skill-fill[data-width="57"] { width: 57%; }
.skill-fill[data-width="58"] { width: 58%; }
.skill-fill[data-width="59"] { width: 59%; }
.skill-fill[data-width="60"] { width: 60%; }
.skill-fill[data-width="61"] { width: 61%; }
.skill-fill[data-width="62"] { width: 62%; }
.skill-fill[data-width="63"] { width: 63%; }
.skill-fill[data-width="64"] { width: 64%; }
.skill-fill[data-width="65"] { width: 65%; }
.skill-fill[data-width="66"] { width: 66%; }
.skill-fill[data-width="67"] { width: 67%; }
.skill-fill[data-width="68"] { width: 68%; }
.skill-fill[data-width="69"] { width: 69%; }
.skill-fill[data-width="70"] { width: 70%; }
.skill-fill[data-width="71"] { width: 71%; }
.skill-fill[data-width="72"] { width: 72%; }
.skill-fill[data-width="73"] { width: 73%; }
.skill-fill[data-width="74"] { width: 74%; }
.skill-fill[data-width="75"] { width: 75%; }
.skill-fill[data-width="76"] { width: 76%; }
.skill-fill[data-width="77"] { width: 77%; }
.skill-fill[data-width="78"] { width: 78%; }
.skill-fill[data-width="79"] { width: 79%; }
.skill-fill[data-width="80"] { width: 80%; }
.skill-fill[data-width="81"] { width: 81%; }
.skill-fill[data-width="82"] { width: 82%; }
.skill-fill[data-width="83"] { width: 83%; }
.skill-fill[data-width="84"] { width: 84%; }
.skill-fill[data-width="85"] { width: 85%; }
.skill-fill[data-width="86"] { width: 86%; }
.skill-fill[data-width="87"] { width: 87%; }
.skill-fill[data-width="88"] { width: 88%; }
.skill-fill[data-width="89"] { width: 89%; }
.skill-fill[data-width="90"] { width: 90%; }
.skill-fill[data-width="91"] { width: 91%; }
.skill-fill[data-width="92"] { width: 92%; }
.skill-fill[data-width="93"] { width: 93%; }
.skill-fill[data-width="94"] { width: 94%; }
.skill-fill[data-width="95"] { width: 95%; }
.skill-fill[data-width="96"] { width: 96%; }
.skill-fill[data-width="97"] { width: 97%; }
.skill-fill[data-width="98"] { width: 98%; }
.skill-fill[data-width="99"] { width: 99%; }
.skill-fill[data-width="100"] { width: 100%; }

.download-cv {
    background: var(--background-color-light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
    text-align: center;
}

/* Contact Page */
.contact-page {
    padding: 60px 0 80px;
    margin-top: 70px;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.contact-header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-form-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-color-dark);
}

.contact-form {
    background: var(--background-color-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px var(--main-shadow-color);
}

.contact-info-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.contact-info-section p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-color-light);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color-light);
}

a {
    text-decoration: none;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--background-color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Ensure SVGs inside contact-icon inherit the correct color */
.contact-icon svg {
    fill: currentColor;
}

/* Make sure links inside contact-icon don't interfere with styling */
.contact-icon a {
    color: inherit;
    text-decoration: none;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--secondary-color-dark);
}

.contact-details p {
    color: var(--secondary-color);
    margin: 0;
}

.social-contact h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color-dark);
}

.social-links-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-link-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-color-light);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color-light);
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-link-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
    color: var(--main-color);
}

/* SVG icons in social links should match Font Awesome styling */
.social-link-contact svg {
    display: inline-block;
    vertical-align: -0.125em;
}

/* Ensure Font Awesome and SVG icons have consistent sizing */
.social-link-contact i,
.social-link-contact svg {
    font-size: 1.25rem;
    color: var(--main-color);
    flex-shrink: 0;
}

/* Local SVG Icon Styles */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

.icon-sm {
    width: 0.875em;
    height: 0.875em;
}

.icon-lg {
    width: 1.25em;
    height: 1.25em;
}

.icon-xl {
    width: 1.5em;
    height: 1.5em;
}

.icon-2xl {
    width: 2em;
    height: 2em;
}

.icon-3xl {
    width: 3em;
    height: 3em;
}

/* Ensure all icons in different contexts have consistent styling */
.skill-icon .icon,
.service-icon .icon,
.contact-icon .icon {
    font-size: inherit;
}

/* Social link icons */
.social-link .icon {
    font-size: 1.25rem;
}

/* Project placeholder icons */
.project-placeholder .icon,
.gallery-placeholder .icon {
    font-size: inherit;
}

/* Navigation and button icons */
.btn .icon {
    font-size: 1rem;
}

/* Security Features */

/* Hide honeypot field - invisible to users but visible to bots */
input[name="website"] {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Error message styling */
.error-message {
    display: block;
    color: var(--error-color-dark);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

/* Character counter */
.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: var(--warning-color-dark);
}

.char-counter.error {
    color: var(--error-color-dark);
}

/* Privacy Checkbox Styling */
.form-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    gap: 0.75rem;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--main-color);
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

.form-checkbox .error-message {
    margin-left: 26px;
    margin-top: 0.25rem;
}

/* Form submission states */
.contact-form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form.submitting .btn {
    cursor: not-allowed;
}

/* Loading state for submit button */
.btn .spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading .spinner {
    display: inline-block;
}

.btn.loading .btn-text {
    display: none;
}

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

/* Security notification styling */
.security-notice {
    background: var(--background-color-light);
    border: 1px solid var(--warning-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--warning-color-dark);
}

/* Form validation styling */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color-dark);
    box-shadow: 0 0 0 3px var(--error-shadow-color);
}

.form-checkbox input[type="checkbox"].error {
    border-color: var(--error-color-dark);
}

.form-group input.success,
.form-group textarea.success {
    border-color: var(--success-color-dark);
    box-shadow: 0 0 0 3px var(--success-shadow-color);
}

/* Progressive Loading Animations for Contact Page */
.contact-page .animate-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-page .animate-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for form elements */
.contact-form .form-group:nth-child(2) {
    transition-delay: 0.02s;
}

.contact-form .form-group:nth-child(3) {
    transition-delay: 0.04s;
}

.contact-form .form-group:nth-child(4) {
    transition-delay: 0.06s;
}

.contact-form .form-group:nth-child(5) {
    transition-delay: 0.08s;
}

.contact-form .btn {
    transition-delay: 0.1s;
}

/* Contact methods progressive loading */
.contact-methods .contact-method:nth-child(1) {
    transition-delay: 0.02s;
}

.contact-methods .contact-method:nth-child(2) {
    transition-delay: 0.04s;
}

/* Social links progressive loading */
.social-links-contact .social-link-contact:nth-child(1) {
    transition-delay: 0.02s;
}

.social-links-contact .social-link-contact:nth-child(2) {
    transition-delay: 0.04s;
}

.social-links-contact .social-link-contact:nth-child(3) {
    transition-delay: 0.06s;
}

.social-links-contact .social-link-contact:nth-child(4) {
    transition-delay: 0.08s;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container,
    .project-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* Move profile card to top in portrait/mobile mode */
    .about-content {
        display: flex;
        flex-direction: column;
    }

    .about-sidebar-wrapper {
        display: contents;
    }
    
    /* Mobile reordering for about page */
    .about-main {
        order: 2;
    }
    
    .about-sidebar-top {
        order: 1;
    }
    
    .about-sidebar-bottom {
        order: 3;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .projects-grid-full {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background-color-light);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px var(--shadow-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .about-header h1,
    .contact-header h1,
    .page-header h1 {
        font-size: 2rem;
    }
    
    .social-links-contact {
        grid-template-columns: 1fr;
    }
    
    .footer-row-top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-copyright {
        order: 1;
    }
    
    .footer-row-top .social-links {
        order: 2;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .projects-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Legal Page Styles */
.legal-section {
    padding: 120px 0 60px;
    background-color: var(--background-color);
}

.legal-section .container {
    max-width: 1000px;
}

.legal-section h1 {
    font-size: 2.5rem;
    color: var(--secondary-color-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.legal-last-updated {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--background-color-light);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.legal-nav-link {
    padding: 0.75rem 1.5rem;
    background: var(--background-color);
    color: var(--main-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-nav-link:hover {
    background: var(--main-color);
    color: var(--background-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--main-shadow-color);
}

.legal-article {
    background: var(--background-color-light);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow-color);
    scroll-margin-top: 100px;
}

.legal-article h2 {
    font-size: 2rem;
    color: var(--secondary-color-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--background-color-dark);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--secondary-color-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    line-height: 1.8;
}

.legal-content a {
    color: var(--main-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--main-color-dark);
}

.legal-content strong {
    color: var(--secondary-color-dark);
    font-weight: 600;
}

/* Legal Page Mobile Responsiveness */
@media (max-width: 768px) {
    .legal-section {
        padding: 100px 0 40px;
    }

    .legal-section h1 {
        font-size: 1.8rem;
    }

    .legal-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .legal-nav-link {
        text-align: center;
        width: 100%;
    }

    .legal-article {
        padding: 1.5rem;
    }

    .legal-article h2 {
        font-size: 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

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

