*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:monospace;
}

body{
background:black;
color:white;
overflow-x:hidden;
}

/* loader */

#loader{
position:fixed;
width:100%;
height:100%;
background:black;
display:flex;
align-items:center;
justify-content:center;
z-index:999;
font-size:30px;
}

/* header */

header{
position:fixed;
width:100%;
display:flex;
justify-content:space-between;
padding:20px;
background:rgba(0,0,0,0.6);
z-index:10;
}

.logo{
color:red;
font-weight:bold;
display:flex;
align-items:center;
}

/* logo image styling */
.logo img{
    height:40px;
    width:auto;
    margin-right:10px;
}

nav a{
margin-left:20px;
color:white;
text-decoration:none;
}

nav a:hover{
color:red;
}

/* hero */

.hero{
position:relative;
height:100vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
overflow:hidden;
}

#bg-video{
/* make video fixed so it stays behind the entire page as you scroll */
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
object-fit:cover;
z-index:-2;
}

/* sections slightly transparent to let the video show through and keep continuity */
section{
    background:rgba(0,0,0,0.6);
    padding:120px 10%;
}

.hero::after{
content:"";
position:absolute;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
z-index:-1;
}

.hero-content{
z-index:2;
}

.hero h1{
font-size:70px;
/* add fade-in animation and red glow for Gotham vibe */
animation: fadeInUp 2s ease-out;
text-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.5);
position: relative;
z-index: 10;
}

/* styling for hero subtitle with delayed fade-in and subtle glow */
.hero p {
    font-size: 24px;
    animation: fadeInUp 2s ease-out 1s both;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.bat{
/* enlarged for better visibility, maintaining ~3:2 aspect ratio (close to 2168x1481) */
/* hover bounce */
width:240px;
height:160px;
transition: transform 0.3s ease;
border: none;
background: transparent;
}

.bat a {
    display: block;
    border: none;
    background: transparent;
    padding: 0;
}

.bat:hover {
    animation: bounce 0.6s ease;
}

.bat img{
    width:100%;
    height:100%;
    object-fit:contain;
    /* smooth transition for press animation */
    transition: transform 0.1s ease, filter 0.3s ease;
    /* glow follows image shape, not rectangular box */
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
}

.bat:hover img {
    filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.8));
}

/* scale down on click/press for feedback */
.bat a:active img {
    transform: scale(0.95);
}

/* fade-in animation for hero title */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* bounce animation for Red Hood on hover */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* sections */

section{
padding:120px 10%;
}

h2{
color:red;
margin-bottom:30px;
}

/* About section with more prominent styling */
#about {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 0, 0, 0.85) 100%);
    border-left: 4px solid red;
    border-right: 4px solid red;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2), inset 0 0 20px rgba(255, 0, 0, 0.05);
}

#about p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
}

/* Projects section styling */
#projects {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 0, 0, 0.85) 100%);
    border-left: 4px solid red;
    border-right: 4px solid red;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2), inset 0 0 20px rgba(255, 0, 0, 0.05);
}

/* Skills section styling */
#skills {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 0, 0, 0.85) 100%);
    border-left: 4px solid red;
    border-right: 4px solid red;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2), inset 0 0 20px rgba(255, 0, 0, 0.05);
}

/* Achievements section styling */
#achievements {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 0, 0, 0.85) 100%);
    border-left: 4px solid red;
    border-right: 4px solid red;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2), inset 0 0 20px rgba(255, 0, 0, 0.05);
}

/* Developer Terminal section styling */
#terminal {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 0, 0, 0.85) 100%);
    border-left: 4px solid red;
    border-right: 4px solid red;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2), inset 0 0 20px rgba(255, 0, 0, 0.05);
}

/* Contact section styling */
#contact {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 0, 0, 0.85) 100%);
    border-left: 4px solid red;
    border-right: 4px solid red;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2), inset 0 0 20px rgba(255, 0, 0, 0.05);
}

/* projects */

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.card{
background:#111;
padding:20px;
border-left:4px solid red;
transition:.3s;
}

.card:hover{
transform:translateY(-10px);
box-shadow:0 0 15px red;
}

/* skills */

.skills{
display:flex;
flex-wrap:wrap;
gap:20px;
justify-content:center;
align-items:center;
}

.skill-card{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
padding:20px;
background:#111;
border:2px solid red;
border-radius:8px;
transition:0.3s;
min-width:100px;
text-align:center;
box-shadow:0 0 15px rgba(255, 0, 0, 0.1);
}

.skill-card:hover{
background:#1a0000;
box-shadow:0 0 25px rgba(255, 0, 0, 0.5);
transform:translateY(-5px);
}

.skill-logo{
height:60px;
width:60px;
margin-bottom:10px;
object-fit:contain;
filter:drop-shadow(0 0 8px rgba(255, 0, 0, 0.3));
}

.skill-card:hover .skill-logo{
filter:drop-shadow(0 0 15px rgba(255, 0, 0, 0.8));
}

/* terminal */

.terminal{
background:black;
border:2px solid red;
padding:20px;
line-height:1.8;
font-size: 14px;
min-height: 120px;
color: #00ff00;
text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* rain */

#rain{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:-3;
}

/* footer */

footer{
text-align:center;
padding:40px;
background:black;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller devices (768px and below) */
@media (max-width: 768px) {

    /* header */
    header {
        flex-direction: column;
        padding: 15px;
    }

    .logo {
        margin-bottom: 15px;
        font-size: 18px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        margin-left: 0;
        font-size: 14px;
        padding: 5px 10px;
        border: 1px solid red;
        border-radius: 4px;
    }

    /* hero */
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 16px !important;
    }

    .bat {
        width: 150px;
        height: 100px;
    }

    /* sections */
    section {
        padding: 80px 5% !important;
    }

    h2 {
        font-size: 28px;
    }

    /* projects grid */
    .grid {
        grid-template-columns: 1fr;
    }

    /* skills */
    .skills {
        gap: 15px;
    }

    .skill-card {
        min-width: 80px;
        padding: 15px;
    }

    .skill-logo {
        height: 45px;
        width: 45px;
    }

    /* achievements */
    .achievements-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .achievement-icon {
        font-size: 40px;
    }

    /* terminal */
    .terminal {
        padding: 15px;
        font-size: 14px;
    }

}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {

    /* header */
    header {
        padding: 10px;
    }

    .logo {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .logo img {
        height: 30px;
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* hero */
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 14px !important;
    }

    .bat {
        width: 120px;
        height: 80px;
    }

    /* sections */
    section {
        padding: 60px 5% !important;
    }

    h2 {
        font-size: 24px;
    }

    /* skills */
    .skill-card {
        min-width: 70px;
        padding: 12px;
    }

    .skill-logo {
        height: 40px;
        width: 40px;
        margin-bottom: 8px;
    }

    .skill-card span {
        font-size: 12px;
    }

    /* achievements */
    .achievement-item {
        padding: 18px;
    }

    .achievement-icon {
        font-size: 35px;
        margin-bottom: 10px;
    }

    .achievement-item h3 {
        font-size: 16px;
    }

    .achievement-item p {
        font-size: 13px;
    }

    /* terminal */
    .terminal {
        padding: 12px;
        font-size: 12px;
        line-height: 1.5;
    }

    /* footer */
    footer {
        padding: 20px;
    }

}