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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 25%, #1a1a2e 50%, #16213e 75%, #0f3460 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grain Effect */
#grain-container {
    position: relative;
    min-height: 100vh;
}

#grain-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.02"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
}

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

.nav-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.profile-image:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #888888;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

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

/* Sections */
.snap-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Reduce bottom padding for contact section */
#contact {
    padding-bottom: 2rem;
    min-height: 60vh;
}

/* Add scroll offset for fixed navigation */
#about, #contact {
    scroll-margin-top: 160px;
}

/* Hero Section */
.hero-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Paragraph format styling */
.paragraph-format {
    gap: 0.5rem;
}

.hero-paragraph {
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.8;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    display: inline-block;
    width: 100%;
}

.hero-paragraph .text-revealed {
    font-size: inherit;
    opacity: 1;
    filter: blur(0px);
    animation: none;
    display: inline;
}

.hero-paragraph .pedro-button {
    font-size: clamp(0.6rem, 1.5vw, 1rem);
    margin: 0 0.1rem;
    display: inline-block;
}

.text-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.text-revealed {
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0;
    filter: blur(10px);
    transition: all 0.8s ease-out;
    animation: fadeInUp 0.8s ease-out forwards;
}

.text-revealed.visible {
    opacity: 1;
    filter: blur(0px);
}

/* Pedro Button Style */
.pedro-button {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: clamp(0.6rem, 1.5vw, 1rem);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.pedro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
}

/* Special styling for all buttons */
.pedro-button:hover {
    background: linear-gradient(135deg, #40e0d0 0%, #20b2aa 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.3);
}

.pedro-button:active {
    background: linear-gradient(135deg, #20b2aa 0%, #40e0d0 100%);
    transform: translateY(0);
}

.pedro-button.visible {
    opacity: 1;
    filter: blur(0px);
}

/* Expanded text that gets revealed inline */
.expanded-text {
    opacity: 0.9;
    transition: all 0.8s ease-out;
    pointer-events: none;
    filter: blur(3px);
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    margin: 0;
    padding: 0;
}

.expanded-text.revealed {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0px);
}

/* Content Sections */
.content-container {
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.experience-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #cccccc;
}

/* Contact Section */
.contact-content {
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-link:nth-child(1) { animation-delay: 0.1s; }
.contact-link:nth-child(2) { animation-delay: 0.2s; }
.contact-link:nth-child(3) { animation-delay: 0.3s; }

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .profile-image {
        width: 28px;
        height: 28px;
    }
    
    .nav-profile {
        gap: 0.3rem;
    }
    
    .snap-section {
        padding: 0 1rem;
    }
    
    .text-line {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-link {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
    }
    
    .text-container {
        gap: 1rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
