@media (max-width: 1200px) {
    html, body {
        width: 100vw;
        overflow-x: hidden !important;
    }
}
@media (max-width: 540px) {
    html, body {
        width: 100vw;
        overflow-x: hidden !important;
    }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #60a5fa;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

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

.bar {
    width: 30px;
    height: 4px;
    background-color: #e5e7eb;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge-cv {
    display: inline-block;
    background: linear-gradient(45deg, #10b981, #059669);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
    animation: badgeFloat 3s ease-in-out infinite;
    text-decoration: none;
}

.hero-badge-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.6);
    cursor: pointer;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    background: linear-gradient(45deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line.highlight {
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.typing-text {
    border-right: 3px solid #60a5fa;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #60a5fa; }
}

.cursor {
    color: #60a5fa;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #e2e8f0; /* texto principal claro */
    line-height: 1.8;
    max-width: 600px;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid #94a3b8; /* barra lateral suave */
}

.quote-mark {
    font-size: 2rem;
    font-style: normal;
    color: #94a3b8; /* cinza claro */
}

.quote-author {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 1rem;
    color: #cbd5e1; /* tom mais suave que o texto principal */
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    color: white;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(96, 165, 250, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #1e293b, #334155);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: #60a5fa;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(96, 165, 250, 0.3);
    animation: imageFloat 6s ease-in-out infinite;
}

.hero-image {
    /* Make the image fill image-placeholder */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


@keyframes imageFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-card i {
    font-size: 1.5rem;
    color: #60a5fa;
}

.card-1 {
    top: 10%;
    left: -20%;
    animation: float1 4s ease-in-out infinite;
}

.card-2 {
    top: 60%;
    right: -20%;
    animation: float2 4s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    animation: float3 4s ease-in-out infinite 2s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-3deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #60a5fa;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-intro h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #ffffff;
}

.about-intro p {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(10px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(96, 165, 250, 0.4);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.detail-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.detail-content p {
    color: #94a3b8;
    font-size: 1.1rem;
}

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

.about-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.card-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.specialties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.specialty {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.specialty:hover {
    transform: scale(1.05);
    background: rgba(51, 65, 85, 0.8);
}

.specialty-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.specialty span {
    font-weight: 600;
    color: #e5e7eb;
    font-size: 1.1rem;
}

/* Experiences Section */
.experiences {
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05), rgba(139, 92, 246, 0.05));
}

.experiences-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.experiences-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #60a5fa, #8b5cf6);
    border-radius: 1px;
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(3) { animation-delay: 0.3s; }
.experience-item:nth-child(4) { animation-delay: 0.4s; }

.experience-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.experience-item:hover .marker-dot {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.6);
}

.marker-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, #60a5fa, transparent);
    margin-top: 10px;
}

.experience-content {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.experience-content:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 10px 40px rgba(96, 165, 250, 0.2);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-company h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-location {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

.experience-period {
    text-align: right;
    min-width: 120px;
}

.period-date {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 0.25rem;
}

.period-duration {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.experience-role h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.experience-role p {
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.experience-tech .tech-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

/* Experience Photos */
.experience-photos {
    margin: 1.5rem 0;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

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

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

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

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay span {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-color: rgba(96, 165, 250, 0.4);
}

.project-image-large {
    height: 400px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay {
    font-size: 6rem;
    color: #60a5fa;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-content-large h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.project-content-large p {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-tech-large {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: linear-gradient(45deg, #1e40af, #3730a3);
    color: #dbeafe;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    color: #60a5fa;
    border: 2px solid #60a5fa;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-outline:hover {
    background: #60a5fa;
    color: white;
}

/* Projects Carousel */
.projects-carousel-container {
    position: relative;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.carousel-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.carousel-controls {
    display: flex;
    gap: 1rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    color: #60a5fa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.projects-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.projects-carousel .project-card {
    min-width: 350px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    scroll-snap-align: start;
}

.projects-carousel .project-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.projects-carousel .project-card.expanded {
    transform: scale(1.05);
    border-color: #60a5fa;
    box-shadow: 0 20px 60px rgba(96, 165, 250, 0.3);
}

.project-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(96, 165, 250, 0.4);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, #1e293b, #334155);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    gap: 1rem;
}

.overlay-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.project-content p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.skills-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skills-category h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
}

/* Skills Carousel */
.skills-carousel-container {
    position: relative;
    margin-bottom: 2rem;
}

.skills-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.skills-carousel::-webkit-scrollbar {
    display: none;
}

.skills-carousel .skill-card {
    min-width: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.skill-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s;
}

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

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.skill-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.skill-level {
    width: 100%;
    height: 8px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    border-radius: 4px;
    transition: width 1.5s ease;
    width: 0;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

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

.contact-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.contact-card p {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-method:hover {
    transform: translateX(10px);
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(96, 165, 250, 0.3);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.method-value {
    font-size: 1.1rem;
    color: #e5e7eb;
    font-weight: 600;
}

.contact-form-container {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #e5e7eb;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    color: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .experiences-timeline {
        max-width: 100%;
        padding: 1rem 0;
    }
    
    .experience-item {
        padding-left: 60px;
    }
    
    .experience-marker {
        width: 50px;
    }
    
    .project-featured {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1020px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid rgba(96, 165, 250, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .experiences-timeline::before {
        left: 20px;
    }
    
    .experience-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }
    
    .experience-marker {
        width: 40px;
        height: 50px;
    }
    
    .marker-dot {
        width: 16px;
        height: 16px;
    }
    
    .experience-content {
        padding: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .experience-period {
        text-align: left;
        min-width: auto;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .photo-item {
        aspect-ratio: 3/2;
    }
    
    .photo-overlay {
        padding: 0.75rem;
    }
    
    .photo-overlay span {
        font-size: 0.8rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .about-card,
    .contact-card,
    .contact-form-container {
        padding: 2rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .photo-item {
        aspect-ratio: 16/9;
    }
    
    .photo-overlay {
        padding: 0.5rem;
    }
    
    .photo-overlay span {
        font-size: 0.75rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 100px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
} 