:root {
    --primary: #ff0000;
    --primary-dark: #cc0000;
    --primary-glow: rgba(255, 0, 0, 0.6);
    --bg-dark: #050505;
    --bg-darker: #020202;
    --bg-card: #ffffff;
    --text-main: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

html { scroll-behavior: smooth; }

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.red { color: var(--primary); }

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.logo-text.accent {
    color: var(--primary);
    animation-delay: 0.3s;
    text-shadow: 0 0 20px var(--primary-glow);
}

.loader-bar {
    width: 250px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: loadProgress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loadProgress {
    to { width: 100%; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--primary);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    letter-spacing: 1px;
}

.nav-menu a:hover { color: var(--primary); }

.btn-contact {
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    color: white !important;
    box-shadow: 0 0 15px var(--primary-glow);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Hero Carousel */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active { opacity: 1; visibility: visible; }

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: -1;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.hero-slide.active .slide-bg { transform: scale(1); }

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
    margin-left: 2%; 
    text-align: left;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
}

.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitchAnim 500ms infinite;
}

@keyframes glitchAnim {
    0% { text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    max-width: 600px;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--primary);
}

/* Selector Bar */
.hero-selector-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 20;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.selector-tab {
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    border-right: 1px solid #eee;
    position: relative;
}

.selector-tab h4 { font-family: var(--font-heading); font-size: 0.7rem; margin-bottom: 0.2rem; }
.selector-tab p { font-size: 0.65rem; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.selector-tab.active { background: #fff; }
.selector-tab.active::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary); }

/* Full Screen Sections */
.about, .services, .projects, .developer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

/* About Section */
.about {
    background: var(--bg-darker);
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    color: #fff;
}

.about-content {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.about-desc {
    max-width: 1000px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: #aaa;
    line-height: 1.8;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.mv-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    overflow: hidden;
    text-align: left;
}

.mv-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255,0,0,0.1);
}

.mv-img-box {
    width: 40%;
    min-height: 180px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mv-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.mv-text {
    width: 60%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mv-card h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mv-card p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* White Content Sections */
.services, .projects {
    background: #fff;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    padding: 2rem 1rem;
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-img-container { 
    height: 120px;
    margin-bottom: 1.5rem;
}

.service-img { 
    max-height: 100%; 
    max-width: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

.service-card p {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

/* Paginator */
.paginator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.paginator span {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #fff;
    color: var(--text-dark);
}

.paginator span.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.paginator span:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Projects */
.project-item {
    display: grid;
    grid-template-columns: 140px 1fr 180px;
    align-items: center;
    padding: 1.8rem 2.5rem;
    border: 1px solid #eee;
    margin-bottom: 1.2rem;
    transition: var(--transition);
    gap: 3rem;
}

.project-item:hover {
    border-left: 6px solid var(--primary);
    background: #fafafa;
    transform: translateX(12px);
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-info p {
    font-size: 0.9rem;
}

.project-status {
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Clients + Footer Section */
.clients { 
    padding: 80px 0 40px; 
    background: #f9f9f9; 
    text-align: center; 
}
.clients-slider { 
    display: flex; 
    justify-content: center; 
    gap: 4rem; 
    flex-wrap: wrap; 
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto;
}

.clients .section-title {
    color: #888;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}
.clients .section-title .red {
    color: var(--primary);
    font-weight: 700;
}

.client-logo-box { 
    filter: grayscale(100%) brightness(1.2); 
    opacity: 0.6; 
    transition: var(--transition); 
    width: 160px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.client-logo-box:hover { filter: grayscale(0%) brightness(1); opacity: 1; transform: scale(1.1); }
.client-logo { max-width: 90%; max-height: 90%; object-fit: contain; }

/* Developer Section */
.developer {
    background: #000;
    color: #fff;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.05) 0%, transparent 70%);
}

.dev-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 5rem;
    align-items: center;
}

.dev-photo-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.dev-photo {
    width: 100%;
    display: block;
    filter: grayscale(20%);
    transition: var(--transition);
}

.dev-photo-box:hover .dev-photo { filter: grayscale(0%); transform: scale(1.05); }

.dev-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.dev-tagline {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: block;
}

.dev-bio {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.dev-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stack-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stack-badge:hover {
    border-color: var(--primary);
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-3px);
}

.dev-repos h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #888;
}

.repo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.repo-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.repo-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(10px);
}

.repo-card h5 { color: #fff; margin-bottom: 0.3rem; }
.repo-card p { font-size: 0.75rem; color: #666; }

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-darker);
    color: #aaa;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 { color: #fff; font-family: var(--font-heading); margin-bottom: 1.5rem; font-size: 1rem; }
.footer-col p { font-size: 0.85rem; margin-bottom: 0.6rem; }

/* WhatsApp Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none; 
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.chat-header {
    background: var(--bg-darker);
    padding: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--primary);
}

.chat-status {
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
}

.chat-info h4 { font-family: var(--font-heading); font-size: 0.9rem; margin-bottom: 0.2rem; }
.chat-info span { font-size: 0.75rem; opacity: 0.7; }

.close-chat {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1.5rem;
    background: #f4f4f4;
    min-height: 100px;
}

.chat-msg {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chat-footer {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background: #fff;
}

.chat-footer input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
}

.btn-send {
    background: #25d366; 
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-send:hover { background: #128c7e; transform: scale(1.05); }

/* Floating Share Button */
.share-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--bg-darker);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--primary);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px var(--primary);
}

/* Mobile Navigation Bar */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* RESPONSIVE DESIGN OVERHAUL */
@media (max-width: 1200px) {
    .dev-grid { grid-template-columns: 350px 1fr; gap: 3rem; }
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .project-item { grid-template-columns: 100px 1fr 120px; gap: 1.5rem; }
    .dev-grid { grid-template-columns: 1fr; text-align: center; }
    .dev-photo-box { max-width: 400px; margin: 0 auto; }
    .dev-stack { justify-content: center; }
}

@media (max-width: 768px) {
    .about, .services, .projects, .developer {
        min-height: auto;
        padding: 60px 0;
    }

    .container { padding: 0 1.5rem; }

    .navbar { padding: 1rem 0; background: rgba(0,0,0,0.9); }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #000;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: 0.4s;
    }
    .nav-menu.active { left: 0; }
    .menu-toggle { display: flex; }

    .hero-title { font-size: 2.2rem; }
    .hero-selector-bar { display: none; }

    .section-title { font-size: 2rem; }
    .mv-grid { grid-template-columns: 1fr; gap: 2rem; }
    .mv-card { flex-direction: column; }
    .mv-img-box { width: 100%; height: 120px; }
    .mv-text { width: 100%; padding: 1.5rem; text-align: center; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    
    .project-item {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .chat-widget { display: none !important; }
    .repo-list { grid-template-columns: 1fr; }
    
    .share-btn { width: 50px; height: 50px; bottom: 20px; left: 20px; }
}
