/* CSS Reset & Custom Properties */
:root {
    --bg-color: #05050f;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    
    --primary-color: #00F0FF;
    --secondary-color: #7000FF;
    --accent-color: #FF0055;
    
    --glass-bg: rgba(15, 20, 40, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.w-100 { width: 100%; }

/* Glassmorphism Classes */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-fast);
}

.glass-nav.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 15, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-fast);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

/* Background Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    bottom: -100px;
    left: -200px;
    animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6);
    transform: scale(1.05);
}

.btn-secondary.glass {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-secondary.glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: inherit;
    filter: blur(15px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-glow:hover::before {
    opacity: 1;
}

/* Navbar */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

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

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

.nav-link.btn-glow {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-link.btn-glow::after { display: none; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg/hero_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.arrow { display: inline-block; transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(5px); }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-logo {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin-bottom: 35px;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
}

.service-icon svg { width: 30px; height: 30px; }

.purple-glow { color: var(--secondary-color); box-shadow: 0 0 20px rgba(112, 0, 255, 0.2); }
.blue-glow { color: var(--primary-color); box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
.pink-glow { color: var(--accent-color); box-shadow: 0 0 20px rgba(255, 0, 85, 0.2); }

.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Stats */
.stats { padding: 60px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); }
.stats-grid { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 30px; }
.stat-number { font-size: 4rem; font-weight: 800; font-family: var(--font-heading); margin-bottom: 10px; }
.stat-text { font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-size: 0.9rem; }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { font-size: 2.5rem; margin-bottom: 10px; }
.about-content h3 { font-size: 2rem; margin-bottom: 20px; }
.about-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem;}
.check-list { margin-top: 30px; }
.check-list li { margin-bottom: 10px; color: #fff; font-weight: 500; display: flex; align-items: center; gap: 10px; }

.about-image { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden;}
.tech-stack-container { width: 100%; height: 100%; position: absolute; }
.floating-tech { 
    position: absolute; 
    padding: 10px 20px; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); 
    border-radius: 20px; 
    font-weight: bold; 
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite alternate;
}
.floating-tech.php { top: 20%; left: 10%; color: #8892BF; animation-delay: 0s; }
.floating-tech.python { top: 70%; left: 20%; color: #3776AB; animation-delay: 1s; }
.floating-tech.js { bottom: 15%; right: 25%; color: #F7DF1E; animation-delay: 0.5s; }
.floating-tech.db { top: 10%; right: 30%; color: #00758F; animation-delay: 1.5s; }
.floating-tech.cpanel { top: 40%; left: 5%; color: #FF6C2C; animation-delay: 2.1s; transform: scale(0.9); }
.floating-tech.nginx { top: 55%; right: 5%; color: #009639; animation-delay: 0.8s; transform: scale(0.85); }
.floating-tech.apache { top: 25%; right: 5%; color: #D22128; animation-delay: 1.8s; }
.floating-tech.docker { top: 35%; left: 35%; color: #0db7ed; animation-delay: 1.2s; transform: scale(0.95); }
.floating-tech.aws { top: 80%; left: 40%; color: #FF9900; animation-delay: 0.3s; transform: scale(0.9); }
.floating-tech.linux { top: 65%; left: 10%; color: #FCC624; animation-delay: 1.4s; transform: scale(0.8); }

.about-image-overlay {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 30px;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    width: 80%;
}
.about-image-overlay h4 { margin-bottom: 15px; font-size: 1.2rem; }
.progress-bar-container { width: 100%; }
.progress-bar-container span { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.progress-bar { width: 100%; background: rgba(0,0,0,0.3); height: 8px; border-radius: 4px; overflow: hidden; }
.progress { height: 100%; background: #fff; border-radius: 4px; }

/* Technologies Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.tech-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.tech-header h3 {
    font-size: 1.8rem;
    margin: 0;
}
.tech-header .service-icon {
    margin-bottom: 0;
}
.tech-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.tech-list li {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.tech-card:nth-child(2) .tech-list li {
    border-left-color: var(--secondary-color);
}
.tech-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}
.tech-list li span {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 5px;
}

/* Base Progress Bar Component for About Section */
.portfolio-slider-container {
    width: 100%;
    margin-top: 30px;
    position: relative;
    padding: 10px 0;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    line-height: 1;
    padding-bottom: 5px;
}
.slider-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.portfolio-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 0 5%;
    padding-bottom: 20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.portfolio-slider:active {
    cursor: grabbing;
}
.portfolio-slider::-webkit-scrollbar { 
    display: none; 
}
.portfolio-slider .portfolio-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    display: block;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}
.portfolio-img { width: 100%; height: 230px; overflow: hidden; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.1); }
.portfolio-info { padding: 25px; }
.portfolio-info h4 { margin-bottom: 5px; color: #fff; font-size: 1.2rem; }
.portfolio-info span { color: var(--primary-color); font-size: 0.85rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 3rem; margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--primary-color); }
.info-icon svg { width: 24px; height: 24px; }
.info-item h5 { font-size: 1.1rem; margin-bottom: 5px; }
.info-item span { color: var(--text-muted); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.glass-input {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.08);
}
.form-status { margin-top: 15px; font-weight: 500; text-align: center; }
.form-success { color: #00F0FF; }
.form-error { color: #FF0055; }

/* Footer */
.footer {
    background: #020205;
    padding: 80px 0 0 0;
    border-top: 1px solid var(--glass-border);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand { max-width: 400px; }
.footer-logo { height: 50px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #fff; border: 1px solid var(--glass-border); }
.social-icon:hover { background: var(--primary-color); border-color: var(--primary-color); transform: translateY(-3px); }

.footer-links h4 { margin-bottom: 20px; font-size: 1.2rem; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: var(--text-muted); }
.footer-links ul li a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 25px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; }

/* Image Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 5, 15, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.zoom-modal.show {
    opacity: 1;
}
.zoom-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.zoom-modal.show .modal-content {
    transform: scale(1);
}
.zoom-modal #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #e2e8f0;
    padding: 15px 0;
    height: 50px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}
.zoom-modal .close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}
.zoom-modal .close-modal:hover,
.zoom-modal .close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}
/* Responsive */
@media (max-width: 991px) {
    .hero h1 { font-size: 3.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(5,5,15,0.95);
        flex-direction: column;
        padding: 30px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .menu-toggle { display: flex; }
    .hero h1 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    .footer-content { flex-direction: column; }
}
