/* 
   Noir Theme Stylesheet 
   Variables & Defaults
*/

:root {
    --bg-color: #050505;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --accent-hover: #aaaaaa;
    --border-color: #222222;
    --card-bg: #0a0a0a;
    --font-sans: 'Oswald', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'Source Code Pro', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Light Theme */
body.light-theme {
    --bg-color: #f5f5f0;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-color: #1a1a1a;
    --accent-hover: #444444;
    --border-color: #d4d4d4;
    --card-bg: #ffffff;
}

body.light-theme .noise-overlay {
    opacity: 0.02;
}

body.light-theme nav {
    background: rgba(245, 245, 240, 0.85);
}

body.light-theme nav.scroll-up {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

body.light-theme .glitch {
    color: #1a1a1a;
}

body.light-theme .glitch::before,
body.light-theme .glitch::after {
    background: var(--bg-color);
}

body.light-theme .project-item:hover {
    background: #f0f0eb;
}

body.light-theme .skill-tags span {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .skill-tags span:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .form-style input,
body.light-theme .form-style textarea {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .form-style input:focus,
body.light-theme .form-style textarea:focus {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

body.light-theme .card-glow {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
}

body.light-theme ::selection {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

body.light-theme .logo::after {
    background-color: #e53e3e;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    transform: rotate(15deg);
}

.theme-toggle #theme-icon-sun {
    display: none;
    font-size: 0.95rem;
}

.theme-toggle #theme-icon-moon {
    display: block;
    font-size: 0.85rem;
}

body.light-theme .theme-toggle #theme-icon-sun {
    display: block;
}

body.light-theme .theme-toggle #theme-icon-moon {
    display: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Film Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Selection */
::selection {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
}

nav.scroll-down {
    transform: translateY(-100%);
}

nav.scroll-up {
    transform: translateY(0);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: red;
    bottom: 5px;
    right: -10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    color: var(--accent-color);
}

.btn-primary:hover {
    color: var(--bg-color);
}

.btn-secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.btn-secondary::before {
    background-color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--bg-color);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
}

/* Sections General */
section {
    min-height: 100vh;
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 20px;
}

.decorative-line {
    height: 1px;
    background-color: var(--border-color);
    flex-grow: 1;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    align-items: flex-start;
    position: relative;
}

.subtitle {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.hero-description {
    font-family: var(--font-mono);
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 83px, 0);
    }

    5% {
        clip: rect(65px, 9999px, 81px, 0);
    }

    10% {
        clip: rect(32px, 9999px, 15px, 0);
    }

    15% {
        clip: rect(34px, 9999px, 3px, 0);
    }

    20% {
        clip: rect(25px, 9999px, 84px, 0);
    }

    100% {
        clip: rect(25px, 9999px, 84px, 0);
    }

    /* pauses glitch */
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }

    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }

    15% {
        clip: rect(75px, 9999px, 5px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 39px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 39px, 0);
    }

    /* pauses glitch */
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 1px solid var(--border-color);
    padding-left: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.stat-item p {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Interests Section */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.interest-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.interest-card:hover {
    transform: translateY(-10px);
    border-color: #333;
    box-shadow: 0 10px 30px -15px rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.interest-card p {
    font-size: 1rem;
}

.card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
    transition: var(--transition);
}

.interest-card:hover .card-glow {
    top: 10px;
    right: 10px;
    width: 200px;
    height: 200px;
}

/* Skills Section */
.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: #333;
    box-shadow: 0 10px 30px -15px rgba(255, 255, 255, 0.05);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.skill-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tags span:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.skill-tags i {
    font-size: 1rem;
}

.skill-card:hover .card-glow {
    top: 10px;
    right: 10px;
    width: 200px;
    height: 200px;
}

/* Floating Book & Gear Animations — Library Card */
.project-library {
    overflow: hidden;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.project-library .project-info {
    position: relative;
    z-index: 1;
}

.float-icon {
    position: absolute;
    opacity: 0.07;
    color: var(--text-primary);
    stroke: var(--text-primary);
}

/* Individual icon placement & animation assignment */
.float-book-1 {
    width: 48px;
    height: 48px;
    top: 8%;
    right: 10%;
    animation: floatBook1 8s ease-in-out infinite;
}

.float-gear-1 {
    width: 40px;
    height: 40px;
    top: 55%;
    right: 5%;
    animation: floatGear1 10s ease-in-out infinite 1s;
}

.float-book-2 {
    width: 36px;
    height: 36px;
    top: 70%;
    right: 25%;
    animation: floatBook2 9s ease-in-out infinite 2s;
}

.float-gear-2 {
    width: 32px;
    height: 32px;
    top: 15%;
    right: 40%;
    animation: floatGear2 12s ease-in-out infinite 0.5s;
}

.float-book-3 {
    width: 42px;
    height: 42px;
    top: 40%;
    right: 55%;
    animation: floatBook3 11s ease-in-out infinite 3s;
}

.float-gear-3 {
    width: 28px;
    height: 28px;
    top: 80%;
    right: 70%;
    animation: floatGear3 7s ease-in-out infinite 1.5s;
}

/* Hover intensify — icons become more visible on card hover */
.project-library:hover .float-icon {
    opacity: 0.15;
    transition: opacity 0.6s ease;
}

/* Keyframes — each icon has its own unique float path */
@keyframes floatBook1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-12px, -18px) rotate(5deg); }
    50%      { transform: translate(8px, -30px) rotate(-3deg); }
    75%      { transform: translate(-5px, -14px) rotate(4deg); }
}

@keyframes floatGear1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%      { transform: translate(-10px, -20px) rotate(120deg); }
    66%      { transform: translate(6px, -10px) rotate(240deg); }
}

@keyframes floatBook2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20%      { transform: translate(10px, -15px) rotate(-4deg); }
    50%      { transform: translate(-8px, -28px) rotate(6deg); }
    80%      { transform: translate(5px, -10px) rotate(-2deg); }
}

@keyframes floatGear2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(-15px, -22px) rotate(180deg); }
}

@keyframes floatBook3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30%      { transform: translate(14px, -20px) rotate(-6deg); }
    60%      { transform: translate(-6px, -35px) rotate(3deg); }
    85%      { transform: translate(3px, -12px) rotate(-1deg); }
}

@keyframes floatGear3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-8px, -14px) rotate(90deg); }
    50%      { transform: translate(5px, -24px) rotate(180deg); }
    75%      { transform: translate(-3px, -10px) rotate(270deg); }
}

/* Light theme — slightly darker icons for visibility on light bg */
body.light-theme .float-icon {
    opacity: 0.08;
    color: #1a1a1a;
    stroke: #1a1a1a;
}

body.light-theme .project-library:hover .float-icon {
    opacity: 0.18;
}

/* Floating Cybersecurity Animations — Security Card */
.project-security {
    overflow: hidden;
}

.project-security .project-info {
    position: relative;
    z-index: 1;
}

/* Individual cybersecurity icon placement & animation */
.float-lock {
    width: 44px;
    height: 44px;
    top: 10%;
    right: 8%;
    animation: floatLock 9s ease-in-out infinite;
}

.float-key {
    width: 38px;
    height: 38px;
    top: 60%;
    right: 4%;
    animation: floatKey 11s ease-in-out infinite 1.2s;
}

.float-shield {
    width: 42px;
    height: 42px;
    top: 75%;
    right: 30%;
    animation: floatShield 8s ease-in-out infinite 2.5s;
}

.float-bug {
    width: 30px;
    height: 30px;
    top: 20%;
    right: 45%;
    animation: floatBug 10s ease-in-out infinite 0.8s;
}

.float-eye {
    width: 36px;
    height: 36px;
    top: 45%;
    right: 60%;
    animation: floatEye 12s ease-in-out infinite 3s;
}

.float-terminal {
    width: 32px;
    height: 32px;
    top: 82%;
    right: 72%;
    animation: floatTerminal 7.5s ease-in-out infinite 1.8s;
}

/* Hover intensify — security card */
.project-security:hover .float-icon {
    opacity: 0.15;
    transition: opacity 0.6s ease;
}

/* Keyframes — cybersecurity icons */
@keyframes floatLock {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-10px, -20px) rotate(-8deg); }
    50%      { transform: translate(6px, -32px) rotate(5deg); }
    75%      { transform: translate(-4px, -12px) rotate(-3deg); }
}

@keyframes floatKey {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30%      { transform: translate(12px, -18px) rotate(15deg); }
    60%      { transform: translate(-8px, -28px) rotate(-10deg); }
    85%      { transform: translate(4px, -8px) rotate(5deg); }
}

@keyframes floatShield {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-10px, -25px) scale(1.08); }
}

@keyframes floatBug {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20%      { transform: translate(-6px, -12px) rotate(10deg); }
    40%      { transform: translate(8px, -22px) rotate(-15deg); }
    60%      { transform: translate(-10px, -30px) rotate(20deg); }
    80%      { transform: translate(4px, -15px) rotate(-5deg); }
}

@keyframes floatEye {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%      { transform: translate(-14px, -16px) rotate(3deg); }
    66%      { transform: translate(8px, -26px) rotate(-4deg); }
}

@keyframes floatTerminal {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(10px, -15px) rotate(-6deg); }
    50%      { transform: translate(-5px, -28px) rotate(8deg); }
    75%      { transform: translate(8px, -10px) rotate(-3deg); }
}

/* Light theme — security card */
body.light-theme .project-security:hover .float-icon {
    opacity: 0.18;
}

/* Floating Research Animations — Initiatives Card */
.project-initiatives {
    overflow: hidden;
}

.project-initiatives .project-info {
    position: relative;
    z-index: 1;
}

/* Individual research icon placement & animation */
.float-search {
    width: 46px;
    height: 46px;
    top: 8%;
    right: 7%;
    animation: floatSearch 9s ease-in-out infinite;
}

.float-brain {
    width: 40px;
    height: 40px;
    top: 55%;
    right: 3%;
    animation: floatBrain 11s ease-in-out infinite 1.5s;
}

.float-flask {
    width: 36px;
    height: 36px;
    top: 72%;
    right: 28%;
    animation: floatFlask 8.5s ease-in-out infinite 2s;
}

.float-radar {
    width: 34px;
    height: 34px;
    top: 18%;
    right: 42%;
    animation: floatRadar 13s ease-in-out infinite 0.5s;
}

.float-circuit {
    width: 38px;
    height: 38px;
    top: 42%;
    right: 58%;
    animation: floatCircuit 10s ease-in-out infinite 3.2s;
}

.float-atom {
    width: 30px;
    height: 30px;
    top: 80%;
    right: 75%;
    animation: floatAtom 7s ease-in-out infinite 1s;
}

/* Hover intensify — initiatives card */
.project-initiatives:hover .float-icon {
    opacity: 0.15;
    transition: opacity 0.6s ease;
}

/* Keyframes — research/classified icons */
@keyframes floatSearch {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-14px, -18px) rotate(10deg); }
    50%      { transform: translate(6px, -30px) rotate(-5deg); }
    75%      { transform: translate(-8px, -12px) rotate(7deg); }
}

@keyframes floatBrain {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-10px, -22px) scale(1.05); }
    66%      { transform: translate(8px, -14px) scale(0.97); }
}

@keyframes floatFlask {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30%      { transform: translate(10px, -16px) rotate(-8deg); }
    60%      { transform: translate(-6px, -28px) rotate(6deg); }
    85%      { transform: translate(4px, -10px) rotate(-2deg); }
}

@keyframes floatRadar {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(-12px, -20px) rotate(180deg); }
}

@keyframes floatCircuit {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20%      { transform: translate(8px, -10px) rotate(4deg); }
    40%      { transform: translate(-10px, -24px) rotate(-6deg); }
    60%      { transform: translate(6px, -32px) rotate(8deg); }
    80%      { transform: translate(-4px, -14px) rotate(-3deg); }
}

@keyframes floatAtom {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-6px, -16px) rotate(90deg); }
    50%      { transform: translate(10px, -26px) rotate(180deg); }
    75%      { transform: translate(-8px, -8px) rotate(270deg); }
}

/* Light theme — initiatives card */
body.light-theme .project-initiatives:hover .float-icon {
    opacity: 0.18;
}

/* Floating LPG/Business Animations — LPG Card */
.project-lpg {
    overflow: hidden;
}

.project-lpg .project-info {
    position: relative;
    z-index: 1;
}

/* Individual LPG icon placement & animation */
.float-flame {
    width: 44px;
    height: 44px;
    top: 8%;
    right: 6%;
    animation: floatFlame 9s ease-in-out infinite;
}

.float-tank {
    width: 42px;
    height: 42px;
    top: 55%;
    right: 3%;
    animation: floatTank 11s ease-in-out infinite 1.5s;
}

.float-chart {
    width: 38px;
    height: 38px;
    top: 72%;
    right: 28%;
    animation: floatChart 8.5s ease-in-out infinite 2s;
}

.float-factory {
    width: 36px;
    height: 36px;
    top: 18%;
    right: 42%;
    animation: floatFactory 13s ease-in-out infinite 0.5s;
}

.float-payment {
    width: 34px;
    height: 34px;
    top: 42%;
    right: 58%;
    animation: floatPayment 10s ease-in-out infinite 3.2s;
}

.float-gear {
    width: 30px;
    height: 30px;
    top: 80%;
    right: 75%;
    animation: floatGear2 7s ease-in-out infinite 1s;
}

/* Hover intensify — LPG card */
.project-lpg:hover .float-icon {
    opacity: 0.15;
    transition: opacity 0.6s ease;
}

/* Keyframes — LPG/Business icons */
@keyframes floatFlame {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(-8px, -12px) scale(1.05); }
    50%      { transform: translate(6px, -20px) scale(0.98); }
    75%      { transform: translate(-4px, -8px) scale(1.02); }
}

@keyframes floatTank {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30%      { transform: translate(10px, -15px) rotate(-5deg); }
    60%      { transform: translate(-6px, -25px) rotate(4deg); }
    85%      { transform: translate(4px, -10px) rotate(-2deg); }
}

@keyframes floatChart {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-12px, -16px) scale(1.04); }
    66%      { transform: translate(8px, -22px) scale(0.96); }
}

@keyframes floatFactory {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(-10px, -18px) rotate(3deg); }
}

@keyframes floatPayment {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20%      { transform: translate(8px, -10px) rotate(2deg); }
    40%      { transform: translate(-10px, -22px) rotate(-3deg); }
    60%      { transform: translate(6px, -30px) rotate(4deg); }
    80%      { transform: translate(-4px, -14px) rotate(-2deg); }
}

/* Light theme — LPG card */
body.light-theme .project-lpg:hover .float-icon {
    opacity: 0.18;
}

/* Floating Housing/Student Animations — Housing Card */
.project-housing {
    overflow: hidden;
}

.project-housing .project-info {
    position: relative;
    z-index: 1;
}

/* Individual housing icon placement & animation */
.float-home {
    width: 46px;
    height: 46px;
    top: 8%;
    right: 7%;
    animation: floatHome 9s ease-in-out infinite;
}

.float-key {
    width: 40px;
    height: 40px;
    top: 55%;
    right: 3%;
    animation: floatKey 11s ease-in-out infinite 1.5s;
}

.float-building {
    width: 38px;
    height: 38px;
    top: 72%;
    right: 28%;
    animation: floatBuilding 8.5s ease-in-out infinite 2s;
}

.float-map {
    width: 36px;
    height: 36px;
    top: 18%;
    right: 42%;
    animation: floatMap 13s ease-in-out infinite 0.5s;
}

.float-users {
    width: 34px;
    height: 34px;
    top: 42%;
    right: 58%;
    animation: floatUsers 10s ease-in-out infinite 3.2s;
}

.float-dollar {
    width: 30px;
    height: 30px;
    top: 80%;
    right: 75%;
    animation: floatDollar 7s ease-in-out infinite 1s;
}

/* Hover intensify — housing card */
.project-housing:hover .float-icon {
    opacity: 0.15;
    transition: opacity 0.6s ease;
}

/* Keyframes — housing/student icons */
@keyframes floatHome {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-10px, -15px) rotate(3deg); }
    50%      { transform: translate(6px, -25px) rotate(-2deg); }
    75%      { transform: translate(-8px, -12px) rotate(4deg); }
}

@keyframes floatKey {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30%      { transform: translate(12px, -18px) rotate(15deg); }
    60%      { transform: translate(-8px, -28px) rotate(-10deg); }
    85%      { transform: translate(4px, -8px) rotate(5deg); }
}

@keyframes floatBuilding {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-8px, -16px) scale(1.05); }
}

@keyframes floatMap {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%      { transform: translate(-12px, -18px) rotate(5deg); }
    66%      { transform: translate(8px, -22px) rotate(-5deg); }
}

@keyframes floatUsers {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(-6px, -12px) scale(1.03); }
    50%      { transform: translate(8px, -20px) scale(0.97); }
    75%      { transform: translate(-4px, -8px) scale(1.02); }
}

@keyframes floatDollar {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-5px, -10px) rotate(90deg); }
    50%      { transform: translate(10px, -20px) rotate(180deg); }
    75%      { transform: translate(-8px, -8px) rotate(270deg); }
}

/* Light theme — housing card */
body.light-theme .project-housing:hover .float-icon {
    opacity: 0.18;
}

/* Floating Tuckshop/Android Animations — Pointe Card */
.project-pointe {
    overflow: visible;
}

.project-pointe .project-info {
    position: relative;
    z-index: 2;
}

/* Individual tuckshop icon placement & animation */
.float-cart {
    width: 46px;
    height: 46px;
    top: 8%;
    right: 7%;
    animation: floatCart 9s ease-in-out infinite;
}

.float-utensils {
    width: 40px;
    height: 40px;
    top: 55%;
    right: 3%;
    animation: floatUtensils 11s ease-in-out infinite 1.5s;
}

.float-box {
    width: 38px;
    height: 38px;
    top: 72%;
    right: 28%;
    animation: floatBox 8.5s ease-in-out infinite 2s;
}

.float-list {
    width: 36px;
    height: 36px;
    top: 18%;
    right: 42%;
    animation: floatList 13s ease-in-out infinite 0.5s;
}

.float-receipt {
    width: 34px;
    height: 34px;
    top: 42%;
    right: 58%;
    animation: floatReceipt 10s ease-in-out infinite 3.2s;
}

.float-coins {
    width: 30px;
    height: 30px;
    top: 80%;
    right: 75%;
    animation: floatCoins 7s ease-in-out infinite 1s;
}

/* Hover intensify — Pointe card */
.project-pointe:hover .float-icon {
    opacity: 0.15;
    transition: opacity 0.6s ease;
}

/* Keyframes — tuckshop icons */
@keyframes floatCart {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-10px, -15px) rotate(3deg); }
    50%      { transform: translate(6px, -25px) rotate(-2deg); }
    75%      { transform: translate(-8px, -12px) rotate(4deg); }
}

@keyframes floatUtensils {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30%      { transform: translate(12px, -18px) rotate(15deg); }
    60%      { transform: translate(-8px, -28px) rotate(-10deg); }
    85%      { transform: translate(4px, -8px) rotate(5deg); }
}

@keyframes floatBox {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-8px, -16px) scale(1.05); }
}

@keyframes floatList {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%      { transform: translate(-12px, -18px) rotate(5deg); }
    66%      { transform: translate(8px, -22px) rotate(-5deg); }
}

@keyframes floatReceipt {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(-6px, -12px) scale(1.03); }
    50%      { transform: translate(8px, -20px) scale(0.97); }
    75%      { transform: translate(-4px, -8px) scale(1.02); }
}

@keyframes floatCoins {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-5px, -10px) rotate(90deg); }
    50%      { transform: translate(10px, -20px) rotate(180deg); }
    75%      { transform: translate(-8px, -8px) rotate(270deg); }
}

/* Light theme — Pointe card */
body.light-theme .project-pointe:hover .float-icon {
    opacity: 0.18;
}

/* Carousel Modal Styles */
.carousel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.carousel-modal.active {
    display: flex;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.carousel-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    flex-shrink: 0;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: -70px;
}

.carousel-next {
    right: -70px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--text-secondary);
}

/* Mobile Carousel Adjustments */
@media screen and (max-width: 768px) {
    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-close {
        top: -40px;
        right: 10px;
    }

    .carousel-slide {
        max-height: 60vh;
    }
}


/* Contact Form */
.form-style {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 4px;
    margin: 40px auto;
    max-width: 600px;
    transition: var(--transition);
}

.form-style:hover {
    border-color: #333;
    box-shadow: 0 10px 30px -15px rgba(255, 255, 255, 0.05);
}

.form-style form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-style label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.form-style input,
.form-style textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.form-style input::placeholder,
.form-style textarea::placeholder {
    color: var(--text-secondary);
}

.form-style input:focus,
.form-style textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-style textarea {
    resize: vertical;
    min-height: 120px;
}

.form-style button[type="submit"] {
    align-self: flex-start;
    margin-top: 10px;
}

/* Certifications Section */
.certification-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.certification-card:hover {
    transform: translateY(-10px);
    border-color: #333;
    box-shadow: 0 10px 30px -15px rgba(255, 255, 255, 0.05);
}

.certification-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cert-provider {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.cert-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.cert-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    opacity: 0.8;
}

.certification-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.certification-card:hover .card-glow {
    top: 10px;
    right: 10px;
    width: 200px;
    height: 200px;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    overflow: visible;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.4s ease;
}

.project-item:hover::before {
    height: 100%;
}

.project-item:hover {
    background: #080808;
}

.project-type {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.project-desc {
    margin-bottom: 25px;
    max-width: 800px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin-bottom: 30px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.icon-link:hover {
    color: var(--text-secondary);
}

.carousel-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-trigger:hover {
    color: var(--text-secondary);
    transform: scale(1.1);
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 4px 10px;
    border: 1px dashed var(--text-secondary);
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: center;
    text-align: center;
}

.contact-eyebrow {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
}

.contact-content h2 {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 30px;
}

.contact-text {
    margin: 0 auto 50px auto;
}

/* Footer */
footer {
    padding: 30px 50px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 2rem;
}

.social-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    nav {
        padding: 20px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: #030303;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 100;
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    section {
        padding: 80px 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 30px;
        flex-direction: row;
        justify-content: space-around;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        text-align: center;
    }

    .scroll-indicator {
        left: 20px;
    }
}

/* Light theme mobile nav override */
@media screen and (max-width: 768px) {
    body.light-theme .nav-links {
        background-color: #f5f5f0;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}

.timeline-date {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin: 5px 0;
}