﻿:root {
    --primary: #020205;
    --secondary: #0a0a0f;
    --accent: #ef4444;
    /* Crimson Red */
    --accent-blue: #3b82f6;
    /* Electric Blue */
    --accent-light: #ff8a8a;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --glass: rgba(59, 130, 246, 0.05);
    --glass-border: rgba(239, 68, 68, 0.25);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Noise overlay for cinematic feel */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.glow-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

/* Layout */
section {
    padding: 120px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue);
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Hero Section - High Impact */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    font-size: 20vw;
    font-weight: 900;
    color: rgba(59, 130, 246, 0.02);
    white-space: nowrap;
    z-index: 0;
    user-select: none;
    -webkit-text-stroke: 1px rgba(239, 68, 68, 0.05);
    animation: slideText 20s linear infinite;
}

@keyframes slideText {
    from {
        transform: translateX(30%);
    }

    to {
        transform: translateX(-30%);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    perspective: 1000px;
}

.hero h1 {
    font-size: 10vw;
    margin-bottom: 20px;
    line-height: 0.8;
    letter-spacing: -10px;
    text-transform: uppercase;
    font-weight: 900;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    animation: splitReveal 1.5s cubic-bezier(0.8, 0, 0.2, 1) forwards 1s;
}

.hero h1::before,
.hero h1::after {
    content: 'MARTIN HARAHAP';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent);
    overflow: hidden;
    -webkit-text-stroke: 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.hero h1::before {
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    animation: goldFillTop 1.5s cubic-bezier(0.8, 0, 0.2, 1) forwards 2.5s;
}

.hero h1::after {
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: goldFillBottom 1.5s cubic-bezier(0.8, 0, 0.2, 1) forwards 2.5s;
}

@keyframes splitReveal {
    0% {
        opacity: 0;
        letter-spacing: 50px;
        transform: rotateX(90deg);
    }

    100% {
        opacity: 0.2;
        letter-spacing: -10px;
        transform: rotateX(0deg);
    }
}

@keyframes goldFillTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldFillBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cyber Entry Flash (The Curtain) */
.gold-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #450a0a, #020617);
    z-index: 10000;
    animation: flashOut 1.2s cubic-bezier(0.8, 0, 0.2, 1) forwards 0.8s;
}




@keyframes flashOut {
    0% {
        transform: scaleY(1);
        transform-origin: top;
    }

    90% {
        transform: scaleY(1);
        transform-origin: top;
    }

    100% {
        transform: scaleY(0);
        transform-origin: top;
    }
}

/* Spotlight Effect */
.hero-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0.95) 45%);
    pointer-events: none;
    z-index: 5;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
        letter-spacing: 20px;
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        letter-spacing: -5px;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Education GPA Meter */
.gpa-meter {
    margin-bottom: 25px;
    max-width: 400px;
}

.gpa-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.gpa-label span {
    color: #fff;
    font-weight: 800;
}

.gpa-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gpa-progress {
    height: 100%;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transform: translateX(-100%);
    transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active .gpa-progress {
    transform: translateX(0);
}

.gpa-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: inherit;
    border-radius: 50%;
    filter: blur(4px);
}

/* About Section */
#about {
    border-top: 1px solid #222;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--accent), var(--accent-blue)) 1;
    display: inline-block;
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.about-image {
    flex: 0 0 350px;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    z-index: -1;
}

.profile-img {
    width: 100%;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.info-item {
    border-bottom: 1px solid #222;
    padding: 10px 0;
}

.info-item label {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

/* Achievements / Certifications Section */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.cert-card {
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(59, 130, 246, 0.1);
}

.cert-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border: 1px solid #333;
    margin-bottom: 25px;
    background: #000;
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
    filter: brightness(0.8);
}

.cert-card:hover .cert-img-container img {
    transform: scale(1.1);
    filter: brightness(1);
}

.cert-card h3 {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cert-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #000;
    padding: 5px 15px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.exp-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #222;
}

.exp-logo {
    flex: 0 0 85px;
    height: 85px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    /* White background to keep school logos legible */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.exp-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.exp-logo:hover img {
    transform: scale(1.1);
}



.exp-content {
    flex: 1;
}

.exp-year {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.exp-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.exp-location {
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}

.exp-achievements {
    margin-top: 15px;
    padding-left: 20px;
    list-style-type: square;
    color: var(--text-muted);
}

.exp-achievements li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Cards */
.glass-card {
    background: transparent;
    border: 1px solid #222;
    padding: 40px;
    transition: border-color 0.3s;
}

.glass-card:hover {
    border-color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: 1px solid #fff;
}

/* Discover More Button - Shocking Effect */
.btn-discover {
    position: relative;
    margin-top: 60px;
    background: linear-gradient(45deg, var(--accent), var(--accent-blue));
    color: #fff;
    border: none;
    padding: 20px 50px;
    font-size: 1rem;
    font-weight: 800;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}


.btn-discover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: -1;
}

.btn-discover:hover {
    color: var(--accent);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-discover:hover::before {
    left: 0;
}

.btn-discover:active {
    transform: scale(0.95);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
    opacity: 0.5;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.active {
    opacity: 1;
    transform: translateY(0);
}

/* IT Certifications Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    cursor: pointer;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(100%) brightness(0.7);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(239, 68, 68, 0.4), rgba(59, 130, 246, 0.2));
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item .cert-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .cert-overlay {
    bottom: 0;
}

.gallery-item .cert-overlay span {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Hamburger Menu Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--accent-blue);
    transition: all 0.3s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        padding: 15px 5%;
        flex-direction: row;
        /* Keep logo and hamburger on same line */
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        margin: 15px 0;
    }

    /* Hamburger Animation to X */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 4rem;
        /* Adjusted for split reveal on mobile */
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Hidden Dream Easter Egg */
.hidden-trigger {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.15;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.hidden-trigger:hover {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-blue);
}

.dream-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    backdrop-filter: blur(25px);
}

.dream-content {
    background: #020205;
    border: 1px solid var(--accent-blue);
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.2);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.dream-modal.active {
    display: flex;
}

.dream-modal.active .dream-content {
    transform: scale(1);
}

.itb-logo-dream {
    width: 110px;
    margin-bottom: 35px;
}

.close-dream {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--accent);
    cursor: pointer;
    font-size: 2rem;
    font-weight: 300;
}

.dream-text h2 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.dream-text p {
    color: var(--text);
    line-height: 1.9;
    font-style: italic;
    font-size: 1.1rem;
}

/* Contact Section Revamp */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.contact-item span {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.contact-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.contact-item:hover i {
    color: var(--accent-blue);
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--accent-blue);
}

.contact-item:hover::before {
    opacity: 1;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Milestones / Hall of Fame - Small & Red Tags */
.milestone-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 300px));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.milestone-item {
    position: relative;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.milestone-visual {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.milestone-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s ease;
    filter: brightness(0.6) grayscale(1);
}

.milestone-info {
    padding: 20px;
    text-align: center;
}

.milestone-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #FF0000;
    /* Bright Red for FAKE */
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.milestone-item h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.milestone-item p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.milestone-item:hover {
    border-color: #FF0000;
    transform: scale(1.05);
}

.milestone-item:hover .milestone-visual img {
    filter: brightness(0.9) grayscale(0);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .milestone-container {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }
}

/* Hall of Fame Modal */
.hall-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 25000;
    backdrop-filter: blur(30px);
}

.hall-modal.active {
    display: flex;
}

.hall-modal-content {
    background: #050505;
    border: 1px solid var(--accent);
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 100px rgba(239, 68, 68, 0.2);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.hall-modal.active .hall-modal-content {
    transform: scale(1);
}

.hall-modal-visual {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-bottom: 2px solid var(--accent);
    line-height: 0;
}

.hall-modal-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hall-modal-text {
    padding: 25px;
    text-align: center;
}

.hall-modal-text h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hall-modal-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.close-hall {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-hall:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .hall-modal-visual {
        height: 250px;
    }

    .hall-modal-text h2 {
        font-size: 1.5rem;
    }
}