/* Variables de couleur */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --dark-color: #121212;
    --dark-secondary: #1e1e1e;
    --light-color: #f4f4f4;
    --gray-color: #757575;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --max-width: 1200px;
    --border-radius: 5px;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--dark-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    width: 100%;
}

/* Boutons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Boutons sombres pour les projets ouverts */
.btn-dark {
    background: #121212;
    color: #ecf0f1;
    border: 2px solid #2ecc71;
}

.btn-dark:hover {
    background: #1e1e1e;
    color: #2ecc71;
    transform: translateY(-2px);
}

/* Boutons désactivés pour les projets pas encore ouverts */
.btn-disabled {
    background: #121212;
    color: #2ecc71;
    border: 2px solid #2ecc71;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-disabled:hover {
    background: #121212;
    color: #2ecc71;
    transform: none;
}

/* Timer styles */
.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.arrival-text {
    color: #2ecc71;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.btn-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
}

.countdown-timer {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.timer-text {
    display: block;
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timer-countdown {
    display: block;
    color: #c0392b;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
    width: 100%;
}

.nav-links li.active a {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Main content */
main {
    flex: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), 
                url('/images/code.png') no-repeat center center/cover;
    color: var(--light-color);
    padding-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Preview Section */
.about-preview {
    padding: 3rem 0;
    background-color: var(--dark-secondary);
    text-align: center;
}

.about-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.about-preview p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.skills-preview {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-preview .btn {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    width: auto;
}

.skills-preview h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.skills-preview .skill-tags {
    justify-content: center;
}

/* Featured Projects Section */
.featured-projects {
    padding: 3rem 0;
}

.projects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.projects-preview .project-card {
    background: #2a2a2a;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.projects-preview .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.projects-preview .project-image {
    height: 180px;
    overflow: hidden;
}

.projects-preview .project-image img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.projects-preview .project-card:hover .project-image img {
    transform: scale(1.05);
}

.projects-preview .project-info {
    padding: 1.5rem;
}

.projects-preview .project-info h3 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.projects-preview .project-info p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.projects-preview .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.projects-preview .project-tags span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* Services Section */
.services {
    padding: 3rem 0;
    background-color: var(--dark-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta .btn {
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
}

.cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.skills h3 {
    margin: 2rem 0 1rem;
    color: var(--light-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.skill-tag {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Projects Preview Section */
.projects-preview {
    padding: 6rem 0;
    background: var(--dark-secondary);
}

.projects-preview .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light-color);
}

.projects-preview .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.projects-preview .loading {
    text-align: center;
    color: var(--gray-color);
    font-size: 1.1rem;
    padding: 2rem;
}

.projects-preview .text-center {
    text-align: center;
}

/* Projects Section */
.projects {
    background-color: var(--dark-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: #2a2a2a;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.contact-item h3 {
    color: var(--light-color);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--gray-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    max-width: 600px;
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-color);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.03);
    color: var(--light-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

footer .legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

footer .legal-links a {
    color: var(--gray-color);
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

footer .legal-links a:hover {
    color: var(--primary-color);
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.2);
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes utilitaires */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px);
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in.active {
    opacity: 1;
    transform: translateX(0);
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-info {
        order: 1;
    }
    
    .projects-preview {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .skills-preview .skill-tags {
        justify-content: center;
    }
    
    .project-tags,
    .skill-tags {
        gap: 0.5rem;
    }
    
    .project-tags span,
    .skill-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero .subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .projects-preview .project-info,
    .project-info {
        padding: 1rem;
    }
    
    .projects-preview .project-image,
    .project-image {
        height: 150px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-form textarea {
        min-height: 120px;
    }
    
    .hero-buttons .btn {
        width: 180px;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 0.8rem;
    }
    
    .service-icon {
        font-size: 1.8rem;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .about-text p,
    .service-card p,
    .project-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
}

/* Responsive images */
@media (max-width: 768px) {
    .about-image img {
        border-radius: var(--border-radius);
    }
}

/* Responsive form */
@media (max-width: 576px) {
    .contact-form .form-group {
        margin-bottom: 1rem;
    }
    
    .contact-form label {
        font-size: 0.9rem;
    }
}

/* Responsive spacing */
@media (max-width: 768px) {
    .skills h3 {
        margin: 1.5rem 0 0.8rem;
        font-size: 1.2rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .project-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .skills h3 {
        margin: 1rem 0 0.6rem;
        font-size: 1.1rem;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
}

/* Responsive grid adjustments */
@media (max-width: 640px) {
    .projects-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Responsive navigation improvements */
@media (max-width: 768px) {
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 0;
    }
    
    .nav-links a::after {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 1rem;
    }
}

/* Responsive hero section */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero {
        background-position: center;
    }
}

/* Responsive CTA section */
@media (max-width: 768px) {
    .cta {
        padding: 2rem 0;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cta {
        padding: 1.5rem 0;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
}

/* Responsive footer */
@media (max-width: 768px) {
    footer .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    footer .legal-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    footer .legal-links {
        gap: 0.4rem;
    }
    
    footer .legal-links a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        min-width: 160px;
    }
}

/* Legal Pages Styles */
.privacy, .legal, .terms, .disclaimer {
    background: var(--dark-secondary);
    padding: 6rem 0;
}

.privacy-content, .legal-content, .terms-content, .disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.privacy-section, .legal-section, .terms-section, .disclaimer-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-section:last-child,
.legal-section:last-child,
.terms-section:last-child,
.disclaimer-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section h2, 
.legal-section h2, 
.terms-section h2, 
.disclaimer-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-section h3, 
.legal-section h3, 
.terms-section h3, 
.disclaimer-section h3 {
    color: var(--light-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.privacy-section p, 
.legal-section p, 
.terms-section p, 
.disclaimer-section p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-section ul, 
.legal-section ul, 
.terms-section ul, 
.disclaimer-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-section li, 
.legal-section li, 
.terms-section li, 
.disclaimer-section li {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-section a, 
.legal-section a, 
.terms-section a, 
.disclaimer-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.privacy-section a:hover, 
.legal-section a:hover, 
.terms-section a:hover, 
.disclaimer-section a:hover {
    border-bottom-color: var(--primary-color);
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .privacy, .legal, .terms, .disclaimer {
        padding: 4rem 0;
    }
    
    .privacy-content, .legal-content, .terms-content, .disclaimer-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .privacy-section h2, 
    .legal-section h2, 
    .terms-section h2, 
    .disclaimer-section h2 {
        font-size: 1.3rem;
    }
    
    .privacy-section h3, 
    .legal-section h3, 
    .terms-section h3, 
    .disclaimer-section h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .privacy, .legal, .terms, .disclaimer {
        padding: 3rem 0;
    }
    
    .privacy-content, .legal-content, .terms-content, .disclaimer-content {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .privacy-section, 
    .legal-section, 
    .terms-section, 
    .disclaimer-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .privacy-section h2, 
    .legal-section h2, 
    .terms-section h2, 
    .disclaimer-section h2 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}
.project-arrival {
    margin: 1rem 0;
    text-align: center;
}

.calendar-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Flatpickr Custom Styles */
.flatpickr-calendar {
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.flatpickr-months {
    background: var(--dark-secondary);
    color: var(--light-color);
}

.flatpickr-month {
    color: var(--light-color);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--primary-color);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--primary-dark);
}

.flatpickr-weekdays {
    background: rgba(255, 255, 255, 0.05);
}

.flatpickr-weekday {
    color: var(--gray-color);
}

.flatpickr-day {
    color: var(--light-color);
}

.flatpickr-day:hover {
    background: rgba(46, 204, 113, 0.2);
    color: var(--primary-color);
}

.flatpickr-day.selected {
    background: var(--primary-color);
    color: white;
}

.flatpickr-day.selected:hover {
    background: var(--primary-dark);
}

.flatpickr-day.today {
    border-color: var(--primary-color);
}

.flatpickr-day.disabled {
    color: var(--gray-color);
}

.flatpickr-time {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.flatpickr-time input {
    background: var(--dark-secondary);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flatpickr-time input:focus {
    border-color: var(--primary-color);
}

.flatpickr-time .flatpickr-am-pm {
    color: var(--light-color);
}

/* Notification Styles */
.notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
