@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
/* custom font */

:root {
    --primary-color: #7baf6e;
    --dark-bg: #020912;
    --text-light: #ffffff;
    --text-dark: #000000;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth; 
    /* smoothens scrolling */
}
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* responsive container for content */
}

/* HEADER & NAVIGATION */
header {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 15px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    /* navigation bar with background */
}

.logo {
    font-size: 1.6em;
    color: #7baf6e;
    user-select: none;
    /* 30MFF */
}

.navigation {
    display: flex;
    align-items: center;
    /* navigation bar */
}

.navigation a {
    position: relative; 
    font-size: 1em;
    color: rgb(0, 0, 0);
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
    padding: 4px 12px;
    transition: .5s;
} /* navigation bar */

.navigation a:hover, .navigation a.active { 
    /*this is for the hover effect on the navigation bar */
    color: #413a3a;
}

.navigation a span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7baf6e;
    border-radius: 30px;
    z-index: -1;
    transform: scale(0);
    opacity: 0;
    transition: .5s;
    /* manages span elements (our icons) */
}

.navigation a:hover span,
.navigation a.active span {
    transform: scale(1);
    opacity: 1;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--primary-color);
    height: 3px;
    width: 30px;
    border-radius: 2px;
    position: relative;
    transition: var(--transition-speed);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* PARALLAX SECTION - UNTOUCHED */
.parallax{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0.1em);
    height: 100vh;
    background: url('sources/background.jpg') no-repeat;
    background-size:cover;
    background-position:center;
    background-attachment: fixed;
    /* parallax effect, background centered and fixed*/
}

#text {
    position: absolute;
    top: 29%;
    font-size: 5em;
    color:#7baf6e;
    text-shadow: 2px 4px 5px rgb(0, 0, 0);
    /* text Meow Mates part of parralax */
}

.parallax img {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events:none;
}

.parallax img#grass {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100vh;
    /* grass parallax effect, position fixed work the best on scaling */
}

img#cat-right {
    position: relative;
    transform: translate(-45vw, 27vh); 
    width: 30vw; 
    height: auto; /* keeps aspect ratio */
    /* parallax effect for cat (fixed so it also moves with website) */
}

.parallax img#cat-left {
    position: relative;
    transform: translate(40vw, 27vh); 
    width: 30vw; 
    height: auto; /* keeps aspect ratio */
}

/* CONTENT SECTIONS */
.sec {
    position: relative;
    background: #020912;
    padding: 60px 0;
}

.sec h2 {
    font-size: 3em;
    color: #7baf6e;
    margin-bottom: 20px;
}

.centered-section-title {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.centered-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    /* underline for section titles */
}

.section-text {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 300;
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* VIDEO CONTAINER */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 56.25%; 
    position: relative;
    width: 100%;
    max-width: 800px; 
    margin: 0 auto 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* container for youtube video */
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* CAT FACTS SECTION */
#catFactsSection {
    text-align: center;
    background-color: #020912;
    color: #fff;
    /* uses api to detect cat facts */
}

.cat-fact-container {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin: 30px auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    min-height: 100px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-speed);
    /* modern glass-like container */
}

#catFact {
    font-size: 20px;
    color: #000; 
    background-color: #ffffff; 
    margin: 20px auto;
    padding: 20px;
    width: 80%; 
    min-height: 100px; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    text-align: center; 
    overflow-y: auto; 
    /* box parameters */
}

.cat-fact-btn {
    background-color: #7baf6e;
    color: rgb(0, 0, 0);
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    display: inline-block;
    margin: 0 auto;
    transition: var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* modern button with shadow */
}

.cat-fact-btn i {
    margin-right: 8px;
}

.cat-fact-btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cat-fact-btn:active {
    transform: translateY(1px);
}

.cat-fact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* CONTACT SECTION */
.about-me-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* brief info about me */
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
    /* glass-like card for profile */
}

.passport-photo {
    width: 100px; 
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    /* enhanced profile photo */
}

.about-me-text p {
    color: #fff; 
    font-size: 18px;
    text-align: center;
}

/* FOOTER */
footer {
    background-color: #020912;
    padding: 30px 0;
    text-align: center;
}

.contact-icons {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #7baf6e;
    margin-bottom: 20px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    transition: var(--transition-speed);
}

.icon-link:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 40px; 
    height: 40px; 
    margin: 0 10px;
    /* icons for github, ig, and gmail */
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin-top: 20px;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    /* centering in case i need it later */
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .sec h2 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .logo {
        font-size: 1.5em;
        position: relative;
        /* top: 15px; */
        z-index: 1001;
    }
    
    .nav-toggle-label {
        display: block;
        position: relative;
        top: 15px;
        right: 0;
        z-index: 1001;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        clip-path: circle(0px at top right);
        transition: clip-path 0.5s ease-in-out;
        pointer-events: none;
        /* mobile menu overlay */
    }
    
    .nav-toggle:checked ~ .navigation {
        clip-path: circle(1500px at top right);
        pointer-events: all;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .navigation a {
        margin: 15px 0;
        font-size: 1.4em;
    }
    
    .sec {
        padding: 40px 20px;
    }
    
    .sec h2 {
        font-size: 2.2em;
    }
    
    .video-container {
        width: 100%;
    }
    
    .cat-fact-container {
        width: 100%;
        padding: 15px;
    }
    
    #catFact {
        width: 100%;
    }
    
    .about-me-container {
        flex-direction: column;
    }
    
    .contact-icons {
        flex-wrap: wrap;
    }
    
    /* Adjust grass position for mobile */
    .parallax img#grass {
        bottom: 30px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5em;
    }
    
    #text {
        font-size: 3em;
    }
    
    .sec h2 {
        font-size: 1.8em;
    }
    
    img#cat-left {
        width: 40vw;
    }
    
    img#cat-right {
        width: 40vw;
    }
    
    .cat-fact-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    

    .parallax img#grass {
        bottom: 50px;
    }
}