/* ================= GLOBAL RESET ================= */
/* Remove default margins and paddings, set box-sizing to border-box for all elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ================= BODY STYLES ================= */
/* Set background image and text styles */
body {
    font-family: 'Poppins', sans-serif;
    background-image: url("modern.jpg");  /* Background image for the page */
    background-size: cover;                      /* Image covers the entire page */
    background-position: center;                 /* Center the image */
    background-attachment: fixed;                 /* Image stays fixed while scrolling */
    background-color: #111;                       /* Fallback color if image fails to load */
    color: white;
    min-height: 100vh;                            /* Minimum height of the page */
    margin: 0;
    padding: 0;
}

/* ================= NAVBAR STYLES ================= */
/* Flex container for navigation bar with semi-transparent black background */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);        /* Semi-transparent black */
    padding: 15px 40px;
    flex-wrap: wrap;
    backdrop-filter: blur(5px);                   /* Adds blur effect behind navbar */
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2); /* Green glow effect */
}

/* Left section of navbar - flex container for links */
.nav-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

/* ================= HOME BUTTON STYLES ================= */
/* Stylish home button with icon */
.home-button {
    display: flex;
    align-items: center;
    gap: 10px;                                    /* Space between icon and text */
    color: white;
    padding: 12px 25px;
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s;
    background: linear-gradient(45deg, #00ff88, #00cc66); /* Gradient background */
    border-radius: 50px;                           /* Fully rounded button */
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);  /* Glowing shadow */
    border: 1px solid rgba(255, 255, 255, 0.3);     /* Subtle border */
    position: relative;
    overflow: hidden;                               /* For shine effect */
}

/* Home icon styles */
.home-button i {
    font-size: 24px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    animation: bounce 2s infinite;                  /* Bouncing animation for icon */
}

/* Home text styles */
.home-button span {
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Shine effect on hover */
.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

/* Hover effects for home button */
.home-button:hover {
    transform: translateY(-3px);                    /* Lift up effect */
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);  /* Stronger glow on hover */
    background: linear-gradient(45deg, #00cc66, #00ff88); /* Reverse gradient */
}

/* Shine animation on hover */
.home-button:hover::before {
    left: 100%;
}

/* Active state (when clicked) */
.home-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 255, 136, 0.4);
}

/* ================= NAVBAR LINK STYLES ================= */
/* Regular navbar links */
.nav-left a:not(.home-button) {
    color: white;
    padding: 10px 15px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 5px;
    margin: 0 2px;
}

/* Hover effect for regular navbar links */
.nav-left a:not(.home-button):hover {
    color: #00ff88;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active link style */
.nav-left a.active {
    color: #00ff88;
    border-bottom: 2px solid #00ff88;
}

/* Right section of navbar */
.nav-right {
    display: flex;
    align-items: center;
}

/* Right navbar link styles - bordered button style */
.nav-right a {
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid #00ff88;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Hover effect for right navbar link - green background */
.nav-right a:hover {
    background-color: #00ff88;
    color: black;
    box-shadow: 0 0 15px #00ff88;
}

/* Bouncing animation for home icon */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ================= HEADER STYLES ================= */
/* Header section */
.header {
    text-align: center;
    padding: 60px 20px;
}

/* Profile image in header - circular shape */
.header img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #00ff88;                     /* Green border around profile */
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);    /* Glowing effect */
    object-fit: cover;
}

/* Header title styles */
.header h2 {
    font-size: 32px;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.3); /* Text glow */
    margin-bottom: 10px;
}

/* Header paragraph styles */
.header p {
    font-size: 18px;
    opacity: 0.9;
    margin: 5px 0;
}

/* ================= ABOUT SECTION STYLES ================= */
/* About section with semi-transparent dark background */
.about {
    padding: 70px 20px;
    text-align: center;
    background-color: rgba(26, 26, 26, 0.85);    /* Semi-transparent dark background */
    margin: 20px;                                 /* Adds space around the section */
    border-radius: 20px;                          /* Rounded corners */
    backdrop-filter: blur(3px);                    /* Adds slight blur effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);    /* Shadow for depth */
}

/* About section title with green color */
.about h3 {
    margin-bottom: 40px;
    font-size: 26px;
    color: #00ff88;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.5); /* Glowing text */
    position: relative;
    display: inline-block;
}

/* Decorative line under title */
.about h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    border-radius: 3px;
}

/* About section paragraph */
.about p {
    max-width: 800px;
    margin: auto;
    line-height: 1.8;
    font-size: 18px;
}

/* ================= PROJECT CARDS STYLES ================= */
/* Individual project card container with semi-transparent background */
.project-card {
    background-color: rgba(34, 34, 34, 0.9);      /* Semi-transparent dark background */
    padding: 25px;
    margin: 30px auto;
    border-radius: 15px;
    max-width: 600px;
    transition: 0.3s;
    backdrop-filter: blur(2px);                    /* Adds slight blur effect */
    border: 1px solid rgba(0, 255, 136, 0.2);      /* Subtle green border */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);      /* Shadow for depth */
}

/* Hover effect for project cards - slight scale increase */
.project-card:hover {
    transform: scale(1.05);
    border-color: #00ff88;                          /* Green border on hover */
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);  /* Green glow on hover */
}

/* Project card title with green color */
.project-card h4 {
    margin-bottom: 15px;
    color: #00ff88;
    font-size: 20px;
}

/* Project card paragraph */
.project-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Project card link styles */
.project-card a {
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
    display: inline-block;
}

/* Hover effect for project links */
.project-card a:hover {
    background-color: #00ff88;
    color: #222;
    box-shadow: 0 0 15px #00ff88;
}

/* ===================================================== */
/* ==================== TABLET RESPONSIVE ============= */
/* ===================================================== */
@media (max-width: 992px) {

    /* Adjust navbar padding for tablet */
    .navbar {
        padding: 15px 20px;
    }

    /* Smaller home button for tablet */
    .home-button {
        padding: 10px 20px;
        font-size: 18px;
    }

    .home-button i {
        font-size: 22px;
    }

    /* Regular nav links for tablet */
    .nav-left a:not(.home-button) {
        padding: 8px 12px;
        font-size: 16px;
    }

    /* Smaller profile image for tablet */
    .header img {
        width: 160px;
        height: 160px;
    }

    /* Smaller header title for tablet */
    .header h2 {
        font-size: 26px;
    }

    /* Adjust about paragraph for tablet */
    .about p {
        font-size: 16px;
        padding: 0 20px;
    }

    /* Adjust about section for tablet */
    .about {
        margin: 15px;
        padding: 50px 15px;
    }

    /* Project cards take 90% width on tablet */
    .project-card {
        width: 90%;
    }
}

/* ===================================================== */
/* ==================== MOBILE RESPONSIVE ============= */
/* ===================================================== */
@media (max-width: 600px) {

    /* Stack navbar elements vertically on mobile */
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 15px;
    }

    /* Center nav links on mobile */
    .nav-left {
        justify-content: center;
        margin-bottom: 10px;
        width: 100%;
        gap: 3px;
    }

    /* Smaller home button for mobile */
    .home-button {
        padding: 8px 15px;
        font-size: 16px;
        gap: 6px;
    }

    .home-button i {
        font-size: 18px;
    }

    .home-button span {
        font-size: 14px;
    }

    /* Regular nav links for mobile */
    .nav-left a:not(.home-button) {
        padding: 6px 8px;
        font-size: 14px;
    }

    /* Adjust right nav margin on mobile */
    .nav-right {
        margin-top: 10px;
    }

    /* Smaller right nav button on mobile */
    .nav-right a {
        font-size: 14px;
        padding: 6px 14px;
    }

    /* Adjust header padding for mobile */
    .header {
        padding: 40px 15px;
    }

    /* Smaller profile image for mobile */
    .header img {
        width: 120px;
        height: 120px;
    }

    /* Smaller header title for mobile */
    .header h2 {
        font-size: 18px;
    }

    /* Smaller header paragraph for mobile */
    .header p {
        font-size: 14px;
    }

    /* Adjust about section for mobile */
    .about {
        padding: 30px 12px;
        margin: 10px;
    }

    /* Smaller about title for mobile */
    .about h3 {
        font-size: 20px;
        margin-bottom: 30px;
    }

    /* Smaller about paragraph for mobile */
    .about p {
        font-size: 14px;
    }

    /* Adjust project card padding for mobile */
    .project-card {
        padding: 20px;
        margin: 20px auto;
        width: 95%;
    }

    /* Smaller project card title for mobile */
    .project-card h4 {
        font-size: 16px;
    }

    /* Smaller project card paragraph for mobile */
    .project-card p {
        font-size: 14px;
    }
}