* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #06b6d4;
    --secondary-color: #14b8a6;
    --dark-bg: #0a0e1a;
    --darker-bg: #050810;
    --light-text: #e2e8f0;
    --gray-text: #94a3b8;
    --accent: #06b6d4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    background-color: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Home page background */
.home-page {
    background-image: url('IMG_0025.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.home-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.9);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 14, 26, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-contact {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.email-wrapper {
    position: relative;
}

.email-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--gray-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.email-copy:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    color: var(--light-text);
}

.email-icon {
    font-size: 1rem;
}

.email-text {
    white-space: nowrap;
}

.linkedin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.linkedin-btn:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.linkedin-icon {
    font-weight: 700;
    font-size: 1rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Copy Notification Inline */
.copy-notification-inline {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copy-notification-inline.show {
    opacity: 1;
}

.copy-notification-inline::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('IMG_0025.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-small {
    min-height: auto;
    padding: 10rem 0 4rem;
}

.home-page .hero-small {
    background: none;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page .hero-overlay {
    display: none;
}

.home-page .site-footer {
    background: var(--darker-bg);
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.9);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
    line-height: 1;
    color: var(--primary-color);
}

#typewriter {
    display: inline-block;
    min-width: 20px;
}

.cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.cta-button-stack {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-button-stack.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 1px solid var(--primary-color);
    color: white;
}

.cta-button-stack:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.3);
}

.cta-button-stack.primary:hover {
    background: linear-gradient(135deg, #07c7e0, #16d9b6);
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: var(--darker-bg);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Quick Stats Section */
.quick-stats {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-context {
    color: var(--gray-text);
    font-size: 0.875rem;
}

/* Intro Section */
.intro-section {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.intro-text {
    font-size: 1.125rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.intro-cta {
    margin-top: 2rem;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Skills Section */
.skills-section {
    margin-top: 4rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.skill-card p {
    color: var(--gray-text);
    line-height: 1.6;
}

/* Education Section */
.education-section {
    margin-top: 4rem;
}

.education-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.degree {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.grad-date {
    color: var(--gray-text);
}

/* Contact CTA */
.contact-cta {
    margin-top: 4rem;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.copy-notification-local {
    margin-top: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-notification-local.show {
    opacity: 1;
    transform: translateY(0);
}

/* Campaigns Section */
.campaigns {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.campaign-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.campaign-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.campaign-card[data-modal="modal-stardock"] .campaign-image {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.campaign-card[data-modal="modal-stardock"] .campaign-image img {
    object-fit: cover;
    object-position: center bottom;
}

#modal-stardock .modal-hero-banner {
    background: radial-gradient(ellipse at center, #1e3a8a 0%, #334155 50%, #1e293b 100%);
}

#modal-stardock .modal-hero-banner img {
    object-fit: contain;
}

.campaign-card:hover .campaign-image img {
    transform: scale(1);
}

.campaign-content {
    padding: 2rem;
}

.campaign-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.campaign-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.campaign-description {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.campaign-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-text);
}

.campaign-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.campaign-link:hover {
    color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-hero-banner {
    width: calc(100% + 6rem);
    height: 300px;
    margin: -3rem -3rem 2rem -3rem;
    overflow: hidden;
    position: relative;
}

.modal-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--light-text);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.modal-content .modal-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.modal-body {
    color: var(--gray-text);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--light-text);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.modal-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Modal Navigation */
.modal-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-nav-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-nav-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.modal-nav-btn span {
    font-size: 1.25rem;
}

/* Portfolio Modal Styles */
.portfolio-modal-content {
    max-width: 600px;
    max-height: 90vh;
    padding: 1.5rem;
    overflow-y: auto;
}

.portfolio-modal-content:has(.portfolio-modal-image-double) {
    max-width: 900px;
}

.portfolio-modal-content:has(.portfolio-modal-image-quad) {
    max-width: 800px;
}

.portfolio-modal-image {
    width: 100%;
    max-height: 40vh;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-modal-image img {
    max-width: 100%;
    max-height: 40vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.portfolio-modal-image-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-height: 50vh;
}

.portfolio-modal-image-double img {
    width: 100%;
    height: 50vh;
    object-fit: contain;
}

.portfolio-modal-image-quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    max-height: 60vh;
}

.portfolio-modal-image-quad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-modal-video {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-modal-video video {
    max-width: 100%;
    max-height: 45vh;
    border-radius: 8px;
}

.portfolio-modal-info {
    margin-bottom: 1.5rem;
}

.portfolio-modal-info .portfolio-platform {
    margin-bottom: 1rem;
}

.portfolio-modal-info .portfolio-description {
    color: var(--gray-text);
    margin-bottom: 1rem;
    text-align: left;
}

.portfolio-post-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-post-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Portfolio Section */
.portfolio {
    padding: 4rem 0;
    position: relative;
    background-image: url('IMG_0072.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.93);
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    cursor: pointer;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-image-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
}

.portfolio-image-double img:first-child {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-image-double img:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay-content {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-platform {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.portfolio-hover-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.portfolio-hover-metrics div {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.portfolio-description {
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.portfolio-view {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portfolio-view:hover {
    color: var(--secondary-color);
}

.portfolio-caption {
    padding: 0.75rem;
    background: rgba(10, 14, 26, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.caption-text {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-style: italic;
}

.portfolio-modal-caption {
    font-size: 1rem;
}

.caption-attribution {
    font-size: 0.7rem;
    color: var(--gray-text);
    margin: 0;
}

/* Portfolio Modal Enhanced Styles */
.portfolio-modal-caption {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--light-text);
    padding: 1rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
}

.portfolio-modal-attribution {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin: 0.5rem 0 1rem 0;
    padding: 0 1rem;
}

.portfolio-modal-description {
    color: var(--gray-text);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.portfolio-post-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.portfolio-post-box .portfolio-post-link {
    flex-shrink: 0;
}

.portfolio-post-box .metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gray-text);
}

/* Experience Section */
.experience {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--darker-bg);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.company {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.job-meta {
    font-size: 0.875rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.job-description {
    list-style: none;
    padding-left: 0;
}

.job-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-text);
}

.job-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Page Navigation Carousel */
.page-nav-carousel {
    padding: 4rem 0;
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-nav-carousel h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.page-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-nav-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.page-nav-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.page-nav-icon {
    font-size: 2.5rem;
}

.page-nav-card h4 {
    font-size: 1.25rem;
    color: var(--light-text);
    margin: 0;
}

.page-nav-card p {
    font-size: 0.875rem;
    color: var(--gray-text);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-contact {
        gap: 0.5rem;
    }

    .email-text {
        display: none;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 3px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .campaign-metrics {
        grid-template-columns: 1fr;
    }

    /* Projects grid to single column on tablet */
    .campaigns-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Better modal sizing for tablet */
    .modal-content {
        max-width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Smaller modal images */
    .modal-image img,
    .modal-video {
        max-height: 40vh;
    }

    /* Better stat cards */
    .about-stats {
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    /* Skills grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-cta-stack {
        max-width: 100%;
        padding: 0 1rem;
    }

    .cta-button-stack {
        font-size: 0.875rem;
        padding: 0.875rem 1.5rem;
        min-height: 44px; /* Better touch target */
    }

    .nav-links {
        width: 85%;
    }

    .nav-contact {
        margin-left: auto;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile modal optimizations */
    .modal.active {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        padding: 1.5rem 1rem;
        margin: auto;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    /* Smaller modal images for mobile */
    .modal-image img,
    .modal-video {
        max-height: 35vh;
        width: 100%;
        object-fit: contain;
    }

    .modal-image-grid {
        gap: 0.5rem;
    }

    /* Modal metrics */
    .modal-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }

    .metric-item {
        flex: 1 1 100%;
    }

    /* Page header */
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Section spacing */
    .about,
    .portfolio,
    .campaigns,
    .experience {
        padding: 3rem 0;
    }

    /* Stat cards */
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-context {
        font-size: 0.8rem;
    }

    /* Campaign cards */
    .campaign-card {
        padding: 1.5rem;
    }

    .campaign-title {
        font-size: 1.25rem;
    }

    /* Portfolio captions */
    .caption-text {
        font-size: 0.8rem;
    }

    /* Better scrolling for modals */
    .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Navigation arrows */
    .modal-nav {
        padding: 0.5rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Skills grid */
    .skills-grid {
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    /* About stats grid */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Contact buttons */
    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }

    .contact-buttons .cta-button {
        width: 100%;
    }
}

    .modal-content h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }
}

/* Footer */
.site-footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-text {
    color: var(--gray-text);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-text strong {
    color: var(--light-text);
}