@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');

/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth; /* Smooth scrolling */
    text-decoration: none;
}

/* Define root variables for colors and font sizes */
:root {
    /* Colors */
    --primary-blue: #1e3a8a;
    --light-blue: #31a7f7;
    --gradient-blue: linear-gradient(to right, #1e3a8a, #3b82f6);
    --bright-gradient: linear-gradient(to right, #00f7ff, #ff00ff, #00f7ff);
    --white: #ffffff;
    --grey-color: #999999;
    --yellow: #facc15;
    --black: #000000;
    --light-gray: #dedfe0;
    --faded-blue: rgba(59, 130, 246, 0.2);
    --green-gradient: linear-gradient(to right, #00ff00, #00cc00);

    /* Font Sizes */
    --h1-font-size: 6rem;
    --h2-font-size: 3rem;
    --h3-font-size: 1.5rem;
    --p-font-size: 1rem;
    --span-font-size: 1rem;
}

body {
    background: 
        radial-gradient(circle at top, var(--primary-blue) 0%, transparent 24%),
        radial-gradient(circle at bottom, var(--primary-blue) 0%, transparent 26%),
        var(--black);
        /* background-color: #000000; */
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}


/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    :root {
        --h1-font-size: 4rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.2rem;
        --p-font-size: 0.9rem;
        --span-font-size: 0.9rem;
    }
    body {

            background: 
                radial-gradient(circle at top, var(--primary-blue) 0%, transparent 15%),
                radial-gradient(circle at bottom, var(--primary-blue) 0%, transparent 18%),
                var(--black);
        
    }
}

/* Keyframes for smooth animations */
@keyframes flyOut {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(15deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* About Section */
.about-section {
    min-height: calc(100vh - 70px); /* Adjust for navbar height */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    background: transparent;
    color: #ffffff;
    overflow: hidden;
}

/* Left Container (Life Icons) */
.left-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 5%;
    top: 20%;
}

/* Life Icons */
.life-icons {
    position: relative;
    width: 150px;
    height: 400px; /* Increased height for more random placement */
}

.life-icons .icon {
    position: absolute;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.life-icons .icon:hover {
    transform: scale(1.3);
}

/* Random positioning for life icons */
.life-icons .icon:nth-child(1) { top: 5%; left: 10%; }
.life-icons .icon:nth-child(2) { top: 25%; left: 40%; }
.life-icons .icon:nth-child(3) { top: 60%; left: 20%; }
.life-icons .icon:nth-child(4) { top: 15%; left: 60%; }
.life-icons .icon:nth-child(5) { top: 45%; left: 30%; }
.life-icons .icon:nth-child(6) { top: 80%; left: 50%; }

/* Profile Image */
.profile-image {
    position: relative;
    width: 100%;
    max-width: 350px;
    z-index: 5;
}

.profile-image img {
    width: 100%;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease-in-out;
}

.profile-image img:hover {
    transform: scale(1.05);
}

/* Right Container (Cards) */
.right-container {
    position: absolute;
    right: 5%;
    top: 20%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    padding: 1.5rem;
    width: 250px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
    margin-bottom: -100px; /* Overlap cards */
    transition: transform 0.4s ease-in-out;
    overflow-y: auto; /* Enable scrolling */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.card::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.card p {
    font-family: 'Poppins', sans-serif;
    text-align: left;
    line-height: 1.5;
}

.card .strong {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #333333;
}

.card:hover {
    transform: translateY(-5px);
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.popup-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.5;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    color: #000000;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.close-btn:hover {
    color: #666666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .left-container, .right-container {
        position: static;
        margin: 1rem 0;
    }

    .card {
        width: 200px;
        height: 180px;
        margin-bottom: -80px;
    }

    .profile-image {
        max-width: 250px;
    }

    .life-icons {
        width: 100px;
        height: 300px;
    }

    .life-icons .icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .profile-image {
        max-width: 200px;
    }

    .card {
        width: 180px;
        height: 160px;
        margin-bottom: -60px;
    }

    .card .strong {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.75rem;
    }

    .life-icons {
        width: 80px;
        height: 250px;
    }

    .life-icons .icon {
        font-size: 1rem;
    }

    .popup-content {
        max-width: 80%;
        padding: 1.5rem;
    }
}