/* Base Styles */
:root {
    --dark: #292929;
    --red: #ff0000;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #1a1a1a;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background-color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--red);
}

.red-text {
    color: var(--red);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-red {
    background-color: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}

.btn-red:hover {
    background-color: transparent;
    color: var(--red);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* Header Styles - Updated */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(41, 41, 41, 0.9);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    padding-right: 20px;
    /* animation: logoPulse 4s infinite; */
}

.logo-text:hover {
    animation: none;
    color: var(--red);
    transition: color 0.3s ease;
}

.logo-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 2px;
    background-color: var(--red);
    opacity: 0.7;
}

.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--red);
}

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

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(41, 41, 41, 0.8), rgba(41, 41, 41, 0.8)), url('images/hero-bg.jpg') no-repeat center center/cover;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    display: block;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

.arrow {
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: arrowBounce 2s infinite;
}

/* About Section */
.about {
    background-color: var(--dark-gray);
}

.about-text {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    margin: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--white);
}

/* Founders Section */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.founder-card {
    background-color: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.founder-img-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.founder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.founder-social {
    display: flex;
}

.founder-social a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.founder-name {
    margin: 20px 0 5px;
    font-size: 1.5rem;
}

.founder-role {
    color: var(--red);
    margin-bottom: 15px;
    font-weight: 500;
}

.founder-bio {
    padding: 0 20px;
    color: #ccc;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 41, 41, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-name {
    margin: 20px 20px 10px;
    font-size: 1.3rem;
}

.project-description {
    margin: 0 20px 15px;
    color: #ccc;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px 20px;
}

.project-tech span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.project-status-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.status-icon-development {
    background-color: #FFA500;
    color: #000;
}

.status-icon-planned {
    background-color: #808080;
    color: #fff;
}

.status-icon-released {
    background-color: #4CAF50;
    color: #fff;
}

.project-type {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.type-opensource {
    background-color: #28a745;
    color: white;
}

.type-closed {
    background-color: #6c757d;
    color: white;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.social-links {
    margin-bottom: 40px;
}

.social-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link i {
    margin-right: 10px;
    color: var(--red);
}

.email-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--red);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo {
    width: 70px;
    height: 60px;
    margin-left: 10px;
    margin-right: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.red-bar {
    width: 100px;
    height: 4px;
    background-color: var(--red);
    position: relative;
    overflow: hidden;
}

.red-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    animation: preloader 1.5s infinite;
}

/* Modal Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--dark);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--red);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    transition: color 0.3s ease;
}

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

.modal-title {
    color: var(--red);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Animations */
@keyframes preloader {
    100% {
        left: 100%;
    }
}

@keyframes mouseScroll {
    0% {
        top: 5px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes logoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.7s ease-out;
        pointer-events: none;
    }
    
    .nav.active {
        clip-path: circle(1500px at 90% -10%);
        -webkit-clip-path: circle(1500px at 90% -10%);
        pointer-events: all;
    }
    
    .nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-link {
        margin: 15px 0;
        font-size: 1.5rem;
    }
    
    .logo-text::after {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    /* Burger animation */
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin: 10px 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}