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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: #000000;
}

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

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

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

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #BB5454;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 0;
}

.page:not(#home) {
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Home Page */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-black-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 0;
}

/* Animated Waves */
.waves-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.waves-container svg {
    position: absolute;
    width: 400%;
    height: 100%;
    left: -100%;
}

.wave-path {
    fill: none;
    stroke-width: 2;
    opacity: 0;
    stroke-linecap: round;
}

@keyframes wave-cycle {
    0% {
        opacity: 0;
        transform: translateX(-25%);
    }
    10% {
        opacity: 0.6;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateX(-75%);
    }
}

/* Each wave with independent timing */
.wave-1 { 
    stroke: url(#gradient1); 
    animation: wave-cycle 28s ease-in-out infinite;
    animation-delay: 0s;
}
.wave-2 { 
    stroke: url(#gradient2); 
    animation: wave-cycle 35s ease-in-out infinite;
    animation-delay: 4s;
}
.wave-3 { 
    stroke: url(#gradient3); 
    animation: wave-cycle 32s ease-in-out infinite;
    animation-delay: 8s;
}
.wave-4 { 
    stroke: url(#gradient4); 
    animation: wave-cycle 30s ease-in-out infinite;
    animation-delay: 2s;
}
.wave-5 { 
    stroke: url(#gradient5); 
    animation: wave-cycle 38s ease-in-out infinite;
    animation-delay: 10s;
}
.wave-6 { 
    stroke: url(#gradient6); 
    animation: wave-cycle 33s ease-in-out infinite;
    animation-delay: 6s;
}
.wave-7 { 
    stroke: url(#gradient7); 
    animation: wave-cycle 29s ease-in-out infinite;
    animation-delay: 12s;
}
.wave-8 { 
    stroke: url(#gradient8); 
    animation: wave-cycle 36s ease-in-out infinite;
    animation-delay: 14s;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.5s ease;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: #BB5454;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #9a4545;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(187, 84, 84, 0.3);
}

/* Word Reveal Animation */
.word-reveal {
    display: inline-block;
}

.reveal-word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    animation: revealWord 1s forwards;
}

@keyframes revealWord {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

/* Content Sections */
.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 4rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    color: #5B6DB2;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section h3 {
    color: #BB5454;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.7;
    color: #ffffff;
}

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

.skill-card {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(91, 109, 178, 0.2);
    transition: transform 0.3s ease;
    border-left: 4px solid #5B6DB2;
    backdrop-filter: blur(10px);
}

.skill-card p {
    color: #ffffff;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(91, 109, 178, 0.3);
}

.skill-card h4 {
    color: #5B6DB2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(91, 109, 178, 0.4);
    border-left-color: #BB5454;
}

.clickable-card:active {
    transform: translateY(-5px);
}

.clickable-card h4 {
    transition: color 0.3s ease;
}

.clickable-card:hover h4 {
    color: #BB5454;
}

/* Projects Carousel */
.projects-section {
    margin: 3rem 0;
    overflow: hidden;
}

.projects-carousel {
    overflow: hidden;
    padding: 2rem 0;
    margin: 2rem 0;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.projects-track {
    display: flex;
    gap: 2rem;
    width: fit-content;
}

.project-card {
    min-width: 350px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(91, 109, 178, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 109, 178, 0.3);
    border-color: rgba(91, 109, 178, 0.6);
}

.project-card h4 {
    color: #5B6DB2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: #ddd;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: transparent;
    color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: #5B6DB2;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #ffffff;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item strong {
    color: #BB5454;
    min-width: 100px;
}

.contact-item span {
    color: #ffffff;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.authorization {
    background: linear-gradient(135deg, #5B6DB2, #BB5454);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.authorization h3 {
    color: white;
    margin-bottom: 1rem;
}

.auth-number {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease;
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(91, 109, 178, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .content {
        padding: 2rem 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-width: 280px;
        max-width: 280px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    color: #BB5454;
    font-weight: bold;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    z-index: 999;
    backdrop-filter: blur(5px);
}

.footer p {
    margin: 0;
    font-size: 0.8rem;
    text-align: center;
}

/* Add padding to pages so content doesn't get hidden behind footer */
.page {
    padding-bottom: 50px;
}

.lang-switcher {
    position: fixed;
    bottom: 80px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 109, 178, 0.9);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    z-index: 9999;
    transition: background 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}
.lang-switcher:hover {
    background: rgba(187, 84, 84, 0.9);
    transform: scale(1.1);
}
.lang-text {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #5B6DB2;
}

.team-member h3 {
    color: #5B6DB2;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #BB5454;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p {
    color: #ffffff;
    line-height: 1.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
}