/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    /* Colors */
    --color-bg-primary: #040404;
    --color-bg-secondary: #000000;
    --color-bg-card: #1a1a1a;
    --color-accent: #c04431;
    --color-accent-light: #d45540;
    --color-accent-bright: #f84d3a;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-dim: rgba(255, 255, 255, 0.4);

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bouncy: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-accent: 'Borel', sans-serif;
    --font-casual: 'Comfortaa', sans-serif;

    /* Shadows */
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 40px rgba(192, 68, 49, 0.2);
    --shadow-lg: 0 15px 50px rgba(192, 68, 49, 0.25);
    --shadow-glow: 0 0 20px rgba(192, 68, 49, 0.6);

    /* Grid & Layout */
    --grid-gap: 20px;
    --container-max-width: 1200px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    height: 64px;
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

nav {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-md);
}

nav .logo {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-accent);
    font-size: 28px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    margin: var(--spacing-sm);
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-menu .bar {
    height: 3px;
    margin-bottom: var(--spacing-xs);
    width: 25px;
    background-color: var(--color-text-primary);
    border-radius: var(--spacing-xs);
    transition: all var(--transition-normal);
}

nav .logo .logo-text {
    display: inline-block;
    transform: translateY(6px);
}

nav .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    width: 100%;
    font-family: var(--font-casual);
}

nav .nav-links a {
    text-decoration: none;
    color: var(--color-text-primary);
    transition: transform var(--transition-normal);
}

nav .nav-links a:hover {
    transform: scale(1.1);
}

nav .social {
    position: absolute;
    right: var(--spacing-md);
    display: flex;
    font-size: 24px;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
}

nav .social a {
    color: var(--color-text-primary);
    text-decoration: none;
}

nav .social i:hover {
    transform: scale(1.3);
    cursor: pointer;
    transition: all var(--transition-normal);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

main>section {
    position: relative;
    min-height: 100vh;
    height: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: absolute;
    left: max(200px, 18vw);
    top: 50%;
    transform: translateY(-50%);
    padding: var(--spacing-md);
    font-family: var(--font-display);
    font-size: 24px;
    z-index: 5;
}

.hero-section p {
    font-size: 64px;
    font-weight: 200;
    margin-left: 50px;
}

.dot {
    color: var(--color-accent);
}

.typing-effect {
    font-family: var(--font-display);
    font-size: 36px;
    color: #d4d4d4;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    padding-right: 0;
}

.cursor {
    color: var(--color-accent);
    font-size: 36px;
    animation: blink 0.7s infinite step-end;
    z-index: 1;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* CTA Buttons */
.hero-section .cta button,
.hero-section .cta .resume-link,
.hero-section .cta .btn-flip-link {
    margin: 30px 5px;
    background-color: transparent;
    border: 0;
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 150px;
    height: 50px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-flip-link {
    padding: 0;
}

.btn-flip {
    opacity: 1;
    outline: 0;
    color: var(--color-text-primary);
    line-height: 50px;
    text-align: center;
}

.btn-flip:hover:after {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.btn-flip:hover:before {
    opacity: 0;
    transform: translateY(50%) rotateX(90deg);
}

.btn-flip:after {
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    color: var(--color-text-primary);
    display: block;
    transition: 0.5s;
    position: absolute;
    background: var(--color-accent-bright);
    content: attr(data-back);
    transform: translateY(-50%) rotateX(90deg);
}

.btn-flip:before {
    top: 0;
    left: 0;
    opacity: 1;
    color: var(--color-text-primary);
    display: block;
    width: 100%;
    transition: 0.5s;
    position: relative;
    background: var(--color-accent);
    content: attr(data-front);
    transform: translateY(0) rotateX(0);
}

.hero-section .cta button.secondary {
    background: transparent;
}

.hero-section .cta button.secondary svg {
    height: 50px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    pointer-events: none;
}

.hero-section .cta button.secondary rect {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 4;
    stroke-dasharray: 422, 0;
    transition: all 0.35s linear;
}

.hero-section .cta button.secondary:hover {
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-section .cta button.secondary:hover rect {
    stroke-width: 7;
    stroke-dasharray: 15, 310;
    stroke-dashoffset: 48;
    transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hero Background Image */
.hero-image {
    background: url('./assets/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: calc(50% - 35px) center;
    height: calc(100vh * 1.3);
    width: max(25vw, 400px);
    position: absolute;
    right: 18vw;
    top: 0;
    z-index: -1;
}

.gradient-overlay {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

/* Skills Carousel */
.hero .skills-carousel {
    position: absolute;
    font-family: var(--font-casual);
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--color-bg-primary), rgba(4, 4, 4, 0.9), rgba(4, 4, 4, 0.8), rgba(4, 4, 4, 0.6), rgba(4, 4, 4, 0.4), transparent);
}

.carousel-ribbon {
    background-color: var(--color-bg-card);
    color: rgb(150, 150, 150);
    padding: 1.2rem 0;
    width: 100%;
    position: relative;
}

.main-ribbon {
    transform: scale(1.1) rotate(-1deg);
    z-index: 2;
}

.reflection-ribbon {
    transform: scale(1.1) rotate(1deg);
    background-color: #070707;
    color: rgb(25, 25, 25);
    z-index: 1;
}

.carousel-track {
    display: flex;
    width: calc(200px * 12);
    will-change: transform;
}

body.scrolling-up .track-forward,
body.scrolling-up .track-reverse {
    animation-direction: reverse;
}

.carousel-item {
    flex-shrink: 0;
    width: 200px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px var(--spacing-md);
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1)), url("./assets/dark-background.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

#about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, var(--color-bg-primary) 100%);
    pointer-events: none;
    z-index: 1;
}

.about-container {
    max-width: var(--container-max-width);
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.about-header {
    margin-bottom: 60px;
}

.section-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 60px;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 4px;
    background: var(--color-accent);
}

.about-headline {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    max-width: var(--container-max-width);
}

.about-description {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 900px;
    font-weight: 300;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
#skills {
    position: relative;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px var(--spacing-md);
    background: var(--color-bg-primary);
}

.skills-container {
    max-width: var(--container-max-width);
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.skills-header {
    margin-bottom: var(--spacing-xl);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1100px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    cursor: default;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.skill-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 60px;
    transition: all var(--transition-smooth);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

/* Technology-specific colors */
.skill-icon.html {
    color: #E34C26;
}

.skill-icon.css {
    color: #2563EB;
}

.skill-icon.git {
    color: #f05133;
}

.skill-icon.javascript {
    color: #F7DF1E;
}

.skill-icon.react {
    color: #61DAFB;
}

.skill-icon.github {
    color: #FFFFFF;
}

.skill-icon.nodejs {
    color: #68A063;
}

.skill-icon.python {
    color: #3776AB;
}

.skill-icon.mongodb {
    color: #47A248;
}

.skill-icon.docker {
    color: #2196F3;
}

.skill-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
#education {
    position: relative;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px var(--spacing-md);
    background: var(--color-bg-primary);
}

.education-container {
    max-width: var(--container-max-width);
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.education-header {
    margin-bottom: var(--spacing-xl);
}

.education-timeline {
    position: relative;
    max-width: 900px;
}

.education-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-lg);
    margin-bottom: 60px;
    position: relative;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item:last-child .timeline-line {
    display: none;
}

.timeline-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(192, 68, 49, 0.6);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--color-text-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-line {
    width: 3px;
    flex: 1;
    background: linear-gradient(to bottom,
            rgba(192, 68, 49, 0.6) 0%,
            rgba(192, 68, 49, 0.3) 50%,
            rgba(192, 68, 49, 0.1) 100%);
    margin-top: var(--spacing-sm);
    min-height: 120px;
}

.education-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(192, 68, 49, 0.2);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.education-content:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(192, 68, 49, 0.4);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.education-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.education-institution {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-accent);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.education-year {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(192, 68, 49, 0.1);
    border-radius: var(--spacing-md);
    border: 1px solid rgba(192, 68, 49, 0.3);
    margin-bottom: 5px;
}

.education-description {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 5px;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
#experience {
    position: relative;
    height: auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

#experience .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    max-width: var(--container-max-width);
    font-family: var(--font-display);
}

#experience .container h2 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
}

.experience-section-header {
    margin-bottom: var(--spacing-xl);
    width: 100%;
}

.experience-timeline {
    width: 100%;
    position: relative;
}

.experience-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 68, 49, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.experience-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(192, 68, 49, 0.5);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: 25px;
    position: relative;
}

.experience-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.experience-title h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.experience-org {
    font-size: 18px;
    color: var(--color-accent);
    font-weight: 500;
}

.experience-year {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 8px var(--spacing-md);
    background: rgba(192, 68, 49, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(192, 68, 49, 0.3);
}

.experience-content {
    margin-left: var(--spacing-lg);
}

.experience-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.major-prs h4 {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.pr-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.pr-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--spacing-sm);
    margin-bottom: 12px;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pr-item:hover {
    background: rgba(192, 68, 49, 0.1);
    border-color: rgba(192, 68, 49, 0.3);
    transform: translateX(10px);
}

.pr-item i {
    font-size: 20px;
    color: #8957e5;
    flex-shrink: 0;
}

.pr-item span:nth-child(2) {
    flex: 1;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.pr-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

#experience .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

#experience .tech-tags span {
    font-size: 13px;
    padding: 8px 16px;
    background-color: rgba(192, 68, 49, 0.15);
    border-radius: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border: 1px solid rgba(192, 68, 49, 0.3);
    transition: all var(--transition-normal);
}

#experience .tech-tags span:hover {
    background-color: rgba(192, 68, 49, 0.25);
    border-color: rgba(192, 68, 49, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
#projects {
    position: relative;
    height: auto;
    width: 90%;
    margin: 0 auto;
    padding: 100px 0;
    font-family: var(--font-display);
}

#projects .container h2 {
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

#projects .container p {
    font-size: 20px;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Stacked Cards Layout */
.card-stack-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    position: relative;
    overflow: visible;
}

.card-stack {
    position: relative;
    width: 600px;
    height: 400px;
}

.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-card);
    border-radius: var(--radius-sm);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-origin: center center;
    transition: transform var(--transition-bouncy), opacity var(--transition-bouncy);
    cursor: grab;
    user-select: none;
    will-change: transform;
    overflow: hidden;
}

.stack-card .card-header {
    width: 100%;
    padding: 15px var(--spacing-md);
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.window-dots {
    display: flex;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
}

.window-dots:hover span {
    transform: scale(1.1);
    transition: transform var(--transition-fast);
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background-color: #ff5f56;
}

.dot-yellow {
    background-color: #ffbd2e;
}

.dot-green {
    background-color: #27c93f;
}

.stack-card .card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    width: 100%;
}

.stack-card .card-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.tech-tags {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.tech-tags span {
    font-size: 12px;
    padding: 5px var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--spacing-md);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.stack-card .card-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 30px;
    background-color: var(--color-accent);
    border: 2px solid var(--color-accent);
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.stack-card:hover .github-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.github-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stack-card:nth-child(n) {
    z-index: 1;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
#certifications {
    position: relative;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px var(--spacing-md);
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, #0a0505 100%);
}

.certifications-container {
    max-width: var(--container-max-width);
    width: 100%;
    padding: var(--spacing-lg);
}

.certifications-header {
    margin-bottom: var(--spacing-xl);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.certification-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192, 68, 49, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(192, 68, 49, 0.4);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    width: 90px;
    height: 90px;
    background: rgba(192, 68, 49, 0.15);
    border: 2px solid rgba(192, 68, 49, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--color-accent);
    margin-bottom: 25px;
    transition: all var(--transition-smooth);
}

.certification-card:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(192, 68, 49, 0.25);
    border-color: rgba(192, 68, 49, 0.5);
    box-shadow: 0 0 30px rgba(192, 68, 49, 0.4);
}

.certification-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.cert-issuer {
    font-family: var(--font-display);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.cert-year {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
    padding: 6px 18px;
    background: rgba(192, 68, 49, 0.1);
    border-radius: var(--spacing-md);
    border: 1px solid rgba(192, 68, 49, 0.3);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px var(--spacing-md) 60px;
    background: linear-gradient(180deg, #0a0505 0%, var(--color-bg-primary) 100%);
}

.contact-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ff6b4a 0%, var(--color-accent) 50%, #ff6b4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.cta-subtext {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cta-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(192, 68, 49, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-email-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-email-btn:hover::before {
    left: 100%;
}

.cta-email-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(192, 68, 49, 0.5);
}

.cta-email-btn i {
    font-size: 20px;
}

.cta-social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(192, 68, 49, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.social-btn:hover {
    background: rgba(192, 68, 49, 0.2);
    border-color: var(--color-accent);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 30px rgba(192, 68, 49, 0.4);
}

/* Decorative Floating Orbs */
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.cta-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(192, 68, 49, 0.4) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.cta-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.3) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

.cta-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(192, 68, 49, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -30px);
    }

    66% {
        transform: translate(-25px, 25px);
    }
}

/* Back to Top in Contact Section */
#contact .back-to-top {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 24px;
    position: absolute;
    bottom: 195px;
    right: 50px;
}

#contact .back-to-top:hover {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    transform: translateY(-5px) scale(1.1);
    border-color: var(--color-text-primary);
}

/* Copyright in Contact Section */
#contact .copyright {
    width: 100%;
    text-align: center;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.cursor-dot.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Tablet & Mobile (1024px and below) */
@media screen and (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
        z-index: 100;
        position: relative;
    }

    /* Mobile Menu Overlay */
    nav .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: rgba(4, 4, 4, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 60px;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 9;
    }

    nav .nav-links.nav-active {
        transform: translateY(0);
    }

    nav .nav-links a {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
        font-size: 32px;
        font-weight: 600;
        letter-spacing: 2px;
    }

    nav .nav-links.nav-active a {
        opacity: 1;
        transform: translateY(0);
    }

    nav .nav-links a:hover {
        color: var(--color-accent);
    }

    /* Hamburger Animation */
    .hamburger-menu.toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-section {
        top: 50%;
        transform: translateY(-50%);
    }

    #experience .container {
        width: 85%;
    }

    #experience .container h2 {
        font-size: 48px;
        margin-bottom: var(--spacing-lg);
    }

    .experience-card {
        padding: 30px;
    }

    .experience-title h3 {
        font-size: 24px;
    }

    .experience-description {
        font-size: 16px;
    }

    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hide custom cursor on tablet/touch devices */
    .cursor-dot {
        display: none;
    }
}

/* Mobile Landscape & Small Tablets (768px and below) */
@media screen and (max-width: 768px) {

    /* Header adjustments */
    nav .logo {
        font-size: 24px;
    }

    nav .social {
        right: 15px;
        font-size: 20px;
        gap: 15px;
    }

    /* Hero section */
    .hero-section {
        left: 15%;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
    }

    .hero-section p {
        font-size: 48px;
        margin-left: 30px;
    }

    .typing-effect,
    .cursor {
        font-size: 28px;
    }

    .hero-image {
        width: 270px;
        right: 10vw;
    }

    /* About & Skills sections */
    .about-container,
    .skills-container,
    .education-container {
        padding: 0px 10px;
    }

    .certifications-container {
        padding: 0 10px;
    }

    .section-label {
        padding-left: var(--spacing-lg);
        font-size: 12px;
    }

    .section-label::before {
        width: 30px;
        height: 2px;
    }

    .about-headline {
        margin-bottom: 30px;
        font-size: clamp(36px, 5vw, 60px);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .skill-card {
        padding: 20px 15px;
    }

    .skill-icon {
        width: 70px;
        height: 70px;
        font-size: 42px;
    }

    .skill-card h3 {
        font-size: 13px;
    }

    /* Education */
    .education-item {
        grid-template-columns: 50px 1fr;
        gap: var(--spacing-md);
        margin-bottom: 50px;
    }

    .timeline-dot {
        width: 18px;
        height: 18px;
    }

    .timeline-dot::after {
        width: 10px;
        height: 10px;
    }

    .timeline-line {
        width: 2px;
        min-height: 100px;
    }

    .education-content {
        padding: 25px;
    }

    .education-content h3 {
        font-size: 20px;
    }

    .education-institution {
        font-size: 16px;
    }

    /* Certifications */
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .certification-card {
        padding: 25px 15px;
    }

    .cert-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 15px;
    }

    .certification-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .cert-issuer {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .cert-year {
        font-size: 11px;
        padding: 4px 12px;
    }

    /* Experience */
    #experience {
        padding: 60px 30px;
    }

    #experience .container {
        width: 100%;
    }

    #experience .container h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .experience-card {
        padding: 25px;
    }

    .experience-header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .experience-year {
        width: 100%;
        text-align: center;
        margin-left: var(--spacing-lg);
    }

    .experience-content {
        margin-left: 0;
    }

    .experience-title h3 {
        font-size: 22px;
    }

    .experience-org {
        font-size: 16px;
    }

    .pr-item {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .pr-item span:nth-child(2) {
        width: 100%;
        font-size: 15px;
    }

    .pr-date {
        margin-left: 35px;
    }

    /* Projects */
    #projects {
        width: 100%;
        padding: 60px 30px;
    }

    #projects .container h2 {
        font-size: 48px;
        margin-bottom: 15px;
    }

    #projects .container p {
        font-size: 18px;
        margin-bottom: 60px;
    }

    .card-stack-container {
        padding: 0 10px;
    }

    .card-stack {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 380px;
    }

    .stack-card {
        min-height: 380px;
    }

    .stack-card .card-content {
        padding: 25px;
    }

    .stack-card .card-content h3 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .tech-tags {
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .tech-tags span {
        font-size: 11px;
        padding: 4px 8px;
    }

    .stack-card .card-content p {
        font-size: 16px;
        margin-bottom: 20px;
        max-width: 100%;
    }

    /* Always show button on mobile (no hover) */
    .github-btn {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Contact Section */
    #contact {
        padding: 60px 30px;
        min-height: auto;
    }

    .cta-subtext {
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .cta-email-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .cta-orb-1,
    .cta-orb-2 {
        width: 250px;
        height: 250px;
    }

    .cta-orb-3 {
        width: 180px;
        height: 180px;
    }
}

/* Mobile Portrait (480px and below) */
@media screen and (max-width: 480px) {

    /* Header */
    header {
        height: 50px;
        padding: var(--spacing-xs);
        margin: var(--spacing-xs);
    }

    nav {
        padding: 0 var(--spacing-sm);
    }

    nav .logo {
        font-size: 20px;
        gap: var(--spacing-xs);
    }

    nav .logo .logo-text {
        transform: translateY(4px);
    }

    nav .social {
        right: var(--spacing-sm);
        font-size: 18px;
        gap: 15px;
        padding: var(--spacing-xs);
    }

    /* Hero section */
    .hero-section {
        left: var(--spacing-md);
        top: 60%;
        transform: translateY(-50%);
        padding: 15px;
        font-size: 18px;
        width: calc(100% - 40px);
        max-width: 90%;
        position: absolute;
        background: rgba(4, 4, 4, 0.1);
        backdrop-filter: blur(1px);
        border-radius: 0;
    }

    .hero-section h2 {
        font-size: 20px;
    }

    .hero-section p {
        font-size: 32px;
        font-weight: 300;
        margin-left: var(--spacing-md);
    }

    .typing-effect {
        font-size: 24px;
        white-space: normal;
        word-wrap: break-word;
    }

    .cursor {
        font-size: 24px;
    }

    /* CTA buttons */
    .hero-section .cta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }

    .hero-section .cta button,
    .hero-section .cta .resume-link,
    .hero-section .cta .btn-flip-link {
        width: 100%;
        max-width: 280px;
        height: 45px;
        font-size: 13px;
        margin: var(--spacing-xs) 0;
    }

    .btn-flip-link button {
        width: 100%;
        margin: 0;
    }

    /* Hero image - full screen on mobile */
    .hero-image {
        background: url('./assets/background.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        position: absolute;
        height: 100vh;
        width: 100vw;
        left: 0;
        right: 0;
        top: 0;
        z-index: -1;
    }

    /* Gradient overlay for fade effect */
    .gradient-overlay {
        display: block;
        position: absolute;
        bottom: 0;
        top: 60%;
        height: 40%;
        background: linear-gradient(to bottom, transparent 0%, rgba(4, 4, 4, 0.8) 30%, rgba(4, 4, 4, 0.85) 50%, rgba(4, 4, 4, 0.95) 70%, rgba(4, 4, 4, 1) 100%);
    }

    /* Experience */
    #experience .container h2 {
        font-size: 32px;
    }

    .experience-card {
        padding: var(--spacing-md);
    }

    .experience-card::before {
        width: 2px;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
    }

    .timeline-dot::after {
        width: 10px;
        height: 10px;
    }

    .experience-title h3 {
        font-size: 20px;
    }

    .experience-year {
        font-size: 16px;
        padding: 6px 15px;
    }

    .experience-description {
        font-size: 15px;
    }

    .major-prs h4 {
        font-size: 18px;
    }

    .pr-item {
        padding: 12px 15px;
    }

    #experience .tech-tags span {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Projects Mobile Portrait */
    #projects .container h2 {
        font-size: 36px;
        margin-bottom: 10px;
    }

    #projects .container p {
        font-size: 16px;
        padding: 0 10px;
    }

    .card-stack-container {
        padding: 0 5px;
    }

    .card-stack {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 420px;
    }

    .stack-card {
        min-height: 420px;
    }

    .stack-card .card-header {
        padding: 12px 15px;
    }

    .window-dots span {
        width: 10px;
        height: 10px;
    }

    .stack-card .card-content {
        padding: 20px 15px;
    }

    .stack-card .card-content h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .tech-tags {
        gap: 6px;
        margin-bottom: 12px;
    }

    .tech-tags span {
        font-size: 10px;
        padding: 4px 8px;
    }

    .stack-card .card-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .github-btn {
        padding: 10px 20px;
        font-size: 13px;
        gap: 8px;
    }

    #contact .back-to-top {
        display: none;
    }
}