:root {
    /* Colors - Professional Tech Theme */
    --primary: #00ff88;
    --primary-dark: #00cc6d;
    --primary-light: #66ffb3;
    --secondary: #0066ff;
    --accent: #ff6b35;
    
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a1f35;
    --bg-card: rgba(26, 31, 53, 0.6);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    
    /* Typography */
    --font-display: 'Darker Grotesque', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --container-width: 1280px;
    --section-padding: 120px;
    --card-padding: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-bracket {
    color: var(--primary);
}

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    opacity: 0.05;
    pointer-events: none;
}

.grid-line {
    border-right: 1px solid var(--primary);
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 80px;
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-image {
    position: relative;
    animation: fadeIn 1s ease 0.3s both;
}

.image-frame {
    position: relative;
    width: 400px;
    height: 500px;
    margin: 0 auto;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(20%);
}

.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
}

.frame-corner.tl {
    top: -12px;
    left: -12px;
    border-right: none;
    border-bottom: none;
}

.frame-corner.tr {
    top: -12px;
    right: -12px;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bl {
    bottom: -12px;
    left: -12px;
    border-right: none;
    border-top: none;
}

.frame-corner.br {
    bottom: -12px;
    right: -12px;
    border-left: none;
    border-top: none;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(26, 31, 53, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.floating-badge.badge-1 {
    top: 60px;
    right: -40px;
    animation: float 3s ease-in-out infinite;
}

.floating-badge.badge-2 {
    bottom: 80px;
    left: -40px;
    animation: float 3s ease-in-out 1.5s infinite;
}

.badge-icon {
    font-size: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -1px;
}

/* About Section */
.about {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.about-text {
    font-size: 18px;
}

.lead-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-base);
}

.highlight-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.highlight-icon {
    font-size: 32px;
    line-height: 1;
}

.highlight-text h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.highlight-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    padding: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 24px;
    line-height: 1;
}

.info-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-item a:hover {
    color: var(--primary-light);
}

.info-meta {
    font-size: 14px !important;
    color: var(--text-muted) !important;
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.skill-category {
    padding: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-base);
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.category-icon {
    font-size: 32px;
}

.category-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-tools {
    font-size: 14px;
    color: var(--text-muted);
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
    transition: width 1s ease;
}

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

.skill-tag {
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
}

.project-card.featured {
    grid-column: span 2;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
    overflow: hidden;
}

.project-profile-image {
    position: center;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 136, 0.3);
    z-index: 1;
    transition: all var(--transition-base);
    cursor: pointer;
}

.project-profile-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 136, 0.5);
    border-color: var(--primary-light);
}

.project-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.project-profile-image:hover img {
    transform: scale(1.05);
}


.project-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.project-icon {
    font-size: 80px;
    opacity: 0.5;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
    z-index: 10;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--bg-primary);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.project-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.project-link.disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.project-content {
    padding: 32px;
}

.project-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Achievements Section */
.achievements {
    background: var(--bg-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.achievement-card {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-base);
}

.achievement-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.achievement-card.highlight {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 102, 255, 0.05) 100%);
    border-color: var(--primary);
}

.achievement-badge {
    position: absolute;
    top: -16px;
    right: 32px;
    font-size: 32px;
}

.achievement-icon {
    margin-bottom: 24px;
    color: var(--primary);
}

.achievement-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.achievement-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.achievement-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement-event,
.achievement-theme {
    font-size: 14px;
    color: var(--text-muted);
}

.achievement-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-intro {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.method-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.method-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-icon:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-4px);
}

.contact-form-wrapper {
    padding: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Footer */
.footer {
    padding: 60px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-muted);
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .image-frame {
        width: 300px;
        height: 380px;
    }
    
    .floating-badge {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .floating-badge.badge-1 {
        right: -20px;
    }
    
    .floating-badge.badge-2 {
        left: -20px;
    }
    
    .project-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}

/* ==========================================
   MODAL & GALLERY STYLES - 2x2 HORIZONTAL SCROLLING
   ========================================== */

/* ====================
   Modal Overlay
   ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ====================
   Modal Container
   ==================== */
.modal-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* ====================
   Modal Header
   ==================== */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(26, 31, 53, 0.5);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    font-family: var(--font-mono);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    transform: rotate(90deg);
}

/* ====================
   Modal Body
   ==================== */
.modal-body {
    flex: 1;
    overflow: hidden; /* Changed from overflow-y: auto to enable horizontal pagination */
    padding: 40px 32px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================
   Gallery Grid - 2x2 Layout with Uniform Rectangular Images
   ==================== */
.gallery-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    grid-template-rows: repeat(2, 1fr);    /* 2 rows */
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 600px; /* Control overall grid height */
}

/* Gallery Items - Uniform Rectangular Size (16:9 aspect ratio) */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--bg-tertiary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    aspect-ratio: 16 / 9; /* Maintain 16:9 rectangular aspect ratio */
    width: 100%;
    height: 100%;
}

/* Remove all varied sizing - all images are now uniform */
.gallery-item:nth-child(3n + 1),
.gallery-item:nth-child(4n + 2),
.gallery-item:nth-child(5n) {
    grid-row: auto; /* Reset any span rules */
    grid-column: auto; /* Reset any span rules */
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the rectangular container */
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Image Overlay */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

/* Loading State */
.gallery-item.loading {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        rgba(26, 31, 53, 0.8) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ====================
   Modal Navigation
   ==================== */
.modal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px 32px;
    border-top: 1px solid var(--border-color);
    background: rgba(26, 31, 53, 0.5);
}

.modal-nav-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.modal-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-counter {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 120px;
    text-align: center;
}

/* ====================
   Lightbox (Full-size View)
   ==================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15001;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

#lightboxImage {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 800px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 1024px) {
    .modal-container {
        max-width: 95%;
    }
    
    .gallery-collage {
        max-height: 500px;
        gap: 16px;
    }
    
    .modal-header,
    .modal-body,
    .modal-nav {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .modal-body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .gallery-collage {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        grid-template-rows: auto; /* Auto rows for scrolling */
        max-height: none; /* Remove height restriction */
        min-height: 100%; /* Allow natural content height */
        gap: 12px;
        padding-bottom: 20px; /* Extra space at bottom */
    }
    
    .gallery-item {
        aspect-ratio: 16 / 9; /* Maintain aspect ratio on mobile */
    }
    
    .modal-body {
        padding: 20px 16px;
    }
    
    .gallery-item-title {
        font-size: 13px;
    }
    
    .lightbox-overlay {
        padding: 20px;
    }
    
    #lightboxImage {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .modal-header,
    .modal-nav {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-counter {
        font-size: 12px;
        min-width: 100px;
    }
    
    .modal-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .gallery-collage {
        max-height: 300px;
    }
}

.project-image {
    position: relative;
}

.project-image::after {
    content: '🖼️ Click to view gallery';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-family: var(--font-mono);
    z-index: 2;
}

.project-card:hover .project-image::after {
    opacity:0;
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 768px) {
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-nav {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 18px;
    }

    .gallery-collage {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    /* Simplify grid on mobile */
    .gallery-item:nth-child(3n + 1),
    .gallery-item:nth-child(5n) {
        grid-row: span 1;
    }

    .gallery-item:nth-child(4n + 2) {
        grid-column: span 1;
    }
    
    .lightbox-overlay {
        padding: 20px;
    }
    
    #lightboxImage {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .lightbox-close {
        top: 12px;
        right: 12px;
        padding: 10px;
        width: 44px;
        height: 44px;
    }
}

/* ====================
   SMALL MOBILE (≤480px)
   Single column scrollable list
   ==================== */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 4px;
    }
    
    .modal-container {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-close {
        padding: 6px;
        width: 36px;
        height: 36px;
    }
    
    /* Single column for very small screens */
    .modal-body {
        padding: 12px 8px;
    }
    
    .gallery-collage {
        grid-template-columns: 1fr; /* Single column on tiny screens */
        gap: 8px;
    }
    
    .gallery-item {
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }
    
    .gallery-item-title {
        font-size: 10px;
        padding: 8px;
    }
}

/* ====================
   LANDSCAPE MODE (Mobile in landscape)
   ==================== */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 100px);
    }
    
    .modal-header {
        padding: 10px 16px;
    }
}

/* ====================
   TOUCH OPTIMIZATIONS
   ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Ensure buttons are easily tappable */
    .modal-close,
    .lightbox-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better tap feedback */
    .gallery-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Smooth momentum scrolling */
    .modal-body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* ====================
   LOADING STATE
   ==================== */
.gallery-item.loading {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        rgba(26, 31, 53, 0.8) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ====================
   Loading Animation
   ==================== */
.gallery-item.loading {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-card) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ==========================================
   ENHANCED RESPONSIVE DESIGN
   Creative & Modern Approach
   ========================================== */

/* ====================
   FLUID TYPOGRAPHY SYSTEM
   Scales smoothly across all devices
   ==================== */
:root {
    /* Fluid font sizes using clamp() */
    --fs-hero-title: clamp(2.5rem, 8vw, 5rem);
    --fs-section-title: clamp(2rem, 5vw, 3.5rem);
    --fs-subtitle: clamp(1.25rem, 3vw, 1.75rem);
    --fs-body-large: clamp(1rem, 2vw, 1.125rem);
    --fs-body: clamp(0.875rem, 1.5vw, 1rem);
    --fs-small: clamp(0.75rem, 1.2vw, 0.875rem);
    
    /* Fluid spacing */
    --spacing-xs: clamp(0.5rem, 2vw, 0.75rem);
    --spacing-sm: clamp(1rem, 3vw, 1.5rem);
    --spacing-md: clamp(1.5rem, 4vw, 2rem);
    --spacing-lg: clamp(2rem, 6vw, 3rem);
    --spacing-xl: clamp(3rem, 8vw, 5rem);
    
    /* Touch-friendly sizes */
    --touch-target: 44px;
    --touch-target-lg: 56px;
}

/* ====================
   ENHANCED MOBILE NAVIGATION
   Slide-in menu with backdrop
   ==================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 32px 32px;
        gap: 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Mobile menu backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Animated hamburger */
    .mobile-menu-btn {
        position: relative;
        z-index: 1000;
        width: var(--touch-target);
        height: var(--touch-target);
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ====================
   TABLET OPTIMIZATIONS
   Better layouts for medium screens
   ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 0.8fr;
        gap: 48px;
    }
    
    .hero-title {
        font-size: var(--fs-hero-title);
    }
    
    .image-frame {
        width: 100%;
        max-width: 360px;
        height: 450px;
    }
    
    .about-content {
        grid-template-columns: 1.2fr 1fr;
        gap: 48px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-features {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ====================
   ENHANCED MOBILE LAYOUT
   Optimized for small screens
   ==================== */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 20px;
    }
    @media (max-width: 768px) {
    /* Reorder hero content - Image first, then text */
    .hero-content {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr; /* Override grid */
    }
    
    /* Move image to top */
    .hero-image {
        order: -1; /* This moves it before hero-text */
        margin-bottom:15px;
        margin-top: 15px;
    }
    
    /* Keep text below */
    .hero-text {
        order: 1;
    }
    
    /* Center the image nicely */
    .hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Adjust image frame for mobile top position */
    .image-frame {
        width: 220px;
        height: 280px;
        margin: 0 auto;
    }
    
    /* Adjust floating badges for smaller image */
    .floating-badge {
        font-size: 10px;
        padding: 6px 10px;
        gap: 4px;
    }
    
    .floating-badge.badge-1 {
        top: 20px;
        right: -5px;
    }
    
    .floating-badge.badge-2 {
        bottom: 40px;
        left: -5px;
    }
    
    .badge-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .floating-badge {
        font-size: 9px;
        padding: 5px 8px;
    }
    
    .floating-badge.badge-1 {
        top: 15px;
        right: 0;
    }
    
    .floating-badge.badge-2 {
        bottom: 30px;
        left: 0;
    }
}
    
    :root {
        --section-padding: 60px;
    }
    
    section {
        padding: var(--section-padding) 0;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-label {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hero-title {
        font-size: var(--fs-hero-title);
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: var(--fs-subtitle);
    }
    
    .hero-description {
        font-size: var(--fs-body);
        max-width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        min-height: var(--touch-target);
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 16px;
        width: 100%;
    }
    
    .stat-item {
        text-align: center;
        flex: 1;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Image adjustments */
    .image-frame {
        width: 280px;
        height: 350px;
        margin: 0 auto;
    }
    
    .floating-badge {
        font-size: 11px;
        padding: 8px 12px;
        gap: 6px;
    }
    
    .floating-badge.badge-1 {
        top: 40px;
        right: -10px;
    }
    
    .floating-badge.badge-2 {
        bottom: 60px;
        left: -10px;
    }
    
    .badge-icon {
        font-size: 16px;
    }
    
    /* Section headers */
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    
    .section-title {
        font-size: var(--fs-section-title);
    }
    
    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lead-text {
        font-size: 20px;
    }
    
    .about-text p {
        font-size: var(--fs-body);
    }
    
    .highlight-item {
        padding: 20px;
        gap: 16px;
    }
    
    .highlight-icon {
        font-size: 28px;
    }
    
    .highlight-text h4 {
        font-size: 18px;
    }
    
    .highlight-text p {
        font-size: 14px;
    }
    
    .info-card {
        padding: 24px;
    }
    
    /* Skills section mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 28px 24px;
    }
    
    .category-icon {
        font-size: 28px;
    }
    
    .category-header h3 {
        font-size: 20px;
    }
    
    .skill-item {
        gap: 10px;
    }
    
    .skill-name {
        font-size: 15px;
    }
    
    .skill-tools {
        font-size: 12px;
    }
    
    .skill-bar {
        height: 5px;
    }
    
    /* Projects section mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 24px;
    }
    
    .project-title {
        font-size: 22px;
    }
    
    .project-description {
        font-size: 15px;
    }
    
    .project-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature-item {
        font-size: 13px;
    }
    
    /* Achievements mobile */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .achievement-card {
        padding: 28px 24px;
    }
    
    .achievement-title {
        font-size: 20px;
    }
    
    .achievement-description {
        font-size: 15px;
    }
    
    /* Contact section mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-intro {
        font-size: 16px;
    }
    
    .contact-method {
        padding: 16px;
        gap: 16px;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
    }
    
    .method-text h4 {
        font-size: 15px;
    }
    
    .method-text p {
        font-size: 13px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
    }
    
    .contact-form-wrapper {
        padding: 28px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 14px;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ====================
   EXTRA SMALL DEVICES
   < 480px
   ==================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.125rem, 4vw, 1.375rem);
    }
    
    .image-frame {
        width: 240px;
        height: 300px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .skill-tags {
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* ====================
   ENHANCED MODAL RESPONSIVENESS
   ==================== */
@media (max-width: 1024px) {
    .modal-container {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .gallery-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 16px;
        max-height: 500px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .gallery-item-title {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-container {
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 24px 16px;
    }
    
    .gallery-collage {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
        gap: 12px;
        max-height: 400px;
    }
    
    .gallery-item {
        aspect-ratio: 16 / 9;
    }
    
    .modal-nav {
        padding: 16px;
        gap: 16px;
    }
    
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .modal-counter {
        font-size: 13px;
        min-width: 100px;
    }
    
    /* Lightbox mobile */
    .lightbox-overlay {
        padding: 16px;
    }
    
    #lightboxImage {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .lightbox-close {
        top: 12px;
        right: 12px;
        padding: 10px;
    }
    }

    @media (max-width: 480px) {
    .gallery-collage {
        max-height: none; 
        gap: 10px;
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .gallery-item {
        aspect-ratio: 16 / 9; 
    }
    
    .modal-header,
    .modal-body,
    .modal-nav {
        padding: 12px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .gallery-item-title {
        font-size: 12px;
        padding: 12px;
    }
}

/* ====================
   TOUCH OPTIMIZATIONS
   Better tap targets & interactions
   ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn {
        min-height: var(--touch-target);
        padding: 14px 28px;
    }
    
    .nav-link {
        min-height: var(--touch-target);
        display: flex;
        align-items: center;
    }
    
    .contact-method,
    .social-icon,
    .skill-tag {
        -webkit-tap-highlight-color: rgba(0, 255, 136, 0.2);
    }
    
    /* Remove hover effects on touch */
    .project-card:hover {
        transform: none;
    }
    
    /* Tap to reveal overlay */
    .project-card:active .project-overlay {
        opacity: 1;
    }
    
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    /* Better form inputs on mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
}

/* ====================
   LANDSCAPE MODE FIXES
   For mobile in landscape
   ==================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 0.8fr;
        gap: 32px;
    }
    
    .image-frame {
        width: 240px;
        height: 320px;
    }
    
    .floating-badge {
        display: none;
    }
    
    section {
        padding: 60px 0;
    }
    
    .modal-container {
        max-height: 95vh;
    }
    
    .gallery-collage {
        max-height: 320px;
    }
}

/* ====================
   ACCESSIBILITY ENHANCEMENTS
   ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ====================
   PRINT STYLES
   ==================== */
@media print {
    .navbar,
    .hero-cta,
    .scroll-indicator,
    .floating-badge,
    .contact-form-wrapper,
    .footer,
    .modal-overlay,
    .lightbox-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ====================
   PROGRESSIVE ENHANCEMENT
   For very large screens
   ==================== */
@media (min-width: 1600px) {
    :root {
        --container-width: 1400px;
    }
    
    .hero-title {
        font-size: 90px;
    }
    
    .section-title {
        font-size: 64px;
    }
}

/* ====================
   DARK MODE PREFERENCE SUPPORT
   (Future enhancement)
   ==================== */
@media (prefers-color-scheme: light) {
    /* Keep dark theme - can add light theme toggle later */
}

/* ====================
   HIGH CONTRAST MODE
   ==================== */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
    }
    
    .btn-primary {
        border: 2px solid var(--bg-primary);
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Smooth scrolling for mobile modal */
@media (max-width: 768px) {
    .modal-body {
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--bg-tertiary);
    }
    
    /* Webkit scrollbar styling */
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }
    
    .modal-body::-webkit-scrollbar-track {
        background: var(--bg-tertiary);
        border-radius: 3px;
    }
    
    .modal-body::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }
    
    .modal-body::-webkit-scrollbar-thumb:hover {
        background: var(--primary-light);
    }
    
    /* Add scroll indicator at bottom */
    .gallery-collage::after {
        content: '';
        display: block;
        height: 20px;
        width: 100%;
    }
}

.gallery-showcase {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

/* Animated background gradient */
.gallery-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
    animation: galleryGlow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes galleryGlow {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(25%) scale(1.1);
        opacity: 0.8;
    }
}

/* Gallery wrapper with navigation */
.gallery-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 60px;
}

/* Scroll container */
.gallery-scroll-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
    user-select: none;
}

.gallery-scroll-container:active {
    cursor: grabbing;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Gallery track */
.gallery-track {
    display: flex;
    gap: 32px;
    padding: 8px 0;
    width: max-content;
}

/* Gallery items base */
.gallery-item {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Portrait size (20x25cm ≈ 4:5 aspect ratio) */
.gallery-item.portrait {
    width: 320px;
    height: 400px; /* 4:5 ratio */
}

/* Landscape size (11x14 inches ≈ 11:14 aspect ratio) */
.gallery-item.landscape {
    width: 440px;
    height: 350px; /* ~11:14 ratio */
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 16px 48px rgba(0, 255, 136, 0.3),
                0 0 80px rgba(0, 255, 136, 0.1);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery item info overlay */
.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

.gallery-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--primary);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.gallery-caption {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Navigation buttons */
.gallery-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 100;
}

.gallery-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Progress bar */
.gallery-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
}

.gallery-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.gallery-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ==========================================
   RESPONSIVE DESIGN FOR GALLERY
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .gallery-item.portrait {
        width: 280px;
        height: 350px;
    }
    
    .gallery-item.landscape {
        width: 400px;
        height: 320px;
    }
    
    .gallery-track {
        gap: 24px;
    }
    
    .gallery-nav-btn {
        width: 48px;
        height: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .gallery-scroll-wrapper {
        gap: 12px;
    }
    
    .gallery-item.portrait {
        width: 240px;
        height: 300px;
    }
    
    .gallery-item.landscape {
        width: 340px;
        height: 270px;
    }
    
    .gallery-track {
        gap: 16px;
    }
    
    .gallery-nav-btn {
        width: 44px;
        height: 44px;
        display: none; /* Hide nav buttons on mobile, use swipe */
    }
    
    .gallery-item-info {
        padding: 16px;
    }
    
    .gallery-caption {
        font-size: 12px;
    }
    
    /* Show info by default on mobile (no hover) */
    .gallery-item-info {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, transparent 100%);
    }
    
    .gallery-progress {
        margin-top: 32px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .gallery-item.portrait {
        width: 200px;
        height: 250px;
    }
    
    .gallery-item.landscape {
        width: 280px;
        height: 220px;
    }
    
    .gallery-track {
        gap: 12px;
    }
    
    .gallery-item-info {
        padding: 12px;
    }
    
    .gallery-tag {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    /* Always show info on touch devices */
    .gallery-item-info {
        transform: translateY(0);
    }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .gallery-item.portrait {
        width: 180px;
        height: 225px;
    }
    
    .gallery-item.landscape {
        width: 260px;
        height: 200px;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-showcase::before {
        animation: none;
    }
    
    .gallery-scroll-container {
        scroll-behavior: auto;
    }
    
    .gallery-item,
    .gallery-item img,
    .gallery-item-info {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .gallery-item {
        border-width: 2px;
    }
    
    .gallery-tag {
        border-width: 2px;
    }
}
/*  CAROUSEL STYLE */

.gallery-carousel {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

/* Animated background effect */
.gallery-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.04) 0%, transparent 70%);
    animation: carouselGlow 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes carouselGlow {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(20%) scale(1.1);
        opacity: 0.8;
    }
}

/* Carousel Container */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    min-height: 600px;
}

/* Carousel Wrapper - Controls overflow */
.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

/* Carousel Track - Holds all slides */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual Slide - Takes full width */
.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Image Wrapper - Contains the image and info */
.slide-image-wrapper {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4),
                0 0 80px rgba(0, 255, 136, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

/* Portrait size (20x25cm ≈ 4:5 aspect ratio) */
.slide-image-wrapper.portrait {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 5;
    height: auto;
}

/* Landscape size (11x14 inches ≈ 11:14 aspect ratio) */
.slide-image-wrapper.landscape {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 5 / 4;
    height: auto;
}

/* Active slide effect */
.carousel-slide.active .slide-image-wrapper {
    border-color: var(--primary);
    box-shadow: 0 20px 80px rgba(0, 255, 136, 0.3),
                0 0 120px rgba(0, 255, 136, 0.15);
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-slide.active .slide-image-wrapper img {
    transform: scale(1.02);
}

/* Slide Info Overlay */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, 
        rgba(10, 14, 26, 0.98) 0%, 
        rgba(10, 14, 26, 0.85) 50%,
        transparent 100%);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.slide-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.slide-caption {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Navigation Arrows */
.carousel-arrow {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    z-index: 100;
    position: relative;
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
}

.carousel-arrow:active:not(:disabled) {
    transform: scale(1.05);
}

.carousel-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: scale(0.9);
}

.carousel-arrow svg {
    width: 32px;
    height: 32px;
}

/* Arrow pulse animation */
@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.carousel-arrow:not(:disabled) {
    animation: arrowPulse 2s ease-in-out infinite;
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 40px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* Counter */
.carousel-counter {
    text-align: center;
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.carousel-counter #currentSlide {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .carousel-container {
        min-height: 500px;
    }
    
    .slide-image-wrapper.portrait {
        max-width: 420px;
    }
    
    .slide-image-wrapper.landscape {
        max-width: 600px;
    }
    
    .carousel-arrow {
        width: 56px;
        height: 56px;
    }
    
    .slide-caption {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .carousel-container {
        gap: 12px;
        min-height: 450px;
    }
    
     .carousel-arrow {
        display: none !important;   }

    .slide-image-wrapper.portrait {
        max-width: 340px;
    }
    
    .slide-image-wrapper.landscape {
        max-width: 480px;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 200;
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
    
    .carousel-slide {
        padding: 10px;
    }
    
    .slide-info {
        padding: 20px;
    }
    
    .slide-tag {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .slide-caption {
        font-size: 14px;
    }
    
    .pagination-dot {
        width: 10px;
        height: 10px;
    }
    
    .pagination-dot.active {
        width: 30px;
    }
    
    .carousel-counter {
        font-size: 16px;
    }
    
    .carousel-counter #currentSlide {
        font-size: 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .carousel-container {
        min-height: 380px;
    }
    
    .slide-image-wrapper.portrait {
        max-width: 280px;
    }
    
    .slide-image-wrapper.landscape {
        max-width: 380px;
    }
    
    .carousel-arrow {
        width: 44px;
        height: 44px;
    }
    
    .carousel-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .slide-info {
        padding: 16px;
    }
    
    .slide-caption {
        font-size: 13px;
    }
    
    .carousel-pagination {
        gap: 8px;
        margin-top: 24px;
    }
    
    .pagination-dot {
        width: 8px;
        height: 8px;
    }
    
    .pagination-dot.active {
        width: 24px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .carousel-arrow:not(:disabled) {
        animation: none; /* Remove pulse on touch devices */
    }
    
    /* Enable swipe gesture indicator */
    .carousel-wrapper::after {
        content: '← Swipe →';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 255, 136, 0.9);
        color: var(--bg-primary);
        padding: 12px 24px;
        border-radius: 24px;
        font-size: 14px;
        font-weight: 700;
        opacity: 0;
        animation: swipeHint 3s ease-in-out 1s;
        pointer-events: none;
        z-index: 150;
    }
    
    @keyframes swipeHint {
        0%, 100% {
            opacity: 0;
        }
        10%, 90% {
            opacity: 1;
        }
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .carousel-container {
        min-height: 350px;
    }
    
    .slide-image-wrapper.portrait {
        max-width: 250px;
    }
    
    .slide-image-wrapper.landscape {
        max-width: 400px;
    }
    
    .slide-info {
        padding: 12px 20px;
    }
    
    .slide-caption {
        font-size: 12px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-carousel::before {
        animation: none;
    }
    
    .carousel-track {
        transition: transform 0.2s linear;
    }
    
    .carousel-arrow:not(:disabled) {
        animation: none;
    }
    
    .slide-image-wrapper,
    .slide-image-wrapper img {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .slide-image-wrapper {
        border-width: 3px;
    }
    
    .carousel-arrow {
        border-width: 3px;
    }
    
    .slide-tag {
        border-width: 2px;
    }
}

/* ==========================================
   CUSTOM ALERT MODAL
   Modern & Creative Design
   ========================================== */

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.custom-alert-modal {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 40px 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6),
                0 0 120px rgba(0, 255, 136, 0.15);
    transform: scale(0.8) translateY(40px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-alert-overlay.active .custom-alert-modal {
    transform: scale(1) translateY(0);
}

/* Close Button */
.custom-alert-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.custom-alert-close:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

/* Icon Container */
.custom-alert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes iconPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Icon Types */
.custom-alert-icon.success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 204, 109, 0.1) 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

.custom-alert-icon.error {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 87, 33, 0.1) 100%);
    border: 2px solid var(--accent);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
}

.custom-alert-icon.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 173, 0, 0.1) 100%);
    border: 2px solid #ffc107;
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.4);
}

.custom-alert-icon svg {
    width: 48px;
    height: 48px;
}

.custom-alert-icon.success svg {
    color: var(--primary);
}

.custom-alert-icon.error svg {
    color: var(--accent);
}

.custom-alert-icon.warning svg {
    color: #ffc107;
}

/* Animated checkmark particles */
.custom-alert-icon::before,
.custom-alert-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid;
    animation: ripple 1.5s ease-out infinite;
}

.custom-alert-icon.success::before,
.custom-alert-icon.success::after {
    border-color: var(--primary);
}

.custom-alert-icon.error::before,
.custom-alert-icon.error::after {
    border-color: var(--accent);
}

.custom-alert-icon::after {
    animation-delay: 0.5s;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Content */
.custom-alert-content {
    text-align: center;
    margin-bottom: 32px;
    animation: slideUp 0.5s ease 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-alert-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.custom-alert-title.success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.custom-alert-title.error {
    color: var(--accent);
}

.custom-alert-title.warning {
    color: #ffc107;
}

.custom-alert-message {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Action Button */
.custom-alert-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.5px;
    animation: slideUp 0.5s ease 0.4s both;
}

.custom-alert-button.success {
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
}

.custom-alert-button.success:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.6);
}

.custom-alert-button.error {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.custom-alert-button.error:hover {
    background: #ff8563;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.6);
}

.custom-alert-button.warning {
    background: #ffc107;
    color: var(--bg-primary);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

.custom-alert-button.warning:hover {
    background: #ffcd38;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.6);
}

.custom-alert-button:active {
    transform: translateY(-1px);
}

/* Confetti effect for success */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(300px) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================== 
   RESPONSIVE DESIGN FOR ALERT MODAL
   ========================================== */

@media (max-width: 768px) {
    .custom-alert-modal {
        padding: 40px 32px 32px;
        max-width: 420px;
    }
    
    .custom-alert-icon {
        width: 70px;
        height: 70px;
    }
    
    .custom-alert-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .custom-alert-title {
        font-size: 24px;
    }
    
    .custom-alert-message {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .custom-alert-overlay {
        padding: 16px;
    }
    
    .custom-alert-modal {
        padding: 36px 24px 28px;
        border-radius: 20px;
    }
    
    .custom-alert-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .custom-alert-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .custom-alert-title {
        font-size: 22px;
    }
    
    .custom-alert-message {
        font-size: 14px;
    }
    
    .custom-alert-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ==========================================
   ENHANCED MOBILE CAROUSEL TRANSITIONS
   ========================================== */

/* Base carousel track - smoother easing for mobile */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Mobile-specific smooth transitions */
@media (max-width: 768px) {
    .carousel-track {
        /* Smoother, more natural easing for touch devices */
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Add smooth momentum effect */
    .carousel-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Enhance slide transitions */
    .carousel-slide {
        transition: opacity 0.4s ease;
    }
    
    /* Fade effect for smoother perception */
    .carousel-slide:not(.active) {
        opacity: 0.3;
    }
    
    .carousel-slide.active {
        opacity: 1;
    }
}

/* ==========================================
   ENHANCED ARROW VISIBILITY
   ========================================== */

/* Increase base arrow visibility */
.carousel-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(26, 31, 53, 0.95); 
    backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 255, 136, 0.4); 
    color: var(--text-primary); 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    z-index: 100;
    position: relative;
    opacity: 0.6; 
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    opacity: 0.6;
}

.carousel-arrow:disabled {
    opacity: 0.15; 
    cursor: not-allowed;
    transform: scale(0.9);
    background: rgba(26, 31, 53, 0.6);
}

/* Mobile arrow enhancements */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 30px;
        height: 30px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 200;
        background: rgba(10, 14, 26, 0.92); 
        border: 2px solid rgba(0, 255, 136, 0.5);
        opacity: 0.30; 
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6); 
    }
    
    .carousel-arrow.prev {
        left: 12px;
    }
    
    .carousel-arrow.next {
        right: 12px;
    }
    
    /* Pulsing animation for mobile arrows */
    .carousel-arrow:not(:disabled) {
        animation: mobilePulse 2.5s ease-in-out infinite;
    }
    
    @keyframes mobilePulse {
        0%, 100% {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 
                        0 0 0 0 rgba(0, 255, 136, 0);
        }
        50% {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 
                        0 0 20px rgba(0, 255, 136, 0.4);
        }
    }
    
    /* Touch feedback */
    .carousel-arrow:active:not(:disabled) {
        transform: translateY(-50%) scale(0.92);
        opacity: 1;
        background: rgba(0, 255, 136, 0.2);
    }
    
    .carousel-arrow svg {
        width: 15px;
        height: 15px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    }
}

/* Extra small mobile - even more prominent arrows */
@media (max-width: 480px) {
    .carousel-arrow {
        width: 26px;
        height: 26px;
        opacity: 0.60;
        border-width: 2.5px;
    }
    
    .carousel-arrow.prev {
        left: 8px;
    }
    
    .carousel-arrow.next {
        right: 8px;
    }
    
    .carousel-arrow svg {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================
   TOUCH INTERACTION IMPROVEMENTS
   ========================================== */

/* Better touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
    .carousel-arrow {
        /* Ensure minimum touch target size */
        min-width: 48px;
        min-height: 48px;
        opacity: 0.4;
    }
    
    /* Remove hover animation, use active state */
    .carousel-arrow:not(:disabled) {
        animation: none;
    }
    
    /* Clear active/pressed state */
    .carousel-arrow:active {
        background: rgba(0, 255, 136, 0.25);
        border-color: var(--primary);
        transform: scale(0.95);
    }
    
    /* Smooth slide transition for touch swipe */
    .carousel-track {
        transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    }
    
    /* Add visual feedback during swipe */
    .carousel-wrapper {
        cursor: grab;
    }
    
    .carousel-wrapper:active {
        cursor: grabbing;
    }
}

/* ==========================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ========================================== */

/* Landscape mode on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .carousel-arrow {
        width: 20px;
        height: 20px;
        opacity: 0.9;
    }
    
    .carousel-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* High contrast mode - ensure arrows are visible */
@media (prefers-contrast: high) {
    .carousel-arrow {
        border-width: 3px;
        opacity: 1;
        background: rgba(10, 14, 26, 0.98);
    }
    
    .carousel-arrow:disabled {
        opacity: 0.5;
    }
}

/* Reduced motion - faster transitions */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: transform 0.2s linear;
    }
    
    .carousel-arrow:not(:disabled) {
        animation: none;
    }
}

/* ==========================================
   SMOOTH SLIDE INDICATOR (OPTIONAL)
   ========================================== */

/* Add subtle slide change indicator for mobile */
@media (max-width: 768px) {
    .carousel-slide.active .slide-image-wrapper {
        animation: slideIn 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}