/* --- Basic Reset & Root Variables (Frutiger Aero Theme) --- */

/* Remake with framer / figma soon I also want to expirament with real animations and keyframes in the future here */


:root {
    /* Wii-inspired blue gradient */
    --primary-color: #009dff; /* Bright blue */
    --secondary-color: #50c8ff; /* Lighter sky blue */
    --accent-color: #6ef3ff; /* Very light cyan/aqua accent */
    --background-gradient-start: #e0f7ff; /* Very light blue */
    --background-gradient-end: #b3e5fc;   /* Slightly darker sky blue */
    --text-color: #1a2b4a; /* Dark navy blue for contrast */
    --text-color-light: #ffffff;
    --heading-font: 'JoyKim','Aerobics','VIDEOPHEAK','TokyoSoft','Continuum','Segoe UI', 'Verdana', 'Arial', sans-serif; /* Common Frutiger Aero fonts */
    --body-font: 'JoyKim','VIDEOPHEAK','Continuum','Segoe UI', 'Verdana', 'Arial', sans-serif;
    --card-bg: rgba(255, 255, 255, 0.7); /* Semi-transparent white for glass effect */
    --card-border: rgba(255, 255, 255, 0.9);
    --shadow-light: rgba(0, 157, 255, 0.2); /* Blueish glow */
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --gloss-highlight: rgba(255, 255, 255, 0.6);
    --gloss-mid: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    /* Main Wii-style background gradient */
    background: linear-gradient(180deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
    background-attachment: fixed; /* Keep gradient fixed during scroll */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    cursor: url('Wii Cursor.cur'), auto; /* Fallback: auto/default */
}

/* 2. Hover Cursor (For selectable/interactive objects) */
a,
button,
.cta-button,
.project-card, /* Add other interactive elements if needed */
input[type="submit"],
input[type="button"]
/* Add any other selectors you want this hover effect on */ {
  /* Adjust path/filename */
  /* Add X Y coordinates if needed for PNG/SVG */
  cursor: url('wii-open.cur') 10 2, pointer; /* Fallback: pointer hand */
}

/* 3. Grab Cursor (For when clicking interactive objects) */
/* This applies when the mouse button is HELD DOWN on these elements */
a:active,
button:active,
.cta-button:active,
.project-card:active, /* Add other interactive elements if needed */
input[type="submit"]:active,
input[type="button"]:active
/* Add any other selectors you want this grab effect on */ {
  /* Adjust path/filename */
  /* Add X Y coordinates if needed for PNG/SVG */
  cursor: url('wii-grab.cur'), grabbing; /* Fallback: grabbing */
}

/* --- General Styles --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600; /* Slightly bolder headings */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

h2 {
    font-size: 2.8rem; /* Slightly larger */
    text-align: center;
    margin-bottom: 2.5rem;
    color: #005a8c; /* Darker blue for main headings */
}

p {
    margin-bottom: 1rem;
}

a {
    color: #006ab3; /* Darker blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none; /* Remove underline on hover generally */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Slightly rounded images */
}

ul {
    list-style: none;
}

/* --- Custom Font Definition --- */
@font-face {
    font-family: 'TokyoSoft'; /* Choose a name for your font */
    src: url('TokyoSoft.ttf') format('truetype'); /* Correct path to your TTF file */
    /*font-family: 'Continuum'; /* Choose a name for your font */
    /*src: url('contb.ttf') format('truetype'); /* Correct path to your TTF file */
    /* You can add font-weight and font-style here if needed, e.g.: */
    /* font-weight: normal; */
    /* font-style: normal; */
  }
@font-face {
    font-family: 'Continuum'; /* Choose a name for your font */
    src: url('contb.ttf') format('truetype'); /* Correct path to your TTF file */
    /* You can add font-weight and font-style here if needed, e.g.: */
    /* font-weight: normal; */
    /* font-style: normal; */
  }
@font-face {
    font-family: 'VIDEOPHREAK'; /* Choose a name for your font */
    src: url('VIDEOPHREAK.ttf') format('truetype'); /* Correct path to your TTF file */
    /* You can add font-weight and font-style here if needed, e.g.: */
    /* font-weight: normal; */
    /* font-style: normal; */
  }
@font-face {
    font-family: 'Aerobics'; /* Choose a name for your font */
    src: url('AerobicsRegular-mLRZP.ttf') format('truetype'); /* Correct path to your TTF file */
    /* You can add font-weight and font-style here if needed, e.g.: */
    /* font-weight: normal; */
    /* font-style: normal; */
  }

@font-face {
    font-family: 'JoyKim'; /* Choose a name for your font */
    src: url('Joy\ Kim.otf') format('truetype'); /* Correct path to your TTF file */
    /* You can add font-weight and font-style here if needed, e.g.: */
    /* font-weight: normal; */
    /* font-style: normal; */
}

.special-font-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: 'Aerobics', sans-serif; /* <--- Use your declared font name here! */
    /* Add any other styles you want for this text */
    font-size: 4em;  /* Example: Adjust size as needed */
    font-weight: bold; /* Example: Adjust weight if available in your font */
    color: #00446b;   /* Example: Adjust color */
    line-height: 5; /* Example: Adjust line spacing */
    
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}



/* CSS Class for Global Grab Cursor */
.grabbing {
    /* Adjust path/filename and coordinates if needed */
    /* Use !important to ensure it overrides other cursors when active */
    cursor: url('wii-grab.cur'), grabbing !important;
}

.content-section {
    padding: 80px 60px; /* More padding */
    max-width: 1100px;
    margin: 0 auto;
    position: center; /* For potential pseudo-element decorations */
    background-color: rgba(255, 255, 255, 0.3); /* Very subtle white overlay */
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px var(--shadow-light);
    border: 1px solid var(--card-border);
}

.alternate-bg {
    /* CHANGE alpha: Also make this less transparent */
    background-color: rgba(233, 236, 239, 0.9); /* Corresponds to var(--alternate-bg) but less transparent */
    /* Ensure position and z-index are inherited or set if needed */
    position: relative;
    z-index: 10;
 }

.section-description {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    color: var(--text-color); /* Use main text color */
    font-size: 1.1rem;
}

/* --- Buttons (Wii Style) --- */
.cta-button {
    display: inline-block;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--text-color-light);
    padding: 14px 30px;
    border-radius: 50px; /* Very rounded, pill-like */
    font-weight: bold;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.8); /* Light border for gloss */
    box-shadow: 0 4px 10px var(--shadow-dark), inset 0 1px 1px var(--gloss-highlight);
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: linear-gradient(180deg, #82f7ff 0%, #00aeff 100%); /* Lighter on hover */
    transform: scale(1.05); /* Slightly bigger on hover */
    box-shadow: 0 6px 15px var(--shadow-light), inset 0 1px 1px var(--gloss-highlight);
    color: var(--text-color-light);
    text-decoration: none;
}

.cta-button.secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    text-shadow: none;
}

.cta-button.secondary:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    color: var(--text-color);
}


/* --- Header/Navigation (Glassy) --- */
header {
    background-color: rgba(255, 255, 255, 0.7); /* Adjust transparency as needed */
    padding: 1rem 0;
    position: fixed; /* Already fixed, perfect */
    width: 100%;
    top: 0;
    /* CHANGE z-index: Must be higher than bubbles */
    z-index: 1000; /* Keep it high for nav */
    box-shadow: 0 3px 10px var(--shadow-light);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.8rem; /* Bigger logo */
    font-weight: 700;
    font-family: var(--heading-font);
    color: #00446b; /* Dark blue logo text */
    text-shadow: 1px 1px 1px #fff;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem; /* More space */
}

nav ul li a {
    font-weight: 600;
    text-transform: none; /* Normal case */
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7);
}
nav ul li a:hover {
    background-color: rgba(0, 157, 255, 0.15); /* Light blue highlight */
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}


/* --- Hero Section --- */
.hero-section {
    background: none; /* Use body background */
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header */
    border: none; /* Remove section border */
    box-shadow: none; /* Remove section shadow */
    background-color: transparent; /* Ensure no override */
    margin-bottom: 0; /* Remove margin */
}

.hero-content {
    background: rgba(255, 255, 255, 0.5); /* Glassy container for text */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 4rem; /* Larger H1 */
    margin-bottom: 0.5rem;
    color: #00446b;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
}

.hero-content .subtitle {
    font-size: 1.7rem;
    color: var(--primary-color); /* Use primary blue */
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 20px; /* Rounded rectangle, not circle */
    max-width: 300px;
    box-shadow: 0 6px 20px var(--shadow-dark);
    border: 3px solid var(--text-color-light); /* White border */
    transition: transform 0.3s ease;
}
.about-image img:hover {
    transform: scale(1.05);
}

/* --- Wii Bubble Background --- */
#bubble-background {
    position: fixed; /* Keep it fixed regardless of scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CHANGE z-index: Place it above the body bg but below content */
    z-index: 1;
    overflow: hidden; /* Prevent scrollbars if bubbles go outside */
    pointer-events: none; /* Keep this so bubbles don't block clicks */
}

.bubble {
    position: absolute;
    bottom: -150px; /* Start below the viewport */
    border-radius: 50%; /* Keep this to clip the container if PNG has transparency */
    opacity: 0; /* Start invisible until animation delay */
    animation: floatUp linear infinite;

    /* --- NEW: Use PNG Background --- */
    background-image: url('bubble.png'); /* <== REPLACE with your image path */
    background-size: contain; /* Scale image to fit within the div */
    background-repeat: no-repeat; /* Don't tile the image */
    background-position: center; /* Center the image in the div */
    /* --- REMOVE THESE --- */
    /* background-color: rgba(255, 255, 255, 0.25); */ /* No longer needed */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */ /* No longer needed */
    /* box-shadow: 0 0 15px rgba(255, 255, 255, 0.15); */ /* No longer needed */
}
/* Define the floating animation */
@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.7; /* Become visible */
    }
    50% {
        /* Add some gentle horizontal sway */
        transform: translateY(-50vh) translateX(20px);
    }
    100% {
        /* Move completely off the top and fade out */
        transform: translateY(-110vh) translateX(-10px);
        opacity: 0;
    }
}

/* Vary properties for each bubble using :nth-child */
/* This makes the background look more natural */

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 40px;
    height: 40px;
    left: 20%;
    animation-duration: 12s;
    animation-delay: 3s;
    background-color: rgba(173, 216, 230, 0.15); /* Slightly blue tint */
}

.bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 35%;
    animation-duration: 18s;
    animation-delay: 5s;
}

.bubble:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 50%;
    animation-duration: 20s;
    animation-delay: 1s;
}

.bubble:nth-child(5) {
    width: 30px;
    height: 30px;
    left: 65%;
    animation-duration: 10s;
    animation-delay: 6s;
    background-color: rgba(135, 206, 250, 0.15); /* Sky blue tint */
}

.bubble:nth-child(6) {
    width: 70px;
    height: 70px;
    left: 80%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.bubble:nth-child(7) {
    width: 45px;
    height: 45px;
    left: 90%;
    animation-duration: 13s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 55px;
    height: 55px;
    left: 5%;
    animation-duration: 19s;
    animation-delay: 7s;
    background-color: rgba(224, 247, 255, 0.15); /* Very light blue */
}

.bubble:nth-child(9) {
    width: 90px;
    height: 90px;
    left: 60%;
    animation-duration: 22s;
    animation-delay: 0.5s;
}

.bubble:nth-child(10) {
    width: 50px;
    height: 50px;
    left: 25%;
    animation-duration: 14s;
    animation-delay: 8s;
}

/* --- Projects Section (Wii Channel Style) --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; /* More gap */
}

.project-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%); /* Glassy gradient */
    border-radius: 15px; /* Rounded corners */
    overflow: hidden;
    box-shadow: 0 6px 15px var(--shadow-light), inset 0 1px 0 var(--gloss-highlight);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.03); /* Lift and slightly grow */
    box-shadow: 0 12px 25px var(--shadow-light), inset 0 1px 0 var(--gloss-highlight);
}

.project-card img {
    width: 100%;
    height: 180px; /* Slightly shorter */
    object-fit: cover;
    border-radius: 15px 15px 0 0; /* Only top corners rounded */
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Separator line */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.project-card:hover img {
    opacity: 1;
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 1rem 1.5rem 0.5rem 1.5rem;
    color: #005a8c;
}

.project-card p {
    padding: 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-color); /* Darker text for readability */
    min-height: 80px; /* Ensure roughly same height */
}

.project-links {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.project-links a {
    font-weight: bold;
    font-size: 0.9rem;
    color: #007bff;
    transition: color 0.3s ease;
}
.project-links a:hover {
    color: #0056b3;
}

/* --- Skills Section --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Wider columns */
    gap: 2rem;
    text-align: left; /* Align text left */
}

.skill-category {
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    border: 1px solid var(--card-border);
}

.skill-category h4 {
    color: #005a8c; /* Dark blue category title */
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-category ul {
    padding-left: 0; /* Remove default padding */
}

.skill-category ul li {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    padding: 8px 18px; /* More padding */
    margin-bottom: 10px;
    border-radius: 50px; /* Pill shape */
    display: inline-block;
    margin-right: 10px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}
.skill-category ul li:hover {
    transform: scale(1.05);
}


/* --- Contact Section --- */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    border: 1px solid var(--card-border);
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem; /* Slightly larger email */
}

.social-links a {
    color: var(--primary-color); /* Blue icons */
    font-size: 2.5rem; /* Larger icons */
    margin: 0 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 1px 1px 3px var(--shadow-light);
}

.social-links a:hover {
    color: var(--accent-color); /* Light blue on hover */
    transform: scale(1.15) rotate(5deg); /* Scale and slight rotate */
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
    background-color: rgba(0, 90, 140, 0.9); /* Make slightly more opaque if needed */
    color: #e0f7ff;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    /* ADD position & z-index */
    position: relative;
    z-index: 10; /* Higher than bubble background */
}
footer p {
    margin: 0;
}


/* --- Animations on Scroll (Keep as is, fits the theme) --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in {
    transform: translateY(40px); /* Start slightly lower */
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content .subtitle {
        font-size: 1.4rem;
    }

    header {
        background-color: rgba(255, 255, 255, 0.8); /* Less transparent on mobile */
        backdrop-filter: blur(8px);
    }

    nav ul {
        /* Consider adding a mobile burger menu here later */
        display: none;
    }

    .content-section {
        padding: 80px 20px;
        max-width: 1100px;
        margin: 0 auto;
        /* ADD/MODIFY position & z-index */
        position: relative; /* Needed for z-index stacking */
        z-index: 10;      /* Higher than bubble background */
        /* CHANGE alpha: Make background less transparent to hide bubbles */
        background-color: rgba(255, 255, 255, 0.85); /* Much less transparent */
        border-radius: 15px;
        margin-bottom: 40px;
        box-shadow: 0 8px 25px var(--shadow-light);
        border: 1px solid var(--card-border);
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-image img {
         margin-top: 2rem;
         max-width: 200px;
    }

     .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
    .skill-category {
        padding: 20px;
    }
    .skill-category ul li {
        font-size: 0.9rem;
        padding: 7px 15px;
    }

    .contact-info {
        padding: 25px;
    }
    .social-links a {
        font-size: 2rem;
        margin: 0 0.8rem;
    }
}