html { background-color: #050507; scroll-behavior: smooth; }

:root {
    --primary: #7000ff;
    --primary-glow: rgba(112, 0, 255, 0.5);
    --secondary: #00f0ff;
    --accent: #ff0055;
    --success: #00ff9d;
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #b0b0b8; 
    --backdrop: blur(16px);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-3d: 0 10px 30px -10px rgba(0,0,0,0.5);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050507; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7000ff, #00f0ff);
    border-radius: 5px;
    border: 2px solid #050507; 
}
::-webkit-scrollbar-thumb:hover { background: #00f0ff; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: #050507;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

.ambient-background {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; overflow: hidden; pointer-events: none;
    background: #050507; transform: translateZ(0);
}

.ambient-light {
    position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
    filter: blur(80px); opacity: 0.4; mix-blend-mode: screen;
    will-change: transform; transform: translateZ(0);
}

.light-1 {
    background: radial-gradient(circle, #7000ff, transparent 70%);
    top: -10%; left: -10%; animation: moveLight1 15s infinite alternate ease-in-out;
}

.light-2 {
    background: radial-gradient(circle, #00f0ff, transparent 70%);
    bottom: -10%; right: -10%; animation: moveLight2 15s infinite alternate ease-in-out;
}

@keyframes moveLight1 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(40vw, 40vh); }
    100% { transform: translate(80vw, 80vh); }
}

@keyframes moveLight2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-40vw, -40vh); }
    100% { transform: translate(-80vw, -80vh); }
}

@media (max-width: 768px) {
    .ambient-light { 
        width: 90vw; 
        height: 90vw; 
        filter: blur(40px);
        animation: none;
    }
}

.notification-popup {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px);
    background: rgba(15, 15, 25, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 15px 25px; border-radius: 50px; display: flex; align-items: center; gap: 15px;
    z-index: 100000; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08); opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    min-width: 300px; max-width: 90%; will-change: transform, opacity;
}

.notification-popup.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.notification-icon { font-size: 1.5rem; display: flex; align-items: center; }
.notification-content h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.notification-content p { margin: 0; font-size: 0.85rem; color: #b0b0b8; }
.notification-popup.success { border-color: #00ff9d; }
.notification-popup.success .notification-icon { color: #00ff9d; }
.notification-popup.error { border-color: #ff0055; }
.notification-popup.error .notification-icon { color: #ff0055; }
.notification-popup.info { border-color: #00f0ff; }
.notification-popup.info .notification-icon { color: #00f0ff; }

#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #050507; z-index: 99999; 
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader {
    position: relative; width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid transparent; border-top-color: #7000ff;
    animation: spin 1s linear infinite;
}
.loader::before {
    content: ""; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px;
    border-radius: 50%; border: 3px solid transparent; border-top-color: #00f0ff;
    animation: spin 2s linear infinite;
}
.loader::after {
    content: ""; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px;
    border-radius: 50%; border: 3px solid transparent; border-top-color: #ff0055;
    animation: spin 1.5s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loaded #preloader { opacity: 0; visibility: hidden; }

.image-modal {
    display: none; position: fixed; z-index: 10000; padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
    justify-content: center; align-items: center; flex-direction: column;
}
.modal-content {
    margin: auto; display: block; width: 80%; max-width: 900px;
    max-height: 80vh; object-fit: contain; border-radius: 10px;
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.3); animation: zoom 0.3s;
}
.close-modal {
    position: absolute; top: 20px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 10001;
}
.close-modal:hover { color: #7000ff; }
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }
@media only screen and (max-width: 700px){
    .modal-content { width: 95%; } .close-modal { top: 10px; right: 20px; }
}

nav, section, footer { position: relative; z-index: 1; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }
.gradient-text {
    background: linear-gradient(135deg, #00f0ff, #7000ff, #ff0055);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% 200%; animation: gradientFlow 5s ease infinite;
    will-change: background-position;
}
.txt-rotate {
    color: #00f0ff; border-right: 0.08em solid #b0b0b8;
    padding-right: 5px; animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #00f0ff } }

nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateZ(0); 
    width: 90%; max-width: 1200px; padding: 15px 30px;
    background: transparent; border: 1px solid transparent; border-radius: 50px;
    display: flex; justify-content: space-between; align-items: center; z-index: 1000;
    transition: all 0.4s ease-in-out; 
    will-change: transform, background-color, box-shadow;
}
nav.nav-scrolled {
    background: rgba(15, 15, 20, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.logo { font-size: 1.1rem; font-weight: 800; text-decoration: none; color: #ffffff; display: flex; align-items: center; gap: 10px; letter-spacing: 1px; }
.logo img { height: 40px; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { text-decoration: none; color: #b0b0b8; font-weight: 500; font-size: 0.95rem; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.nav-links a:hover, .nav-links a.active { color: #ffffff; text-shadow: 0 0 10px rgba(112, 0, 255, 0.5); font-weight: 600; }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.hamburger { display: none; color: #ffffff; font-size: 1.5rem; cursor: pointer; }

section { padding: 100px 20px; max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 3rem; margin-top: 10px; }
.section-header span { color: #00f0ff; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-size: 0.9rem; }

.glass-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 20px; padding: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transform: translateZ(0); 
    will-change: transform, box-shadow, border-color;
}
.hover-3d { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.hover-3d:hover { transform: translateY(-10px) scale(1.02) translateZ(0); border-color: #7000ff; box-shadow: 0 20px 40px -10px rgba(112, 0, 255, 0.5); }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 120px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; width: 100%; }
.hero-text h1 { font-size: 4rem; margin-bottom: 20px; letter-spacing: -1px; }
.hero-text p { font-size: 1.2rem; color: #b0b0b8; margin-bottom: 30px; max-width: 550px; line-height: 1.6; }

.btn { padding: 12px 35px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: inline-flex; align-items: center; gap: 10px; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(90deg, #7000ff, #00f0ff); color: white; box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(112, 0, 255, 0.5); }
.btn-outline { background: rgba(255,255,255,0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: #ffffff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #ffffff; }

.hero-visual { perspective: 1000px; display: flex; justify-content: center; }
.tilt-box {
    width: 380px; height: 480px; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 30px; position: relative;
    transform-style: preserve-3d; transition: transform 0.1s;
    will-change: transform;
}
.tilt-inner { position: absolute; inset: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateZ(50px); }
.profile-pic { width: 220px; height: 220px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.1); object-fit: cover; box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.float-icon { position: absolute; width: 50px; height: 50px; background: rgba(20,20,30,0.95); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; animation: float 6s ease-in-out infinite; box-shadow: 0 10px 20px rgba(0,0,0,0.3); will-change: transform; }
.fi-1 { top: 30px; left: -20px; color: #00f0ff; transform: translateZ(80px); animation-delay: 0s; }
.fi-2 { bottom: 50px; right: -30px; color: #61dafb; transform: translateZ(60px); animation-delay: 2s; }
.fi-3 { bottom: 40px; left: -10px; color: #e34c26; transform: translateZ(40px); animation-delay: 4s; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stat-row { display: flex; gap: 20px; margin-top: 30px; }
.stat-card { flex: 1; text-align: center; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 15px; }
.stat-num { font-size: 2rem; font-weight: 700; color: #00f0ff; display: block; }

.timeline-container { position: relative; border-left: 2px solid rgba(255, 255, 255, 0.08); margin-left: 20px; padding-left: 40px; }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-dot { position: absolute; left: -49px; top: 0; width: 16px; height: 16px; background: #050507; border: 3px solid #7000ff; border-radius: 50%; box-shadow: 0 0 15px #7000ff; }
.timeline-year { color: #7000ff; font-weight: 700; margin-bottom: 5px; display: block; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.skill-card { text-align: center; padding: 25px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.skill-card i { font-size: 2.5rem; transition: 0.3s; }
.skill-card:hover i { transform: scale(1.2); filter: drop-shadow(0 0 10px currentColor); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.project-card { padding: 0; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.project-img-wrapper { overflow: hidden; height: 200px; position: relative; }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; will-change: transform;}
.project-card:hover .project-img { transform: scale(1.1); }
.project-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.project-content h3 { margin-bottom: 10px; font-size: 1.4rem; }
.project-content p { color: #b0b0b8; font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

/* --- Sleek System Theme Featured Badge --- */
.featured-badge { 
    position: absolute; top: 15px; right: 15px; 
    background: rgba(0, 240, 255, 0.1); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.3); 
    color: #00f0ff; 
    padding: 6px 14px; border-radius: 50px; 
    font-size: 0.7rem; font-weight: 600; 
    z-index: 10; display: flex; align-items: center; gap: 6px; 
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15); 
    letter-spacing: 1px; 
}
.featured-badge i { color: #00f0ff; font-size: 0.7rem; }
.featured-project { border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.2); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.service-card { position: relative; overflow: hidden; }
.service-icon { font-size: 2.5rem; color: #00f0ff; margin-bottom: 20px; }
.service-price { font-size: 1.2rem; font-weight: 700; color: #7000ff; margin: 15px 0; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #7000ff, #00f0ff); transform: scaleX(0); transform-origin: left; transition: 0.4s; }
.service-card:hover::before { transform: scaleX(1); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); transform: translateZ(0); aspect-ratio: 3 / 2; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); filter: grayscale(20%); will-change: transform, filter; }
.gallery-item:hover, .gallery-item.touch-active { border-color: #7000ff; box-shadow: 0 0 20px rgba(112, 0, 255, 0.5); z-index: 2; }
.gallery-item:hover .gallery-img, .gallery-item.touch-active .gallery-img { filter: grayscale(0); transform: scale(1.1); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); transform: translateY(100%); transition: 0.3s ease-in-out; display: flex; align-items: flex-end; pointer-events: none; }
.gallery-item:hover .gallery-overlay, .gallery-item.touch-active .gallery-overlay { transform: translateY(0); }
.gallery-overlay h4 { font-size: 1rem; color: white; margin: 0; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-details { display: flex; flex-direction: column; gap: 25px; }
.contact-row { display: flex; align-items: center; gap: 20px; }
.icon-circle { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #7000ff; border: 1px solid rgba(255, 255, 255, 0.08); }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; color: #ffffff; outline: none; transition: 0.3s; font-family: inherit; }
.form-control:focus { border-color: #7000ff; background: rgba(0,0,0,0.4); }

footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 40px 20px; text-align: center; margin-top: 50px; background: rgba(0,0,0,0.3); }

.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #7000ff; border-radius: 50%; border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; transition: 0.3s; pointer-events: none; z-index: 99; transform: translateZ(0);}
.scroll-top.show { opacity: 1; pointer-events: all; }

.whatsapp-float {
    position: fixed; width: 50px; height: 50px; bottom: 30px; left: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 24px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); z-index: 1000;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
    text-decoration: none; transform: translateZ(0);
}
.whatsapp-float:hover { transform: translateY(-5px) translateZ(0); background-color: #20b858; }
.whatsapp-float::after {
    content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50px;
    background: #25d366; opacity: 0.5; z-index: -1; animation: pulse-green 2s infinite;
}
@keyframes pulse-green { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

@keyframes floatOrb { 0% { transform: translate(0,0); } 100% { transform: translate(50px, 50px); } }
@keyframes float { 0%, 100% { transform: translateY(0) translateZ(60px); } 50% { transform: translateY(-15px) translateZ(60px); } }
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

@media (max-width: 992px) {
    section { padding: 80px 20px; }
    .section-header h2 { font-size: 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; margin-bottom: 30px; }
    .hero-text h1 { font-size: 3rem; }
    .hero-text div { justify-content: center; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .projects-grid, .services-grid { grid-template-columns: repeat(2, 1fr); justify-items: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 880px) {
    .hamburger { display: block; z-index: 1002; }
    .nav-links { 
        position: fixed; top: 0; right: -100%; height: 100vh; width: 75%; 
        background: linear-gradient(135deg, rgba(20, 20, 30, 0.7), rgba(10, 10, 15, 0.9));
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08); box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        flex-direction: column; justify-content: center; align-items: center; gap: 40px; 
        transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); z-index: 1001;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; font-weight: 600; }
}

@media (max-width: 767px) {
    .hero-text h1 { min-height: 140px; font-size: 2.1rem; }
    section { padding: 60px 15px; } 
    .glass-card { padding: 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(255, 255, 255, 0.05); }
    .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .skill-card { padding: 15px; } .skill-card i { font-size: 2rem; } .skill-card h4 { font-size: 0.9rem; }
    .projects-grid, .services-grid { grid-template-columns: 1fr; justify-items: center; }
    .project-card, .service-card { width: 100%; max-width: 380px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; } 
    .section-header h2 { font-size: 2.2rem; }
    .tilt-box { width: 280px; height: 380px; }
    .profile-pic { width: 180px; height: 180px; }
}