/* Global Styles */
:root {
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --primary: #6e44ff;
    --primary-light: #9d7dff;
    --secondary: #2bd2ff;
    --text: #e0e0e0;
    --text-light: #f5f5f5;
    --text-dark: #b0b0b0;
}

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

html {
  scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    z-index: 1;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.header-content {
    position: relative;
    z-index: 3;
    max-width: 90vw;
    padding: 0 20px;
}

.header h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    background: linear-gradient(to right, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header h1 span {
    display: inline-block;
}

.header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.header p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.9s forwards;
    color: var(--text-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.top_header {
    position: absolute;
    top: 0;
    padding: 20px;
    display: flex;
    gap: 45px;
    font-size: 1.rem;
    width: 100%;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.top_header a {
    text-decoration: none;
    padding: 5px;
    background: linear-gradient(to right, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.2s ease-in-out;
}

.top_header a:hover {
    color: var(--secondary);
}
/* Integrated Tech Slider */
.integrated-tech-slider {
    margin: 60px auto 0;
    max-width: 80vw;
    overflow: hidden;
    position: relative;
}

.tech-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 15px;
    /* background: rgba(255, 255, 255, 0.05); */
    backdrop-filter: blur(10px);
    border-radius: 10px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05);
    background: rgba(110, 68, 255, 0.2);
    border-color: var(--primary);
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--text);
}

/* Tech Background Particles */
.tech-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.5;
}

/* Projects Section */
.projects-section {
    width: 100%;
}

.project-card {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 70%, transparent 100%);
    color: var(--text-light);
}

.project-overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.project-overlay p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 600px;
}

.project-tech {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.project-tech span {
    background: rgba(110, 68, 255, 0.2);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.project-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.project-link:hover {
    background: transparent;
    color: var(--primary-light);
}

/* footer  */
footer {
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--darker-bg);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .header h1 {
        font-size: 3.5rem;
    }
    
    .project-overlay {
        padding: 60px;
    }
}

@media (max-width: 768px) {
    .top_header{
        font-size: 0.7rem;
        gap: 25px;
    }
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header h2 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .tech-item {
        min-width: 70px;
        padding: 10px;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
    
    .project-overlay {
        padding: 40px;
    }
    
    .project-overlay h3 {
        font-size: 2rem;
    }
    
    .project-overlay p {
        font-size: 1rem;
    }

    #img_halaorder {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .tech-item {
        min-width: 60px;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
    
    .tech-item span {
        font-size: 0.8rem;
    }
    
    .project-overlay {
        padding: 30px;
    }
    
    .project-overlay h3 {
        font-size: 1.5rem;
    }
    
    .project-tech span {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .project-link {
        padding: 10px 25px;
    }
}