/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Modern Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    display: flex;
}

.logo-legio {
    color: #1f2937;
}

.logo-dev {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Logo hover effect */
.nav-logo:hover .logo-main {
    transform: translateY(-1px);
}

.nav-logo:hover .logo-dev {
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Binary Rain Animation */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.2;
    /* Further reduced opacity for less intensity */
}

.binary-column {
    position: absolute;
    top: -50%;
    width: 5%;
    height: 150%;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    animation: binaryFall 8s linear infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.2;
    text-align: center;
    padding: 20px 0;
}

.binary-column:nth-child(1) {
    left: 0%;
    animation-delay: 0s;
    color: rgba(0, 255, 255, 0.15);
    font-size: 20px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.binary-column:nth-child(2) {
    left: 5%;
    animation-delay: -1s;
    color: rgba(255, 100, 255, 0.12);
    font-size: 18px;
    text-shadow: 0 0 6px rgba(255, 100, 255, 0.25);
}

.binary-column:nth-child(3) {
    left: 10%;
    animation-delay: -2s;
    color: rgba(100, 255, 100, 0.5);
    font-size: 22px;
    text-shadow: 0 0 15px rgba(100, 255, 100, 0.7);
}

.binary-column:nth-child(4) {
    left: 15%;
    animation-delay: -3s;
    color: rgba(255, 255, 100, 0.3);
    font-size: 16px;
    text-shadow: 0 0 15px rgba(255, 255, 100, 0.5);
}

.binary-column:nth-child(5) {
    left: 20%;
    animation-delay: -4s;
    color: rgba(255, 150, 150, 0.4);
    font-size: 19px;
    text-shadow: 0 0 15px rgba(255, 150, 150, 0.6);
}

.binary-column:nth-child(6) {
    left: 25%;
    animation-delay: -5s;
    color: rgba(150, 150, 255, 0.3);
    font-size: 17px;
    text-shadow: 0 0 15px rgba(150, 150, 255, 0.5);
}

.binary-column:nth-child(7) {
    left: 30%;
    animation-delay: -6s;
    color: rgba(255, 200, 100, 0.5);
    font-size: 21px;
    text-shadow: 0 0 15px rgba(255, 200, 100, 0.7);
}

.binary-column:nth-child(8) {
    left: 35%;
    animation-delay: -7s;
    color: rgba(200, 100, 255, 0.3);
    font-size: 15px;
    text-shadow: 0 0 15px rgba(200, 100, 255, 0.5);
}

.binary-column:nth-child(9) {
    left: 40%;
    animation-delay: -8s;
    color: rgba(100, 255, 200, 0.4);
    font-size: 20px;
    text-shadow: 0 0 15px rgba(100, 255, 200, 0.6);
}

.binary-column:nth-child(10) {
    left: 45%;
    animation-delay: -9s;
    color: rgba(255, 100, 150, 0.3);
    font-size: 18px;
    text-shadow: 0 0 15px rgba(255, 100, 150, 0.5);
}

.binary-column:nth-child(11) {
    left: 50%;
    animation-delay: -10s;
    color: rgba(150, 255, 100, 0.5);
    font-size: 22px;
    text-shadow: 0 0 15px rgba(150, 255, 100, 0.7);
}

.binary-column:nth-child(12) {
    left: 55%;
    animation-delay: -11s;
    color: rgba(100, 200, 255, 0.3);
    font-size: 16px;
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.5);
}

.binary-column:nth-child(13) {
    left: 60%;
    animation-delay: -12s;
    color: rgba(255, 255, 150, 0.4);
    font-size: 19px;
    text-shadow: 0 0 15px rgba(255, 255, 150, 0.6);
}

.binary-column:nth-child(14) {
    left: 65%;
    animation-delay: -13s;
    color: rgba(200, 150, 255, 0.3);
    font-size: 17px;
    text-shadow: 0 0 15px rgba(200, 150, 255, 0.5);
}

.binary-column:nth-child(15) {
    left: 70%;
    animation-delay: -14s;
    color: rgba(150, 255, 200, 0.5);
    font-size: 21px;
    text-shadow: 0 0 15px rgba(150, 255, 200, 0.7);
}

.binary-column:nth-child(16) {
    left: 75%;
    animation-delay: -1.5s;
    color: rgba(255, 150, 100, 0.3);
    font-size: 15px;
    text-shadow: 0 0 15px rgba(255, 150, 100, 0.5);
}

.binary-column:nth-child(17) {
    left: 80%;
    animation-delay: -2.5s;
    color: rgba(100, 150, 255, 0.4);
    font-size: 20px;
    text-shadow: 0 0 15px rgba(100, 150, 255, 0.6);
}

.binary-column:nth-child(18) {
    left: 85%;
    animation-delay: -3.5s;
    color: rgba(255, 200, 200, 0.3);
    font-size: 18px;
    text-shadow: 0 0 15px rgba(255, 200, 200, 0.5);
}

.binary-column:nth-child(19) {
    left: 90%;
    animation-delay: -4.5s;
    color: rgba(200, 255, 150, 0.5);
    font-size: 22px;
    text-shadow: 0 0 15px rgba(200, 255, 150, 0.7);
}

.binary-column:nth-child(20) {
    left: 95%;
    animation-delay: -5.5s;
    color: rgba(150, 200, 255, 0.3);
    font-size: 16px;
    text-shadow: 0 0 15px rgba(150, 200, 255, 0.5);
}

@keyframes binaryFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #2563eb;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 650px;
    width: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    animation: float 8s ease-in-out infinite;
    min-width: 110px;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

/* Kartları maksimum boşlukla konumlandır - Ultra geniş boşluklar */

/* Mobil Uygulamalar - Sol en üst köşe */
.floating-card:nth-child(1) {
    top: 1%;
    left: 1%;
    animation-delay: 0s;
}

/* Yapay Zeka - Sağ en üst köşe */
.floating-card:nth-child(2) {
    top: 3%;
    right: 1%;
    animation-delay: 1s;
}

/* Backend Geliştirme - Sol üst, çok daha aşağıda */
.floating-card:nth-child(3) {
    top: 20%;
    left: 8%;
    animation-delay: 2s;
}

/* Oyun Geliştirme - Sağ üst, çok daha aşağıda */
.floating-card:nth-child(4) {
    top: 15%;
    right: 25%;
    animation-delay: 3s;
}

/* Web Geliştirme - Sol orta, maksimum uzak */
.floating-card:nth-child(5) {
    top: 38%;
    left: 0%;
    animation-delay: 4s;
}

/* Veri Analizi - Sağ orta, maksimum uzak */
.floating-card:nth-child(6) {
    top: 42%;
    right: 2%;
    animation-delay: 5s;
}

/* Cloud Computing - Sol alt orta, maksimum uzak */
.floating-card:nth-child(7) {
    top: 56%;
    left: 18%;
    animation-delay: 6s;
}

/* Siber Güvenlik - Sağ alt orta, maksimum uzak */
.floating-card:nth-child(8) {
    top: 60%;
    right: 22%;
    animation-delay: 7s;
}

/* Otomasyon - Sol en alt köşe */
.floating-card:nth-child(9) {
    bottom: 1%;
    left: 5%;
    animation-delay: 0.5s;
}

/* IoT Geliştirme - Sağ en alt köşe */
.floating-card:nth-child(10) {
    bottom: 0%;
    right: 8%;
    animation-delay: 1.5s;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.about-text p {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.team h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.member-avatar i {
    font-size: 2rem;
    color: white;
}

.team-member h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #6b7280;
    margin: 0;
}

/*
 Projects Section */
.projects {
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-icon i {
    font-size: 1.5rem;
    color: white;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f59e0b;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-status i {
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

.social-link.github {
    background: #333;
}

.social-link.github:hover {
    background: #24292e;
    transform: translateY(-2px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: 550px;
    }

    /* Mobil için floating kartları çok daha uzak konumlandır */
    .floating-card:nth-child(1) {
        top: 5%;
        left: 5%;
    }

    .floating-card:nth-child(2) {
        top: 5%;
        right: 5%;
    }

    .floating-card:nth-child(3) {
        top: 20%;
        left: 18%;
    }

    .floating-card:nth-child(4) {
        top: 20%;
        right: 18%;
    }

    .floating-card:nth-child(5) {
        top: 35%;
        left: 2%;
    }

    .floating-card:nth-child(6) {
        top: 35%;
        right: 2%;
    }

    .floating-card:nth-child(7) {
        top: 50%;
        left: 15%;
    }

    .floating-card:nth-child(8) {
        top: 50%;
        right: 15%;
    }

    .floating-card:nth-child(9) {
        bottom: 12%;
        left: 8%;
    }

    .floating-card:nth-child(10) {
        bottom: 12%;
        right: 8%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .floating-card {
        padding: 0.8rem;
        min-width: 100px;
    }

    .floating-card i {
        font-size: 1.3rem;
    }

    .floating-card span {
        font-size: 0.75rem;
    }

    /* Çok küçük ekranlarda kartları maksimum boşlukla konumlandır */
    .hero-visual {
        height: 500px;
    }

    .floating-card:nth-child(1) {
        top: 8%;
        left: 8%;
    }

    .floating-card:nth-child(2) {
        top: 8%;
        right: 8%;
    }

    .floating-card:nth-child(3) {
        top: 20%;
        left: 2%;
    }

    .floating-card:nth-child(4) {
        top: 20%;
        right: 2%;
    }

    .floating-card:nth-child(5) {
        top: 32%;
        left: 15%;
    }

    .floating-card:nth-child(6) {
        top: 32%;
        right: 15%;
    }

    .floating-card:nth-child(7) {
        top: 44%;
        left: 5%;
    }

    .floating-card:nth-child(8) {
        top: 44%;
        right: 5%;
    }

    .floating-card:nth-child(9) {
        bottom: 12%;
        left: 12%;
    }

    .floating-card:nth-child(10) {
        bottom: 12%;
        right: 12%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Loading Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typeWriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Animation Classes */
.animate-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-element.fade-in-left {
    transform: translateX(-50px);
}

.animate-element.fade-in-right {
    transform: translateX(50px);
}

.animate-element.fade-in-scale {
    transform: scale(0.8);
}

.animate-element.slide-in-down {
    transform: translateY(-50px);
}

/* Visible state - triggers animation */
.animate-element.animate-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.animate-element.fade-in-left.animate-visible {
    transform: translateX(0);
}

.animate-element.fade-in-right.animate-visible {
    transform: translateX(0);
}

.animate-element.fade-in-scale.animate-visible {
    transform: scale(1);
}

.animate-element.slide-in-down.animate-visible {
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in-scale {
    animation: fadeInScale 0.8s ease-out forwards;
}

.slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
}

/* Staggered Animation Delays */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

.animate-delay-6 {
    transition-delay: 0.6s;
}

/*
 Binary Glow Animation */
@keyframes binaryGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        opacity: 0.7;
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8);
        opacity: 1;
    }

    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        opacity: 0.7;
    }
}

/* Enhanced Binary Rain Styling */
.binary-column {
    text-align: center;
    letter-spacing: 2px;
}

.binary-column:nth-child(odd) {
    color: rgba(255, 255, 255, 0.08);
    animation-duration: 12s;
}

.binary-column:nth-child(even) {
    color: rgba(255, 255, 255, 0.05);
    animation-duration: 18s;
}

/* Some columns with different effects */
.binary-column:nth-child(3n) {
    font-size: 16px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.binary-column:nth-child(5n) {
    font-size: 12px;
    opacity: 0.6;
}

.binary-column:nth-child(7n) {
    animation-duration: 20s;
    color: rgba(255, 255, 255, 0.1);
}

/* Hide some columns to reduce density */
.binary-column:nth-child(n+12) {
    display: none;
}

/* Mobile optimization for binary rain */
@media (max-width: 768px) {
    .binary-rain {
        opacity: 0.3;
    }

    .binary-column {
        font-size: 12px;
        animation-duration: 10s;
    }
}

@media (max-width: 480px) {
    .binary-rain {
        opacity: 0.2;
    }

    .binary-column {
        font-size: 10px;
    }
}