
/* =====================================
   1. GLOBAL RESET
   Tinatanggal ang default margin at padding.
   ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =====================================
   2. HTML AND BODY
   Ginagawang full-screen ang webpage.
   ===================================== */

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}


/* =====================================
   3. MAIN ABSTRACT BACKGROUND
   Dark slate-blue background,
   diagonal light streaks, at ambient glow.
   ===================================== */

.abstract-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    /* Base background color */
    background-color: #1b2024;

    background-image:

        /* First diagonal light streak */
        linear-gradient(
            135deg,
            transparent 14%,
            rgba(175, 215, 235, 0.35) 14.2%,
            rgba(175, 215, 235, 0.08) 15.5%,
            transparent 16.5%
        ),

        /* Second thin light streak */
        linear-gradient(
            135deg,
            transparent 21%,
            rgba(175, 215, 235, 0.14) 21.1%,
            transparent 21.5%
        ),

        /* Wide diagonal light bands */
        linear-gradient(
            135deg,
            transparent 24%,
            rgba(255,255,255,0.04) 24%,
            rgba(255,255,255,0.04) 30%,
            transparent 30%,
            transparent 64%,
            rgba(255,255,255,0.035) 64%,
            rgba(255,255,255,0.035) 72%,
            transparent 72%,
            transparent 77%,
            rgba(165,205,225,0.06) 77%,
            rgba(165,205,225,0.06) 83%,
            transparent 83%
        ),

        /* Ambient slate-blue glow */
        radial-gradient(
            circle at 45% 42%,
            rgba(95,125,142,0.65) 0%,
            rgba(48,60,68,0.9) 52%,
            #1b2024 100%
        );
}


/* =====================================
   4. SMALL STARS
   Para sa maraming maliliit na bituin.
   ===================================== */

.stars-small {
    position: absolute;
    inset: 0;
    z-index: 1;

    background-image:
        radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,.8), transparent),
        radial-gradient(1px 1px at 15% 18%, rgba(255,255,255,.85), transparent),
        radial-gradient(1px 1px at 19% 64%, rgba(220,240,255,.7), transparent),
        radial-gradient(1px 1px at 24% 82%, rgba(255,255,255,.75), transparent),
        radial-gradient(1px 1px at 28% 32%, rgba(220,240,255,.75), transparent),
        radial-gradient(1px 1px at 31% 71%, rgba(255,255,255,.65), transparent),
        radial-gradient(1px 1px at 34% 12%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 37% 52%, rgba(220,240,255,.75), transparent),
        radial-gradient(1px 1px at 41% 27%, rgba(255,255,255,.8), transparent),
        radial-gradient(1px 1px at 45% 44%, rgba(255,255,255,.85), transparent),
        radial-gradient(1px 1px at 48% 19%, rgba(200,230,255,.85), transparent),
        radial-gradient(1px 1px at 51% 76%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 53% 38%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 58% 55%, rgba(255,255,255,.75), transparent),
        radial-gradient(1px 1px at 62% 24%, rgba(255,255,255,.85), transparent),
        radial-gradient(1px 1px at 66% 88%, rgba(210,235,255,.65), transparent),
        radial-gradient(1px 1px at 69% 42%, rgba(210,235,255,.7), transparent),
        radial-gradient(1px 1px at 74% 63%, rgba(255,255,255,.8), transparent),
        radial-gradient(1px 1px at 77% 15%, rgba(255,255,255,.75), transparent),
        radial-gradient(1px 1px at 81% 49%, rgba(220,240,255,.7), transparent),
        radial-gradient(1px 1px at 84% 31%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 89% 78%, rgba(255,255,255,.65), transparent),
        radial-gradient(1px 1px at 93% 22%, rgba(255,255,255,.75), transparent),
        radial-gradient(1px 1px at 12% 39%, rgba(255,255,255,.7), transparent);

    /* Distance ng paulit-ulit na star pattern */
    background-size: 240px 240px;

    /* Fade effect sa outer edges */
    -webkit-mask-image: radial-gradient(
        ellipse 85% 85% at 46% 45%,
        #000 45%,
        transparent 98%
    );

    mask-image: radial-gradient(
        ellipse 85% 85% at 46% 45%,
        #000 45%,
        transparent 98%
    );

    /* Hindi makakaapekto sa mouse interaction */
    pointer-events: none;
}


/* =====================================
   5. MEDIUM STARS
   Para sa mas malalaki at mas maliwanag
   na mga bituin.
   ===================================== */

.stars-medium {
    position: absolute;
    inset: 0;
    z-index: 2;

    background-image:
        radial-gradient(1.5px 1.5px at 14% 28%, rgba(255,255,255,.9), transparent),
        radial-gradient(1.5px 1.5px at 23% 56%, rgba(210,240,255,.85), transparent),
        radial-gradient(1.5px 1.5px at 31% 22%, #fff, transparent),
        radial-gradient(2px 2px at 35% 35%, rgba(255,255,255,.9), transparent),
        radial-gradient(1.5px 1.5px at 39% 16%, rgba(210,240,255,.95), transparent),
        radial-gradient(1.5px 1.5px at 43% 39%, #fff, transparent),
        radial-gradient(2px 2px at 46% 29%, rgba(255,255,255,.95), transparent),
        radial-gradient(1.5px 1.5px at 49% 68%, rgba(220,245,255,.85), transparent),
        radial-gradient(1.5px 1.5px at 52% 21%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 59% 34%, rgba(200,235,255,.9), transparent),
        radial-gradient(2px 2px at 64% 18%, rgba(220,245,255,.85), transparent),
        radial-gradient(1.5px 1.5px at 68% 58%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 76% 41%, rgba(210,240,255,.85), transparent),
        radial-gradient(1.5px 1.5px at 85% 66%, rgba(255,255,255,.8), transparent);

    /* Repeating pattern ng medium stars */
    background-size: 360px 340px;

    /* Fade effect sa edges */
    -webkit-mask-image: radial-gradient(
        ellipse 75% 75% at 46% 45%,
        #000 35%,
        transparent 95%
    );

    mask-image: radial-gradient(
        ellipse 75% 75% at 46% 45%,
        #000 35%,
        transparent 95%
    );

    pointer-events: none;
}

/* =====================================
   HEADER / NAVIGATION
   ===================================== */

/* Main header container */
.site-header {
    position: fixed; /* Keeps header fixed on screen */
    top: 0; /* Positions header at the top */
    left: 0; /* Aligns header to the left */
    width: 100%; /* Occupies the full width */

    padding: 20px 8%; /* Adds space inside header */

    display: flex; /* Places logo and nav side by side */
    justify-content: space-between; /* Separates logo and nav */
    align-items: center; /* Vertically aligns elements */

    z-index: 9999; /* Keeps header above all page content */

    /* Solid background prevents content from showing through */
    background-color: #2c373e;
}

/* Website logo */
.logo {
    color: white; /* Sets logo text color */
    font-size: 24px; /* Sets logo text size */
    font-weight: bold; /* Makes logo bold */
    text-decoration: none; /* Removes underline */
}

/* Colored dot on the logo */
.logo span {
    color: #00aaff; /* Sets dot color to blue */
}

/* Navigation menu container */
.main-nav {
    display: flex; /* Displays links horizontally */
    align-items: center; /* Vertically aligns links */
    gap: 30px; /* Space between links */
}

/* Navigation links */
.main-nav a {
    position: relative; /* Allows positioning of underline */

    color: white; /* Sets link color */
    text-decoration: none; /* Removes underline */
    font-size: 15px; /* Sets font size */

    padding: 8px 0; /* Adds vertical spacing */

    transition: color 0.3s ease, transform 0.3s ease;
    /* Smooth color and movement transitions */
}

/* Hover effect */
.main-nav a:hover {
    color: #00aaff; /* Changes color on hover */
    transform: translateY(-2px); /* Moves link slightly upward */
}

/* Active link */
.main-nav a.active {
    color: #00aaff; /* Keeps current page highlighted */
}

/* Underline for active link */
.main-nav a.active::after {
    content: ""; /* Creates the underline element */

    position: absolute; /* Positions underline relative to link */
    left: 0; /* Starts at the left */
    bottom: 0; /* Places underline at the bottom */

    width: 100%; /* Underline spans the link width */
    height: 2px; /* Underline thickness */

    background: #00aaff; /* Underline color */
    border-radius: 5px; /* Rounded underline edges */
}

/* Hover underline for inactive links */
.main-nav a:not(.active)::after {
    content: ""; /* Creates underline element */

    position: absolute; /* Positions underline */
    left: 0; /* Starts at the left */
    bottom: 0; /* Positions at the bottom */

    width: 0; /* Initially hidden */
    height: 2px; /* Underline thickness */

    background: #00aaff; /* Underline color */
    border-radius: 5px; /* Rounded underline edges */

    transition: width 0.3s ease; /* Animates underline */
}

/* Expands underline on hover */
.main-nav a:not(.active):hover::after {
    width: 100%; /* Expands underline to full width */
}

/* =====================================
   HAMBURGER BUTTON
   ===================================== */

/* Hidden on desktop */
.menu-toggle {
    display: none; /* Hides button on desktop */

    background: transparent; /* Removes button background */
    border: none; /* Removes button border */

    cursor: pointer; /* Changes cursor to pointer */

    padding: 5px; /* Adds clickable space */
}

/* Hamburger lines */
.menu-toggle span {
    display: block; /* Makes each line a block */

    width: 28px; /* Line width */
    height: 3px; /* Line thickness */

    margin: 6px 0; /* Space between lines */

    background: white; /* Line color */
    border-radius: 5px; /* Rounded line edges */

    transition: 0.3s ease; /* Smooth animation */
}

/* =====================================
   HAMBURGER ANIMATION WHEN OPEN
   ===================================== */

/* First line rotates */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

/* Middle line disappears */
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

/* Last line rotates */
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



/* =====================================
   HOME / HERO SECTION
   ===================================== */

/* Main Home section */
.hero-section {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 120px 8% 60px;

    color: #ffffff;
    text-align: center;
}

/* Home content wrapper */
.hero-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 1000px;

    color: #ffffff;
}

/* Greeting text */
.hero-greeting {
    color: #00aaff;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* Main heading */
.hero-content h1 {
    color: #ffffff;

    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;

    line-height: 1.2;
    margin-bottom: 20px;
}

/* Highlighted name */
.highlight-text {
    color: #ffffff;
    font-weight: 800;
}

/* Job title */
.hero-role {
    color: #00aaff;

    font-size: clamp(22px, 3vw, 35px);
    font-weight: 700;

    margin-bottom: 25px;
    min-height: 45px;
}

/* Typing text */
#typing-text {
    color: #00aaff;
    font-weight: 700;
}

/* Typing cursor */
.cursor {
    color: #00aaff;
    font-weight: 700;

    animation: blink 0.7s infinite;
}

/* Cursor blinking animation */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Description */
.hero-description {
    color: rgba(255, 252, 233, 0.76);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.8;

    max-width: 650px;
    margin: 0 auto 35px;
}

/* =====================================
   CLICKABLE ELEMENTS
   ===================================== */

/* Navigation links */
.main-nav a {
    color: white;
    font-weight: 700;
}

/* Website logo */
.logo {
    color: white;
    font-weight: 700;
}

/* Logo colored dot */
.logo span {
    color: #00aaff;
}

/* General button styling */
.btn {
    font-weight: 700;
    text-decoration: none;

    transition: transform 0.3s ease, color 0.3s ease;
}

/* Navigation hover */
.main-nav a:hover {
    color: #00aaff;
}

/* Button hover */
.btn:hover {
    transform: translateY(-3px);
}

/* =====================================
   HOME BUTTON DESIGN
   ===================================== */

/* Buttons container */
.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;
}

/* Both Home buttons */
.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 28px;

    color: #ffffff;
    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    border: 2px solid #00aaff;
    border-radius: 8px;

    background: transparent;

    transition: all 0.3s ease;
}

/* Button hover effect */
.hero-buttons .btn:hover {
    background: #00aaff;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

/* Keyboard accessibility */
.hero-buttons .btn:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
}


/* =====================================
   HIGH ZOOM / NARROW VIEWPORT SUPPORT
   ===================================== */

/* Handles narrower screens, including high zoom */
@media (max-width: 1024px) {

    /* Keeps the Home section flexible */
    .hero-section {
        width: 100%;
        padding-left: 6%;
        padding-right: 6%;
    }

    /* Allows content to shrink */
    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    /* Allows heading to wrap */
    .hero-content h1 {
        overflow-wrap: break-word;
    }

    /* Allows job title to wrap */
    .hero-role {
        overflow-wrap: anywhere;
    }

    /* Allows description to fit */
    .hero-description {
        width: 100%;
        max-width: 650px;
    }

}

/* =====================================
   SMALL VIEWPORT SUPPORT
   ===================================== */

@media (max-width: 600px) {

    /* Home section spacing */
    .hero-section {
        padding: 110px 20px 40px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Greeting text */
    .hero-greeting {
        font-size: 11px;
        letter-spacing: 1.5px;
        overflow-wrap: anywhere;
    }

    /* Main heading */
    .hero-content h1 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.25;
    }

    /* Job title */
    .hero-role {
        font-size: clamp(20px, 6vw, 26px);
        line-height: 1.4;
        min-height: auto;
        margin-bottom: 20px;
    }

    /* Description */
    .hero-description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    /* Makes buttons fit narrow screens */
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
    }

}

/* =====================================
   VERY NARROW VIEWPORT SUPPORT
   ===================================== */

@media (max-width: 350px) {

    /* Reduces spacing on extremely narrow screens */
    .hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Smaller heading */
    .hero-content h1 {
        font-size: 30px;
    }

    /* Smaller greeting */
    .hero-greeting {
        font-size: 10px;
        letter-spacing: 1px;
    }

    /* Job title */
    .hero-role {
        font-size: 20px;
    }

    /* Description */
    .hero-description {
        font-size: 13px;
    }

}


/* =====================================
   ABOUT SECTION
   ===================================== */

/* Main About Section */
.about-section {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 120px 8% 60px;

    color: #fff;
}

/* About Section Heading */
.about-heading {
    text-align: center;
    margin-bottom: 50px;
}

.about-heading h1 {
    font-size: clamp(35px, 5vw, 55px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.about-heading h1 span {
    color: #00aaff;
}

.about-heading p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
}

/* About Content Container */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 60px;

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Profile Image Container */
.about-image {
    flex: 0 0 350px;
    max-width: 350px;
}

/* Profile Image */
.about-image img {
    display: block;

    width: 100%;
    height: 420px;

    object-fit: cover;

    border-radius: 20px;
    border: 3px solid #00aaff;

    box-shadow: 0 0 25px rgba(0, 170, 255, 0.2);
}

/* About Text Container */
.about-content {
    flex: 1;
    max-width: 650px;
}

/* About Content Heading */
.about-content h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #00aaff;

    margin-bottom: 20px;
}

/* About Paragraphs */
.about-content p {
    font-size: 16px;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.76);

    margin-bottom: 18px;
}


/* =====================================
   EXPERIENCE SECTION
===================================== */

.experience-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 120px 8% 60px;

    color: #fff;
    background: var(--background);
}

/* =====================================
   EXPERIENCE HEADING
===================================== */

.experience-heading {
    text-align: center;
    margin-bottom: 50px;
}

.experience-heading h1 {
    font-size: clamp(35px, 5vw, 55px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.experience-heading h1 span {
    color: #00aaff;
}

.experience-heading p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    line-height: 1.6;
}

/* =====================================
   EXPERIENCE CONTAINER
===================================== */

.experience-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* =====================================
   EXPERIENCE CARD
===================================== */

.experience-card {
    position: relative;

    background: var(--surface);

    /* Left and bottom light blue strokes */
    border: none;
    border-left: 4px solid rgba(56, 189, 248, 0.55);
    border-bottom: 2px solid rgba(56, 189, 248, 0.35);

    border-radius: 0 0 14px 0;

    padding: 28px;
    margin-bottom: 25px;

    /* Smooth hover transition */
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Changes both strokes to solid blue on hover */
.experience-card:hover {
    transform: translateY(-5px);

    background: var(--surface-light);

    border-left-color: #008cff;
    border-bottom-color: #008cff;

    box-shadow: 0 8px 25px rgba(0, 140, 255, 0.12);
}

/* =====================================
   EXPERIENCE HEADER
===================================== */

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
    margin-bottom: 20px;
}

.experience-header h3 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.experience-header h4 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.company-location {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* =====================================
   EXPERIENCE DATE
===================================== */

.experience-date {
    flex-shrink: 0;
    display: inline-block;

    padding: 8px 13px;
    border-radius: 30px;

    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);

    color: var(--primary);
    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

/* =====================================
   EXPERIENCE DESCRIPTION
===================================== */

.experience-card ul {
    padding-left: 20px;
    margin: 0;
}

.experience-card li {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 7px;
}

.experience-card li:last-child {
    margin-bottom: 0;
}


