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

:root {
    --primary: #ff6b35;
    --primary-light: #ff8e6b;
    --secondary: #4a90e2;
    --light: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e2e8f0;
    --dark-gray: #4a5568;
    --text: #1a202c;
    --text-light: #4a5568;
    --accent: #ff6b35;
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Custom Cursor */
#cursor {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Active state handled in JS for synchronized scaling and movement */

/* Hide native cursor on desktop when over the site */
@media (min-width: 1025px) {
    body {
        cursor: none;
    }
    a, button, .video-overlay, .stat-item {
        cursor: none;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 45px;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 35px;
}

nav {
    z-index: 1001;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    z-index: 1002;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 40px;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn.active {
    background: var(--text);
    color: var(--light);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header.scrolled .lang-switcher {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .lang-switcher {
        margin-left: auto;
        margin-right: 20px;
        order: 2;
    }
    
    #menuToggle {
        order: 3;
    }
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: 80px;
    height: calc(100vh - 80px);
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../images/hero_bg.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: var(--light);
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border 0.4s ease, transform 0.1s linear;
    font-weight: 600;
    border: none;
    cursor: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: none;
    filter: blur(5px);
}

.btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.btn:hover::after {
    left: 150%;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* About Us Section */
.about {
    padding: 120px 5%;
    background: var(--light-gray);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    position: relative;
    color: var(--text);
}

.about-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    background: var(--light);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 15px;
    z-index: -1;
    opacity: 0.7;
}

/* Portfolio Section */
.portfolio {
    padding: 120px 5%;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    font-size: 3rem;
    position: relative;
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.portfolio-media {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.portfolio-item:hover .portfolio-media video {
    opacity: 1;
}

.portfolio-item:hover .portfolio-media img {
    opacity: 0.3;
}

.portfolio-item:hover .portfolio-media img,
.portfolio-item:hover .portfolio-media video {
    transform: scale(1.1);
}

/* Video Overlay Styles */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 3;
}

.portfolio-item:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.portfolio-item:hover .play-button {
    transform: scale(1);
}

.play-button i {
    color: white;
    font-size: 24px;
    margin-left: 5px;
}

.media-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--medium-gray);
    z-index: 2;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.portfolio-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* YouTube Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-video, .modal-local-video {
    width: 100%;
    height: 500px;
    border: none;
    display: none;
}

.modal-video.active, .modal-local-video.active {
    display: block;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--primary);
}


/* Team Section */
.team {
    padding: 120px 5%;
    background: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 4px solid var(--primary);
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.member-role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.member-bio {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 120px 5%;
    background: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    color: var(--text);
}

.contact-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

.contact-details {
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--medium-gray);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--light);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* Map Section */
.map-section {
    padding: 0 5% 100px;
    background: var(--light);
}

.map-container {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--medium-gray);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* Footer */
footer {
    background: var(--light-gray);
    padding: 60px 5% 30px;
    text-align: center;
    border-top: 1px solid var(--medium-gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    color: var(--text);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid var(--medium-gray);
    color: var(--text);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: var(--light);
    border-color: var(--primary);
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
    color: var(--text-light);
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 90%;
    }
    
    .modal-video {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--light);
        padding: 100px 40px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: flex;
    }
    
    nav ul.show {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
        margin-left: 0;
    }
    
    .hero {
        padding-top: 70px;
        height: calc(100vh - 70px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-video {
        height: 300px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* SVG Separators */
.section-separator {
    position: relative;
    width: 100%;
    height: 80px;
    background: transparent;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.section-separator svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 200%;
    height: 100%;
    transform: translate3d(0, 0, 0);
}

.separator-top {
    margin-bottom: -1px;
}

.separator-bottom {
    margin-top: -1px;
    transform: rotate(180deg);
}

.wave-layer {
    animation: wave-flow 25s linear infinite;
    fill: var(--light-gray);
}

.wave-layer-2 {
    animation: wave-flow 18s linear infinite reverse;
    opacity: 0.5;
    fill: var(--light-gray);
}

.wave-layer-3 {
    animation: wave-flow 12s linear infinite;
    opacity: 0.2;
    fill: var(--primary);
}

@keyframes wave-flow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Section Spacing Adjustments */
section {
    position: relative;
}

.about {
    background-color: var(--light-gray);
    padding-top: 50px;
    padding-bottom: 50px;
}

.portfolio {
    padding-top: 100px;
    padding-bottom: 100px;
}

.team {
    background-color: var(--light-gray);
    padding-top: 100px;
    padding-bottom: 100px;
}

.contact {
    padding-top: 100px;
    padding-bottom: 100px;
}

