:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --text-primary: #2c3e50;
    --text-light: #ecf0f1;
    --bg-dark: rgba(0, 0, 0, 0.85);
    --bg-light: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0f0f23, #1a1a2e, #16213e);
    z-index: -1;
    opacity: 0;
    animation: fadeInBackground 2s ease-in-out 0.5s forwards;
}

@keyframes fadeInBackground {
    to {
        opacity: 1;
    }
}

.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%), 
                url('https://images.unsplash.com/photo-1497091071254-cc9b2ba7c48a?q=80&w=2074&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    z-index: 1;
}

.hero .container-center {
    position: relative;
    z-index: 2;
    animation: heroSlideUp 1s ease-out 0.3s both;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .container-center {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero h1 .badge {
    background: transparent !important;
    color: white;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
    box-shadow: none;
    border: none;
    transform: none;
    font-weight: 700;
}

.hero h1 samp {
    color: #e8eaff;
    font-family: 'Fira Code', monospace;
    font-weight: 300;
}

.hero .btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero .btn:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.section {
    padding: clamp(80px, 12vw, 140px) 20px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.section .container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section:hover {
    transform: translateY(-2px);
}

.black-background {
    background: rgba(0, 0, 0, 0.75);
    color: var(--text-light);
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInFromLeft 0.8s ease-out;
}

.white-background {
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-primary);
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideInFromRight 0.8s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.black-background .container p,
.black-background .container h1,
.black-background .container h2,
.white-background .container p,
.white-background .container h1,
.white-background .container h2 {
    text-align: justify;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: inherit;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    animation: slideInFooter 2s ease-out;
}

@keyframes slideInFooter {
    to {
        left: 0;
    }
}

.footer p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer a:hover {
    border-bottom-color: white;
    text-decoration: none;
}


@media (max-width: 768px) {
    .section {
        padding: clamp(60px, 10vw, 100px) 15px;
    }
    
    .hero .container-center {
        padding: 1rem;
    }
    
    .hero .btn {
        padding: 10px 24px;
        font-size: 1rem;
    }
    
    .section .container {
        max-width: 100%;
    }
    
    .section h1 {
        margin-bottom: 1rem;
    }
    
    .section p {
        font-size: 1rem;
        text-align: left;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    .footer a {
        margin: 5px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 .badge {
        font-size: 0.8em;
        padding: 0.2em 0.6em;
    }
    
    .section {
        padding: 50px 10px;
    }
    
    .footer a {
        display: block;
        margin: 8px 0;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #2c3e50;
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

#email a,
#email-modal a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    font-weight: 600;
    padding-bottom: 4px;
}

#email a:hover,
#email-modal a:hover {
    border-bottom-color: white;
    transform: translateY(-1px);
}
