:root {
    --bg-color: #080808;       
    --card-bg: #131313;       
    --text-color: #ffffff;
    --main-color: #00ef18;    
    --secondary-text: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* navigation bar styles shared by all pages */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 9%;
    background: rgba(8, 8, 8, 0.95); 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 239, 24, 0.1);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: rgb(190, 190, 190);
    font-weight: 500;
    transition: 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--main-color);
}

/*homepage hero section*/
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 0 9%;
}

.hero-content {
    max-width: 600px;
}

.hero-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--main-color);
    margin: 0.5rem 0;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.hero-content strong { color: var(--main-color); }
.hero-content span { color: var(--main-color); font-weight: 600; }
.highlight { color: var(--main-color); text-transform: uppercase; letter-spacing: 1px; }

/* Hero Image */
.hero-img img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%; 
    box-shadow: 0px 0px 20px var(--main-color);
    animation: floatImage 4s ease-in-out infinite;
}
/* Animation for the img in the hero section */
@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
/* Project sections */
.projects-section {
    padding: 6rem 9% 2rem;
    min-height: auto; 
}


.project-card {
    border-top: 3px solid transparent; 
}

.project-card:hover {
    border-top: 3px solid var(--main-color);
}

.project-links {
    margin-top: auto; 
    display: flex;
    gap: 1rem;
}

/*Buttons for Projects */
.btn-small {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.3s ease;
}

.btn-small:hover {
    box-shadow: 0 0 10px var(--main-color);
    transform: translateY(-2px);
}

.btn-small.outline {
    background: transparent;
    border: 1px solid var(--main-color);
    color: var(--main-color);
}

.btn-small.outline:hover {
    background: var(--main-color);
    color: var(--bg-color);
}
/* Childhood */
.story-heading {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.story-heading span {
    color: var(--main-color);
}

/* Wrapper for Childhood Page */
.childhood-section {
    padding: 10rem 9% 4rem; 
    min-height: 100vh;
}

/*CARD GRID DESIGN*/
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--main-color); 
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    color: var(--text-color);
    font-size: 1.4rem;
}

.year {
    color: var(--main-color);
    font-size: 0.9rem;
    font-weight: bold;
    background: rgba(0, 239, 24, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.card p {
    color: var(--secondary-text);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* The neon accent bar at bottom of card */
.card-footer {
    height: 4px;
    width: 50px;
    background: var(--main-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.card:hover .card-footer {
    width: 100%; 
    box-shadow: 0 0 10px var(--main-color);
}

/*mobile responsivness */
@media (max-width: 991px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 10rem;
    }
    .hero-img img { width: 300px; height: 300px; }
}

/*skill bars css*/
.skill-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.skill-box {
    width: 100%;
}

.skill-box .title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 8px;
    width: 100%;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1); 
    position: relative;
}

.skill-per {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: var(--main-color); 
    position: relative;
    animation: fillBar 2.5s 1; /* Animation on load */
}
/*shows the percentage when you hover*/
.skill-per::after {
    content: attr(style); 
    position: absolute;
    right: -10px;
    top: -25px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--main-color);
    padding: 2px 6px;
    background: #000;
    border-radius: 3px;
    opacity: 0;
    transition: 0.3s;
}

.skill-box:hover .skill-per::after {
    opacity: 1;
}

/* Animation Keyframes */
@keyframes fillBar {
    0% { width: 0; }
}

/*CONTACT SECTION STYLES*/
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info, .contact-form {
    padding: 2.5rem;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--main-color);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--main-color);
}

/* Form Inputs */
.input-box {
    margin-bottom: 1.5rem;
}

.input-box input, 
.input-box textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-color); 
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    resize: none; 
}

.input-box input:focus, 
.input-box textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(0, 239, 24, 0.3);
}

/* Submit Button */
.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: var(--main-color);
    border-radius: 40px;
    font-size: 1rem;
    color: var(--bg-color);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
    border: none;
}

.btn:hover {
    box-shadow: 0 0 10px var(--main-color);
    transform: scale(1.05);
}
/*js mobile styles*/
@media (max-width: 768px) {
    #hamburger-menu {
        display: block !important; 
        position: absolute;
        right: 2rem;
        top: 1rem;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-top: 1px solid rgba(0, 239, 24, 0.1);
        display: none; 
    }

  
    nav ul.active {
        display: flex;
    }
}

/*FOOTER STYLES*/
footer {
    background: var(--card-bg); 
    padding: 4rem 9% 1.5rem;
    border-top: 1px solid rgba(0, 239, 24, 0.1);
    margin-top: 4rem; }

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer-col h3 span {
    color: var(--main-color);
}

.footer-col p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Links */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--secondary-text);
    font-size: 1rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--main-color);
    padding-left: 5px; 
}


.footer-col .social-links {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

/* Copyright Bar */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Mobile responsiveness for the footer */
@media (max-width: 768px) {
    footer {
        padding: 2rem 5%;
    }
    
    .footer-container {
        text-align: center;
    }

    .footer-col .social-links {
        justify-content: center;
    }

}


