/* 
 * Portfolio - Estilo Moderno inspirado em macOS/Apple
 */

/* Variáveis globais */
:root {
    /* Cores e gradientes */
    --primary-color: #007AFF;
    --primary-color-light: #00C7FF;
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    --dark-gradient: linear-gradient(45deg, #1a1a2e, #0d1117);
    --light-gradient: linear-gradient(45deg, #2e3192, #1bffff);
    
    /* Backgrounds */
    --light-bg: rgba(255, 255, 255, 0.7);
    --dark-bg: rgba(30, 30, 40, 0.7);
    --bg-video-light: url('../FOTOS/Day.mp4');
    --bg-video-dark: url('../FOTOS/Night.mp4');
    
    /* Efeitos */
    --blur-effect: blur(10px) saturate(180%);
    --card-border-light: 1px solid rgba(255, 255, 255, 0.4);
    --card-border-dark: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Sombras */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 15px rgba(0, 122, 255, 0.25);
    
    /* Animações */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    
    /* Arredondamentos */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* Reset geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-behavior: smooth;
}

/* Fonte responsiva */
html {
    font-size: clamp(16px, 1vw + 0.75rem, 20px);
}

/* Barra de rolagem */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
}

/* Corpo da página */
body {
    background: var(--light-gradient);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    transition: background 0.5s ease-in-out;
    line-height: 1.6;
}

/* Video background container */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    will-change: transform; /* Optimize for performance */
    z-index: -1; /* Ensure it stays behind content */
    
    /* Additional properties to ensure video plays */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: -1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.5s ease-in-out;
}

body.dark {
    background: var(--dark-gradient);
}

body.dark::before {
    background: rgba(0, 0, 0, 0.3);
}

body.dark a {
    color: #34aadc;
}

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

/* Menu superior */
.menubar {
    background: var(--light-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: var(--card-border-light);
    transition: all var(--transition-normal);
}

.dark .menubar {
    background: var(--dark-bg);
    border: var(--card-border-dark);
}

/* Title in menubar */
.menubar .title {
    margin-left: 15px; /* Add space between window controls and title */
    font-weight: 500;
}

/* Window controls */
.window-controls {
    display: flex;
    gap: 8px;
}

/* Language toggle in menubar */
.menubar .language-toggle {
    margin-left: auto;
    margin-right: 0;
}

/* Language toggle */
.language-toggle {
    width: 50px;
    height: 35px;
    background: var(--primary-gradient);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.language-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.language-toggle:hover::before {
    opacity: 1;
}

.language-toggle:hover {
    transform: scale(1.05);
}

.language-toggle:active {
    transform: scale(0.95);
}

/* Controles de janela */
.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.control::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity var(--transition-fast);
}

.control:hover {
    transform: scale(1.1);
}

.control:hover::after {
    opacity: 1;
}

.close {
    background: #ff5f57;
}

.minimize {
    background: #febc2e;
}

.maximize {
    background: #28c840;
}

/* Páginas */
.page {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.page.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

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

/* Cards */
.card {
    background: var(--light-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    border: var(--card-border-light);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    height: auto;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

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

.card:hover::before {
    opacity: 1;
}

.dark .card {
    background: var(--dark-bg);
    border: var(--card-border-dark);
    color: #fff;
}

/* Perfil */
.profile {
    text-align: center;
    padding: 30px;
}

.profile-img {
    width: 150px;
    height: 150px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: var(--shadow-primary);
    transition: transform var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.profile-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: var(--radius-full);
}

.profile-img:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Grid de projetos */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.project-card {
    background: var(--light-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: var(--card-border-light);
    transform: translateZ(0);
    will-change: transform;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0) 100%
  );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.project-card:hover::before {
    top: 100%;
    left: 100%;
}

.dark .project-card {
    background: var(--dark-bg);
    border: var(--card-border-dark);
    color: #fff;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Tags tecnologia */
.tech-tag {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    margin: 5px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    transition: transform var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tech-tag:hover {
    transform: scale(1.1);
}

.tech-tag:hover::after {
    opacity: 1;
}

/* Dock inferior */
.dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 30px;
    border-radius: 24px;
    display: flex;
    gap: 25px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: var(--card-border-light);
    z-index: 1000;
    transition: all var(--transition-normal);
    width: auto;
    max-width: 90%;
    justify-content: center;
}

.dock:hover {
    padding-bottom: 18px;
}

.dark .dock {
    background: rgba(30, 30, 40, 0.7);
    border: var(--card-border-dark);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Icones do dock */
.dock-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    transition: all var(--transition-bounce);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.dock-icon img {
    width: 120%;
    height: 120%;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
    transition: all var(--transition-bounce);
}

.home-icon, .set-icon {
    background: none !important;
}

.dock a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dock:hover .dock-icon {
    margin: 0 5px;
}

.dock-icon:hover {
    transform: translateY(-12px) scale(1.1);
}

.dock-icon:hover img {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

/* Configurações */
.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    transition: all var(--transition-normal);
}

.settings-option:hover {
    background: rgba(128, 128, 128, 0.05);
    padding-left: 10px;
    border-radius: var(--radius-sm);
}

/* Alternador de tema */
.theme-toggle {
    width: 70px;
    height: 35px;
    background: var(--primary-gradient);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-primary);
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: var(--radius-full);
    top: 2.5px;
    left: 2.5px;
    transition: transform var(--transition-bounce);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.dark .theme-toggle::after {
    transform: translateX(35px);
}

/* Tipografia */
.title {
    color: #333;
    transition: color var(--transition-normal);
    letter-spacing: -0.5px;
}

.dark .title {
    color: #fff;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color var(--transition-normal);
}

.dark h1, .dark h2, .dark h3 {
    color: #f4f4f4;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    transition: color var(--transition-normal);
}

.dark p {
    color: rgba(255, 255, 255, 0.85);
}

.settings-option span {
    color: #333;
    transition: color var(--transition-normal);
}

.dark .settings-option span {
    color: #fff;
}

/* Grid de fotos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.photo-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: none;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-normal);
    position: relative;
}

.photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.photo-card.zoomed {
    transform: scale(1.2);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.photo-card:hover::after {
    opacity: 1;
}

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

.photo-card.zoomed:hover {
    transform: scale(1.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Botão voltar */
.back-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 15px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.back-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.back-button:hover {
    transform: scale(1.05);
}

.back-button:hover::after {
    opacity: 1;
}

.back-button:active {
    transform: scale(0.98);
}

/* Project Details Styles */
.project-detail-title {
    margin-bottom: 30px;
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.project-screenshot {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-screenshot:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.project-description {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 30px;
    box-shadow: var(--shadow-md);
    border: var(--card-border-light);
}

.project-description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    position: relative;
    padding-left: 15px;
}

.project-description h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.project-description h3:first-child {
    margin-top: 0;
}

.project-description p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-description ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.project-description li {
    margin-bottom: 10px;
}

.dark .project-description {
    background: rgba(30, 30, 40, 0.5);
    border: var(--card-border-dark);
}

.dark .project-description h3 {
    color: var(--primary-color-light);
}

/* Tech tags in project details */
.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

/* Media queries for project details */
@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-description {
        padding: 20px;
    }
    
    .project-detail-title {
        font-size: 1.8rem;
    }
}

/* Container de código */
.code-container {
    background: #f8f8f8;
    border-radius: var(--radius-md);
    padding: 25px;
    margin-top: 20px;
    color: #000;
    max-height: 450px;
    overflow-y: auto;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
}

.dark .code-container {
    background: #2b2b2b;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Código e pre */
pre, code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'SF Mono', 'Menlo', monospace;
}

/* Foco */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    transition: outline var(--transition-fast);
}

/* Efeito ripple */
.ripple {
    position: absolute;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animação de revelação */
@keyframes revealAnimation {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Elementos com animação */
.card, .project-card, .photo-card {
    animation: revealAnimation 0.6s ease-out;
}

/* Responsivo */
@media (max-width: 768px) {
    .project-grid, .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }

    .dock {
        padding: 10px 15px;
        gap: 15px;
        max-width: 90%;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .dock-icon {
        width: 45px;
        height: 45px;
    }

    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .dock {
        width: 75%;
        gap: 10px;
    }
    
    .dock-icon {
        width: 40px;
        height: 40px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .dock {
        width: auto;
        max-width: 90%;
        gap: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 15px;
        justify-content: center;
    }
}

/* Additional blur support for background */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}

/* Single Page Application Styles */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page-section.active {
    display: block;
    opacity: 1;
}

/* Make dock icons clickable */
.dock-icon {
    cursor: pointer;
}

/* Smooth transitions between sections */
#content-area {
    transition: opacity 0.2s ease-in-out;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--primary-color);
}

.dark .form-group label {
    color: #34aadc;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    transition: all var(--transition-normal);
    font-size: 1rem;
    width: 100%;
}

.dark .contact-form input,
.dark .contact-form textarea {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

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

.submit-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    align-self: flex-start;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.submit-button:hover {
    transform: translateY(-3px);
}

.submit-button:hover::before {
    opacity: 1;
}

.submit-button:active {
    transform: translateY(0);
}

.form-status {
    padding: 10px;
    border-radius: var(--radius-md);
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.dark .form-status.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.dark .form-status.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #e57373;
}

/* End Contact Form Styles */

/* GitHub Button Styles */
.github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 15px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    text-decoration: none;
}

.github-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.github-button:hover {
    transform: scale(1.05);
}

.github-button:hover::after {
    opacity: 1;
}

.github-button:active {
    transform: scale(0.98);
}

/* Skills Section Styles */
.skills-section {
    margin-top: 40px;
    text-align: left;
    width: 100%;
}

.skills-section h2 {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.skills-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.dark .skills-category h3 {
    color: var(--primary-color-light);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    font-size: 0.9rem;
    opacity: 0.8;
}

.skill-progress {
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.dark .skill-progress {
    background: rgba(255, 255, 255, 0.1);
}

.skill-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 5px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
    width: 0;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                               rgba(255, 255, 255, 0) 0%, 
                               rgba(255, 255, 255, 0.2) 50%, 
                               rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Media queries for skills section */
@media (min-width: 768px) {
    .skills-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Fullscreen Image Viewer */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-image-container {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
}

.fullscreen-image.active {
    transform: scale(1);
    opacity: 1;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.close-fullscreen.active {
    transform: scale(1);
}

.close-fullscreen::before,
.close-fullscreen::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

.close-fullscreen::before {
    transform: rotate(45deg);
}

.close-fullscreen::after {
    transform: rotate(-45deg);
}

.close-fullscreen:hover {
    transform: scale(1.1);
}

/* ===== PROJECT GALLERY STYLES ===== */
.project-gallery {
    margin: 2rem 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-gallery:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Gallery Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.gallery-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-title::before {
    content: "📸";
    font-size: 1.1rem;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.gallery-counter {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

/* Gallery Main */
.gallery-main {
    padding: 2rem;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.fullscreen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

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

/* Thumbnail Container */
.thumbnail-container {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.thumbnail-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.thumbnail-scroll::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-thumbnail.active {
    border-color: var(--accent-color, #007AFF);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gallery Info */
.gallery-info {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.image-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color-secondary, rgba(255, 255, 255, 0.7));
    text-align: center;
    font-style: italic;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-color-secondary, rgba(255, 255, 255, 0.6));
}

.gallery-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gallery-empty-text {
    font-size: 1.1rem;
    margin: 0;
}

/* Loading State */
.gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.gallery-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color, #007AFF);
    border-radius: 50%;
    animation: gallerySpinner 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .gallery-controls {
        order: -1;
    }
    
    .gallery-main {
        padding: 1.5rem 1rem;
    }
    
    .main-image-container {
        aspect-ratio: 4/3;
    }
    
    .gallery-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .gallery-counter {
        font-size: 0.8rem;
    }
    
    .thumbnail-scroll {
        gap: 0.5rem;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 40px;
    }
    
    .gallery-info {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-header {
        padding: 1rem;
    }
    
    .gallery-main {
        padding: 1rem;
    }
    
    .main-image-container {
        aspect-ratio: 1/1;
    }
    
    .thumbnail-container {
        padding: 0.75rem;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 35px;
    }
}

/* Dark Theme Adjustments */
.dark .project-gallery {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .project-gallery:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark .gallery-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .thumbnail-container {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .gallery-info {
    background: rgba(0, 0, 0, 0.2);
    border-top-color: rgba(255, 255, 255, 0.08);
}

