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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

a:hover {
    color: inherit;
}

/* Layout Helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #64ffda;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #64ffda 0%, #4ecdc4 100%);
    color: #0f1419;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #64ffda;
    border: 2px solid #64ffda;
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 20, 25, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64ffda;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #64ffda;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s ease;
}

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

.nav-links a.active {
    color: #64ffda;
}

.nav-links a.active::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #64ffda;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 8rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #64ffda 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #a0a9c0;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .description {
    font-size: 1.1rem;
    color: #8892b0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

/* Project cards */
.projects-preview {
    padding: 8rem 0;
    background: rgba(26, 32, 44, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64ffda, #4ecdc4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(100, 255, 218, 0.3);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.project-card p {
    color: #a0a9c0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    color: #64ffda;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #4ecdc4;
    transform: translateX(5px);
}

/* About */
.about-page .hero {
    min-height: 80vh;
    padding: 8rem 0 4rem;
}

.about-page .hero-content {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-page .hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.about-page .hero-text .subtitle {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-page .hero-description {
    font-size: 1.1rem;
    color: #a0a9c0;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: justify;
}

.about-page .hero-image {
    text-align: center;
}

.profile-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(100, 255, 218, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-placeholder {
    font-size: 4rem;
    color: #64ffda;
}

.profile-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.main-content {
    padding: 4rem 0;
}

.section {
    margin-bottom: 6rem;
}

.experience-grid {
    display: grid;
    gap: 3rem;
}

.experience-item {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
}

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

.experience-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.experience-company {
    color: #64ffda;
    font-size: 1.2rem;
    font-weight: 600;
}

.experience-period {
    color: #a0a9c0;
    font-size: 1rem;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.experience-description {
    color: #a0a9c0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.experience-achievements {
    list-style: none;
    padding: 0;
}

.experience-achievements li {
    background: rgba(100, 255, 218, 0.05);
    border-left: 3px solid #64ffda;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    color: #a0a9c0;
}

.experience-achievements li strong {
    color: #64ffda;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.expertise-domain {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.expertise-domain:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 40px rgba(100, 255, 218, 0.1);
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.expertise-icon {
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.expertise-domain h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.expertise-description {
    color: #a0a9c0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: justify;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
}

.tech-item {
    background: rgba(100, 255, 218, 0.05);
    color: #64ffda;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.15);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
}

.certifications-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.certifications-title {
    color: #64ffda;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.certification-item {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.certification-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(100, 255, 218, 0.3);
}

.cert-logo {
    width: 40px;
    height: 40px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-info h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.cert-info p {
    color: #a0a9c0;
    font-size: 0.85rem;
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    color: #64ffda;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: #a0a9c0;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    margin: 4rem 0;
    padding: 4rem 3rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.cta-section p {
    color: #a0a9c0;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Projects Page */
.projects-page .hero {
    min-height: 70vh;
    padding: 8rem 0 4rem;
}

.projects-page .hero-content {
    max-width: 800px;
}

.projects-page .hero .subtitle {
    font-size: 1.3rem;
    color: #a0a9c0;
}

.projects-page .main-content {
    padding: 4rem 0;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.project-description {
    color: #a0a9c0;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-highlights {
    margin-bottom: 2rem;
}

.project-highlights h4 {
    color: #64ffda;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li {
    background: rgba(100, 255, 218, 0.05);
    border-left: 3px solid #64ffda;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: 0 8px 8px 0;
    color: #a0a9c0;
    font-size: 0.95rem;
}

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

.project-link.primary {
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    color: #0f1419;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
}

.project-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.coming-soon {
    text-align: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    margin-top: 4rem;
}

.coming-soon h3 {
    color: #64ffda;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.coming-soon p {
    color: #a0a9c0;
    font-size: 1.1rem;
}

/* Contact Page */
.contact-page .hero {
    min-height: 60vh;
    padding: 8rem 0 4rem;
}

.contact-page .hero .subtitle {
    font-size: 1.3rem;
    color: #a0a9c0;
}

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

.contact-info {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.contact-info h3 {
    color: #64ffda;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #64ffda 0%, #4ecdc4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0f1419;
}

.contact-details h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: #a0a9c0;
    font-size: 0.95rem;
}

.contact-details a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #4ecdc4;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64ffda;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.contact-cta {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
}

.contact-cta p {
    color: #a0a9c0;
    margin-bottom: 1.5rem;
}

/* 404 Page */
.not-found-page .hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
}

.error-section {
    padding: 8rem 2rem 2rem;
}

.error-content {
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.error-number {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #64ffda 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    line-height: 1;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.error-message {
    font-size: 1.2rem;
    color: #a0a9c0;
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.back-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Project Detail Pages */
.project-detail nav {
    background: rgba(15, 20, 25, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.project-detail .hero {
    min-height: 100vh;
    padding: 0;
}

.mr-bar-page .hero {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.8), rgba(26, 32, 44, 0.8)),
                url('../images/MrBarGroupe.jpg') center/cover;
    background-attachment: fixed;
}

.mr-bar-page .hero::before {
    background: rgba(15, 20, 25, 0.35);
    animation: none;
}

.alphabalone-page .hero {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.9), rgba(26, 32, 44, 0.9));
}

.project-detail .hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.project-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.project-detail .hero h1 {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.project-detail .hero h1 .logo-inline {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-detail .hero h1 .logo-inline img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.project-detail .hero .subtitle {
    font-size: 1.5rem;
    color: #a0a9c0;
    margin-bottom: 2rem;
}

.achievement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #1a202c;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #8892b0;
    max-width: 600px;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-section {
    padding: 5rem 0;
}

.project-section:nth-child(odd) {
    background: rgba(15, 20, 25, 0.4);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #a0a9c0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.content-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
}

.content-card h3 {
    color: #64ffda;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.content-card p {
    color: #a0a9c0;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #a0a9c0;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64ffda;
    flex-shrink: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
}

.feature-card h3 {
    color: #64ffda;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #a0a9c0;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.challenge-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.challenge-card h4 {
    color: #64ffda;
    margin-bottom: 1rem;
}

.challenge-card p {
    color: #a0a9c0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
}

.tech-card h4 {
    color: #64ffda;
    margin-bottom: 0.5rem;
}

.tech-card p {
    color: #a0a9c0;
    font-size: 0.95rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.impact-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #64ffda;
    margin-bottom: 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.8), rgba(76, 205, 196, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.nav-project {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64ffda;
    text-decoration: none;
    padding: 1rem 2rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.nav-project:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
}

.image-container {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    margin-top: 1rem;
    color: #a0a9c0;
    text-align: center;
    font-size: 0.95rem;
}

.video-section {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
    margin-bottom: 3rem;
}

.video-section h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.video-section p {
    color: #a0a9c0;
    margin-top: 1rem;
    font-style: italic;
}

.video-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
    max-width: 680px;
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.mr-bar-page .video-section {
    max-width: 520px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
}

.mr-bar-page .video-container {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.mr-bar-page .video-container video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.features-section {
    margin-top: 3rem;
}

.features-content {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.features-content h3 {
    color: #64ffda;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.tech-specs {
    margin-top: 3rem;
}

.tech-specs h3 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

.tech-category {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.tech-category h4 {
    color: #64ffda;
    margin-bottom: 1rem;
    text-align: center;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.tech-list li {
    color: #a0a9c0;
    text-align: center;
}

.challenges-section {
    margin-top: 3rem;
}

.challenges-content {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.challenges-content h3 {
    color: #64ffda;
    margin-bottom: 1.5rem;
}

.challenges-content p {
    color: #a0a9c0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.challenge-item {
    background: rgba(100, 255, 218, 0.05);
    border-left: 3px solid #64ffda;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: 0 8px 8px 0;
    color: #a0a9c0;
}

.content-text {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.content-text:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
}

.content-text h3 {
    color: #64ffda;
    margin-bottom: 1rem;
}

.content-text p {
    color: #a0a9c0;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-text p + p {
    margin-top: 1rem;
}

.content-text ul {
    padding-left: 1.2rem;
    color: #a0a9c0;
}

.content-text li {
    margin-bottom: 0.6rem;
}

.content-text strong,
.challenges-content strong {
    color: #64ffda;
}

.status-section {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    margin-top: 3rem;
    text-align: center;
}

.status-section h3 {
    color: #ffffff;
    margin-bottom: 2rem;
}

.status-section p {
    color: #a0a9c0;
    margin-top: 1rem;
    font-size: 1rem;
}

.development-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Haiku Page */
.haiku-page .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
}

.haiku-hero .description {
    margin: 1.5rem auto 2rem;
    max-width: 700px;
    color: #a0a9c0;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: rgba(100, 255, 218, 0.12);
    color: #64ffda;
    font-size: 0.95rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.model-consent {
    margin-top: 3rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: rgba(15, 23, 42, 0.65);
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.model-consent-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.model-consent h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.model-consent p {
    color: #a0a9c0;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.haiku-generator {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

.generator-panel,
.generator-output {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.08);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.generator-header h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.generator-header p {
    color: #a0a9c0;
}

#haiku-topic {
    width: 100%;
    margin-top: 2rem;
    padding: 1.2rem 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    background: rgba(15, 20, 25, 0.9);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#haiku-topic:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.15);
}

.generator-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.generator-output {
    position: sticky;
    top: 140px;
}

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

.output-header h3 {
    font-size: 1.5rem;
}

.status-light {
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    font-size: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.haiku-result {
    min-height: 180px;
    white-space: pre-wrap;
    font-family: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
    background: rgba(15, 20, 25, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.08);
    padding: 1.5rem;
    color: #e2e8f0;
}

.haiku-notes {
    margin-top: 4rem;
    background: rgba(15, 27, 45, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.08);
    padding: 2.5rem;
    box-shadow: 0 16px 36px rgba(15, 27, 45, 0.25);
}

.haiku-notes h2 {
    margin-bottom: 1.5rem;
}

.haiku-notes ul {
    list-style: none;
    display: grid;
    gap: 1.2rem;
    color: #cbd5f5;
}

.haiku-notes li {
    padding-left: 1.5rem;
    position: relative;
}

.haiku-notes li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #64ffda;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Home Specific */
.home .hero {
    min-height: 100vh;
    padding: 0;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-page .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .haiku-generator {
        grid-template-columns: 1fr;
    }

    .generator-output {
        position: static;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 20, 25, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-grid {
        gap: 2rem;
    }

    .error-number {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .back-buttons {
        flex-direction: column;
        align-items: center;
    }

    .back-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .generator-controls {
        flex-direction: column;
    }

    .generator-controls .btn {
        width: 100%;
    }
}
