/* Laptop ve Animasyon Stilleri */

/* Laptop Showcase */
.hero-laptop-container {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop-wrapper {
    position: relative;
    width: 80%;
    max-width: 700px;
    z-index: 10;
}

.laptop {
    position: relative;
    width: 100%;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.laptop-screen {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* 16:10 aspect ratio */
    background: #1e1e1e;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 30px rgba(79, 70, 229, 0.3);
    transform-origin: bottom center;
    animation: openLaptop 2s ease-out forwards;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

@keyframes openLaptop {
    0% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.laptop-code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    line-height: 1.4;
    color: #f8f8f8;
    overflow: hidden;
}

.code-line {
    margin-bottom: 4px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInCode 0.5s ease-out forwards;
    letter-spacing: -0.2px;
}

.code-line:nth-child(1) { animation-delay: 1.5s; }
.code-line:nth-child(2) { animation-delay: 1.7s; }
.code-line:nth-child(3) { animation-delay: 1.9s; }
.code-line:nth-child(4) { animation-delay: 2.1s; }
.code-line:nth-child(5) { animation-delay: 2.3s; }
.code-line:nth-child(6) { animation-delay: 2.5s; }
.code-line:nth-child(7) { animation-delay: 2.7s; }
.code-line:nth-child(8) { animation-delay: 2.9s; }
.code-line:nth-child(9) { animation-delay: 3.1s; }
.code-line:nth-child(10) { animation-delay: 3.3s; }
.code-line:nth-child(11) { animation-delay: 3.5s; }
.code-line:nth-child(12) { animation-delay: 3.7s; }
.code-line:nth-child(13) { animation-delay: 3.9s; }
.code-line:nth-child(14) { animation-delay: 4.1s; }
.code-line:nth-child(15) { animation-delay: 4.3s; }

@keyframes fadeInCode {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-keyword {
    color: #569CD6;
}

.code-function {
    color: #DCDCAA;
}

.code-variable {
    color: #9CDCFE;
}

.code-string {
    color: #CE9178;
}

.code-class {
    color: #4EC9B0;
}

.code-parameter {
    color: #9CDCFE;
}

.code-property {
    color: #9CDCFE;
}

.code-purple {
    color: #C586C0;
}

.code-blue {
    color: #4FC1FF;
}

.code-orange {
    color: #CE9178;
}

.code-comment {
    color: #6A9955;
    font-size: 14px;
    font-weight: bold;
}

.laptop-base {
    position: relative;
    width: 104%;
    height: 15px;
    background: linear-gradient(to bottom, #bdc3c7, #7f8c8d);
    margin-left: -2%;
    margin-right: -2%;
    border-radius: 0 0 10px 10px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.laptop-base::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 5px;
    background: #7f8c8d;
    bottom: -5px;
    left: 35%;
    border-radius: 0 0 5px 5px;
}

.laptop-shadow {
    position: absolute;
    bottom: -30px;
    left: -10%;
    width: 120%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

.laptop-trackpad {
    position: absolute;
    width: 30%;
    height: 7px;
    background: #5c5c5c;
    bottom: 5px;
    left: 35%;
    border-radius: 3px;
    opacity: 0.5;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-element i {
    font-size: 24px;
    color: #fff;
}

.html-icon {
    top: 20%;
    left: 10%;
    color: #E44D26;
    animation-delay: 0s;
}

.html-icon i {
    color: #E44D26;
}

.css-icon {
    top: 70%;
    left: 15%;
    animation-delay: 1s;
}

.css-icon i {
    color: #264DE4;
}

.js-icon {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.js-icon i {
    color: #F7DF1E;
}

.php-icon {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.php-icon i {
    color: #777BB3;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}
}
