/* =========================================
   1. GLOBAL RESET & CORE
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom Scrollbar - Danger Crimson Theme */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: crimson;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff0040;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* =========================================
   2. BACKGROUND: MOVING CYBER GRID (HACKER LOOK)
   ========================================= */
body::before {
    content: "";
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(220, 20, 60, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 20, 60, 0.1) 1px, transparent 1px);
    background-size: 50px 50px; 
    z-index: -99;
    pointer-events: none;
    transform: perspective(500px) rotateX(60deg); 
    animation: gridMove 20s linear infinite;
    opacity: 0.6;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Ambient Glow for Danger Vibe */
body::after {
    content: "";
    position: fixed;
    top: 50%; left: 50%; width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15), transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -100;
}

/* =========================================
   3. NAVBAR (PC & MOBILE READY)
   ========================================= */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 25px 0;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}
.navbar.sticky {
    padding: 15px 0;
    background: rgba(20, 0, 5, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid crimson;
}
.navbar .max-width {
    max-width: 1500px;
    padding: 0 40px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a {
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}
.navbar .logo a span {
    color: crimson;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px crimson;
}
.navbar .menu li {
    list-style: none;
    display: inline-block;
    margin-left: 45px;
}
.navbar .menu li a {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar .menu li a:hover {
    color: crimson;
    text-shadow: 0 0 10px crimson;
}
.menu-btn {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}
.scroll-up-btn {
    position: fixed;
    height: 45px; width: 42px;
    background: crimson;
    right: 30px; bottom: 10px;
    text-align: center; line-height: 45px;
    color: #fff; z-index: 9999; font-size: 30px;
    border-radius: 6px; cursor: pointer;
    opacity: 0; pointer-events: none;
    transition: all 0.3s ease;
}
.scroll-up-btn.show { bottom: 30px; opacity: 1; pointer-events: auto; }

/* =========================================
   4. HOME SECTION
   ========================================= */
.home {
    display: flex;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    font-family: 'Ubuntu', sans-serif;
    position: relative;
    overflow: hidden;
}
.home .max-width {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}
.home .home-content {
    width: 60%;
    z-index: 10;
}
.home .home-content .text-1 {
    font-size: 28px;
    color: #00e5ff; 
    font-weight: 500;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}
.home .home-content .text-2 {
    font-size: 85px;
    font-weight: 700;
    margin-left: -3px;
    color: #fff;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8), 0 0 30px rgba(220, 20, 60, 0.3);
}
.home .home-content .text-3 {
    font-size: 40px;
    margin: 10px 0;
    font-weight: 600;
    color: #fff;
}
.home .home-content .text-3 span {
    color: crimson;
    font-weight: 700;
    text-shadow: 0 0 20px crimson;
}
.home .home-content a {
    display: inline-block;
    font-size: 22px;
    padding: 15px 45px;
    margin-top: 35px;
    font-weight: 600;
    border-radius: 5px;
    background: rgba(220, 20, 60, 0.1); 
    border: 2px solid crimson;
    color: crimson;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.2);
}
.home .home-content a:hover {
    background: crimson;
    color: #fff;
    box-shadow: 0 0 50px crimson;
    transform: translateY(-5px);
}

.home .home-content .social-icons {
    margin-top: 35px;
    display: flex; gap: 25px;
}
.home .home-content .social-icons a {
    display: inline-flex;
    justify-content: center; align-items: center;
    width: 50px; height: 50px;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    font-size: 22px;
    color: rgba(0, 229, 255, 0.7);
    transition: all 0.4s ease;
}
.home .home-content .social-icons a:hover {
    border-color: #00e5ff;
    color: #fff;
    background: #00e5ff;
    box-shadow: 0 0 30px #00e5ff;
    transform: translateY(-5px);
}

.home .home-img {
    position: absolute; right: 0; bottom: 0;
    height: 100vh; width: 50%;
    z-index: 2; pointer-events: none;
    display: flex; align-items: flex-end; justify-content: flex-end; 
}
.home .home-img img {
    margin-bottom: -120px; margin-right: -20px;
    height: 95vh; width: auto; object-fit: contain;
    filter: drop-shadow(-10px 0 30px rgba(0,0,0,0.9));
}

/* =========================================
   5. COMMON SECTIONS
   ========================================= */
section {
    padding: 100px 0;
}
section .max-width {
    max-width: 1500px;
    padding: 0 40px;
    margin: auto;
}
section .title {
    position: relative; text-align: center;
    font-size: 40px; font-weight: 600;
    margin-bottom: 60px; padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif; color: #fff;
}
section .title::before {
    content: ""; position: absolute; bottom: 0px; left: 50%; width: 180px; height: 3px;
    background: #fff; transform: translateX(-50%);
}
section .title::after {
    content: "SYSTEM";
    position: absolute; bottom: -8px; left: 50%;
    font-size: 20px; color: crimson;
    padding: 0 5px; background: #000;
    transform: translateX(-50%); letter-spacing: 2px;
}

/* =========================================
   6. SERVICES SECTION (AUTO SCROLLING)
   ========================================= */
.services .max-width {
    overflow: hidden; 
}
.services .serv-content {
    display: flex;
    gap: 30px;
    width: max-content; 
    animation: scroll 20s linear infinite; 
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
.services .serv-content:hover {
    animation-play-state: paused;
}
.services .serv-content .card {
    width: 400px;
    background: #111;
    text-align: center; border-radius: 6px; padding: 50px 25px;
    cursor: pointer; transition: all 0.3s ease;
    border: 1px solid #222;
    flex-shrink: 0; 
}
.services .serv-content .card:hover {
    background: crimson;
    box-shadow: 0 0 20px crimson;
    transform: translateY(-5px);
}
.services .serv-content .card i {
    font-size: 50px; color: crimson; transition: color 0.3s ease;
}
.services .serv-content .card:hover i { color: #fff; }
.services .serv-content .card .text {
    font-size: 25px; font-weight: 500; margin: 10px 0 7px 0; color: #fff;
}
.services .serv-content .card p { color: #ccc; }

/* =========================================
   7. ABOUT SECTION
   ========================================= */
.about .about-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.about .about-content .left { width: 40%; }
.about .about-content .left img {
    height: 450px; width: 450px; object-fit: cover; border-radius: 6px;
    border: 3px solid crimson; box-shadow: 10px 10px 0px rgba(220, 20, 60, 0.2);
    transition: all 0.3s ease;
}
.about .about-content .left img:hover {
    box-shadow: 15px 15px 0px rgba(220, 20, 60, 0.4); transform: translateY(-5px);
}
.about .about-content .right { width: 55%; }
.about .about-content .right .text { font-size: 25px; font-weight: 600; margin-bottom: 10px; }
.about .about-content .right .text span { color: crimson; }
.about .about-content .right p { text-align: justify; color: #ccc; }
.about .about-content .right a {
    display: inline-block; background: crimson; color: #fff; font-size: 20px; font-weight: 500;
    padding: 10px 30px; margin-top: 20px; border-radius: 6px; border: 2px solid crimson;
    transition: all 0.3s ease;
}
.about .about-content .right a:hover { color: crimson; background: transparent; }

/* =========================================
   8. SKILLS SECTION
   ========================================= */
.skills .skills-content { display: flex; flex-wrap: wrap; justify-content: space-between; }
.skills .skills-content .column { width: 48%; }
.skills .skills-content .left .text { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.skills .skills-content .left p { text-align: justify; color: #ccc; }
.skills .skills-content .left a {
    display: inline-block; background: transparent; color: crimson; font-size: 18px; font-weight: 500;
    padding: 8px 16px; margin-top: 20px; border-radius: 6px; border: 2px solid crimson;
}
.skills .skills-content .left a:hover { background: crimson; color: #fff; }

.skills .skills-content .right .bars { margin-bottom: 15px; }
.skills .skills-content .right .info { display: flex; margin-bottom: 5px; align-items: center; justify-content: space-between; }
.skills .skills-content .right .line {
    height: 5px; width: 100%; background: #333; position: relative;
}
.skills .skills-content .right .line::before {
    content: ""; position: absolute; height: 100%; left: 0; top: 0; background: crimson;
    box-shadow: 0 0 10px crimson;
}
.skills-content .right .java::before{ width: 90%; }
.skills-content .right .html::before{ width: 80%; }
.skills-content .right .js::before{ width: 75%; }
.skills-content .right .mysql::before{ width: 85%; }

/* =========================================
   9. PROJECT SECTION (AUTO SCROLL UPGRADE)
   ========================================= */
.teams .max-width {
    overflow: hidden; 
}

/* Auto Scroll Animation like Services */
.teams .carousel {
    display: flex;
    gap: 30px;
    width: max-content; 
    animation: projectScroll 25s linear infinite; 
}

@keyframes projectScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Pause on hover */
.teams .carousel:hover {
    animation-play-state: paused;
}

.teams .card-cyber {
    width: 400px;
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid rgba(220, 20, 60, 0.2) !important;
    backdrop-filter: blur(15px);
    position: relative;
    padding: 40px 20px !important;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden;
}

.teams .card-cyber:hover {
    border-color: crimson !important;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.3);
    transform: translateY(-10px) scale(1.02);
}

/* Hacker Corner Accents */
.corner-acc {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid crimson;
    opacity: 0.5;
    transition: 0.3s;
}

.card-cyber:hover .corner-acc {
    opacity: 1;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 15px crimson;
}

.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Neon Glow Icons */
.icon-neon {
    font-size: 50px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px crimson, 0 0 20px crimson;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 5px crimson); }
    50% { filter: drop-shadow(0 0 20px crimson); }
}

/* Cyber Button Styling */
.project-link-cyber {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 10px 25px;
    margin-top: 25px;
    border: 1px solid crimson;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: 0.3s;
    z-index: 1;
}

.project-link-cyber::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: crimson;
    z-index: -1;
    transition: 0.4s;
}

.project-link-cyber:hover::before {
    width: 100%;
}

.project-link-cyber:hover {
    box-shadow: 0 0 20px crimson;
    color: #fff;
}

/* =========================================
   10. CONTACT (HACKER FORM)
   ========================================= */
.contact .contact-content .column { width: 48%; }
.contact .contact-content .text { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.contact .contact-content .row { display: flex; height: 65px; align-items: center; }
.contact .contact-content .row i { font-size: 25px; color: crimson; }
.contact .right form .fields { display: flex; gap: 15px; }
.contact .right form .field, .contact .right form .textarea { height: 45px; width: 100%; margin-bottom: 15px; }
.contact .right form .textarea { height: 80px; }

.contact .right form .field input, .contact .right form .textarea textarea {
    height: 100%; width: 100%; border: 1px solid #333; background: #111;
    color: #fff; border-radius: 6px; outline: none; padding: 0 15px;
    font-size: 17px; transition: all 0.3s ease;
}
.contact .right form .field input:focus, .contact .right form .textarea textarea:focus {
    border-color: crimson; box-shadow: 0 0 10px crimson;
}
.contact .right form .button-area button {
    color: #fff; display: block; width: 160px!important; height: 45px; outline: none;
    font-size: 18px; font-weight: 500; border-radius: 6px; cursor: pointer;
    background: crimson; border: 2px solid crimson; transition: all 0.3s ease;
}
.contact .right form .button-area button:hover { background: transparent; color: crimson; }

/* =========================================
   11. NEW DETAILED FOOTER STYLING (HACKER THEME)
   ========================================= */
footer {
    background: #080808;
    padding: 60px 0 30px 0;
    color: #fff;
    border-top: 1px solid rgba(220, 20, 60, 0.3);
    text-align: center;
}

.footer-content.max-width {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 35px;
    font-weight: 600;
}

.footer-logo span {
    color: crimson;
}

.footer-social a {
    color: #fff;
    font-size: 22px;
    margin-left: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 50%;
}

.footer-social a:hover {
    color: crimson;
    border-color: crimson;
    box-shadow: 0 0 15px crimson;
    transform: translateY(-5px);
}

.footer-desc {
    margin-bottom: 30px;
}

.footer-desc p {
    color: #ccc;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.quick-links a {
    color: #fff;
    margin: 0 15px;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

.quick-links a:hover {
    color: crimson;
}

footer span {
    display: block;
    margin-top: 20px;
    color: #888;
}

footer span a {
    color: crimson;
    font-weight: 600;
}

/* =========================================
   12. UNIVERSAL RESPONSIVENESS
   ========================================= */
@media (max-width: 991px) {
    .max-width { padding: 0 50px; }
    .menu-btn { display: block; z-index: 999; }
    .navbar .menu {
        position: fixed; height: 100vh; width: 100%; left: -100%; top: 0;
        background: #000; text-align: center; padding-top: 80px; transition: 0.3s;
    }
    .navbar .menu.active { left: 0; }
    .navbar .menu li { display: block; margin: 20px 0; margin-left: 0; }
    .navbar .menu li a { font-size: 25px; }
    .home .home-content .text-2 { font-size: 50px; white-space: normal; }
    .home .home-img { display: none; }
    .about .about-content .column, .skills .skills-content .column, .contact .contact-content .column { width: 100%; }
    .about .about-content .left { display: flex; justify-content: center; margin: 0 auto 40px; }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    .footer-social a {
        margin: 0 10px;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-2 { font-size: 40px; }
    .contact .right form .fields { flex-direction: column; }
    .quick-links a {
        display: block;
        margin: 10px 0;
    }
}
/* =========================================
   NEW DETAILED FOOTER (BHARA-BHARA LOOK)
   ========================================= */
footer {
    background: #080808;
    padding: 80px 0 30px 0;
    border-top: 2px solid crimson;
    color: #fff;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 20px;
    color: crimson;
    margin-bottom: 25px;
    position: relative;
    font-family: 'Ubuntu', sans-serif;
}

.footer-col h3::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #fff;
}

.footer-col p {
    color: #ccc;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: crimson;
    padding-left: 8px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    background: #111;
    border: 1px solid rgba(220, 20, 60, 0.3);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: crimson;
    box-shadow: 0 0 15px crimson;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    width: 100%;
}

.footer-bottom hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-bottom p a {
    color: crimson;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::before {
        left: 50%;
        transform: translateX(-50%);
    }
}