/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 18, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #00ffea;
    z-index: 1000;
    transition: all 0.6s ease;
}

body.light-mode .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #ddd;
}

body.model-active .header {
    background: rgba(254, 254, 254, 0.9);
    border-bottom: 1px solid #e0e0e0;
}

body.light-mode.model-active .header {
    background: rgba(250, 247, 242, 0.9);
    border-bottom: 1px solid #e0e0e0;
}

body.model-active:not(.light-mode) .header {
    background: rgba(26, 26, 26, 0.9);
    border-bottom: 1px solid #d4af37;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #00ffea;
    text-decoration: none;
    transition: all 0.6s ease;
}

body.light-mode .logo {
    color: #0066cc;
}

body.model-active .logo {
    font-family: 'Cormorant Garamond', serif;
    color: #c0a080;
    font-style: italic;
}

body.model-active:not(.light-mode) .logo {
    color: #d4af37;
}

/* Night/Light Mode Toggle */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 234, 0.1);
    border: 2px solid #00ffea;
    border-radius: 25px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

body.light-mode .mode-toggle {
    background: rgba(0, 100, 150, 0.1);
    border-color: #0066cc;
}

body.model-active .mode-toggle {
    background: rgba(192, 160, 128, 0.1);
    border-color: #c0a080;
}

.mode-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mode-slider {
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: #00ffea;
    border-radius: 50%;
    transition: all 0.3s ease;
}

body.light-mode .mode-slider::before {
    transform: translateX(25px);
    background: #ffd700;
}

body.model-active .mode-slider::before {
    background: #c0a080;
}

body.light-mode.model-active .mode-slider::before {
    background: #d4af37;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    background: rgba(0, 255, 234, 0.1);
    border: 2px solid #00ffea;
    position: relative;
    overflow: hidden;
    transition: all 0.6s ease;
    border-radius: 30px;
}

body.light-mode .tab-switcher {
    background: rgba(0, 100, 150, 0.1);
    border-color: #0066cc;
}

body.model-active .tab-switcher {
    background: rgba(192, 160, 128, 0.1);
    border-color: #c0a080;
}

.tab-button {
    padding: 15px 30px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.6s ease;
    color: #00ffea;
    font-family: inherit;
    white-space: nowrap;
    min-width: 150px;
}

body.light-mode .tab-button {
    color: #0066cc;
}

body.model-active .tab-button {
    color: #666;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

.tab-button.active {
    color: #000012;
}

body.light-mode .tab-button.active {
    color: #ffffff;
}

body.model-active .tab-button.active {
    color: #fefefe;
}

.tab-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #00ffea, #ff00ea);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border-radius: 26px;
    margin: 4px;
    height: calc(100% - 8px);
}

body.light-mode .tab-indicator {
    background: linear-gradient(135deg, #0066cc, #0099ff);
}

body.model-active .tab-indicator {
    background: linear-gradient(135deg, #c0a080, #d4af37);
}

/* About Me with Picture */
.about-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.about-content {
    background: rgba(0, 255, 234, 0.05);
    border: 1px solid #00ffea;
    padding: 3rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.8;
}

body.light-mode .about-content {
    background: rgba(0, 100, 150, 0.05);
    border-color: #0066cc;
    color: #333;
}


body.model-active .about-content {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e0e0e0;
    color: #333;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

body.model-active:not(.light-mode) .about-content {
    background: rgba(26, 26, 26, 0.8);
    border-color: #d4af37;
    color: #d4af37;
}

.about-image {
    width: 500px;
    height: 335px;
    border-radius: 10px;
    border: 2px solid #00ffea;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.about-image .dark-image {
    opacity: 1;
}

.about-image .light-image {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

body.light-mode .about-image .dark-image {
    opacity: 0;
}

body.light-mode .about-image .light-image {
    opacity: 1;
}

body.light-mode .about-image {
    border-color: #0066cc;
}

body.model-active .about-image {
    border-color: #c0a080;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 234, 0.3);
}

body.light-mode .about-image:hover {
    box-shadow: 0 10px 30px rgba(0, 100, 150, 0.3);
}

body.model-active .about-image:hover {
    box-shadow: 0 10px 30px rgba(192, 160, 128, 0.3);
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: rgba(0, 0, 18, 0.9);
    border: 2px solid #00ffea;
    padding: 2rem;
    transition: all 0.3s ease;
    clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
    position: relative;
    overflow: hidden;
    text-align: center;
}

body.light-mode .experience-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: #0066cc;
    color: #333;
}

body.model-active .experience-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    clip-path: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.company-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
}

.company-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    position: relative;
    overflow: hidden;
}

.company-icon.blackrock {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border: 3px solid #00ffea;
}

body.light-mode .company-icon.blackrock {
    border-color: #0066cc;
}

body.model-active .company-icon.blackrock {
    border-color: #c0a080;
}

.company-icon.microsoft {
    background: linear-gradient(135deg, #00BCF2 0%, #0078D4 100%);
    border: 3px solid #00ffea;
}

body.light-mode .company-icon.microsoft {
    border-color: #0066cc;
}

body.model-active .company-icon.microsoft {
    border-color: #c0a080;
}

.company-icon.uw {
    background: linear-gradient(135deg, #4B2E83 0%, #85754D 100%);
    border: 3px solid #00ffea;
}

body.light-mode .company-icon.uw {
    border-color: #0066cc;
}

body.model-active .company-icon.uw {
    border-color: #c0a080;
}

.experience-company {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff00ea;
    margin-bottom: 0.5rem;
}

body.light-mode .experience-company {
    color: #0099ff;
}

body.model-active .experience-company {
    color: #8b7355;
    font-family: 'Cormorant Garamond', serif;
}

.experience-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ffea;
    margin-bottom: 0.5rem;
}

body.light-mode .experience-title {
    color: #0066cc;
}

body.model-active .experience-title {
    color: #1f2937;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.experience-team {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1rem;
    font-style: italic;
}

body.light-mode .experience-team {
    color: #666;
}

body.model-active .experience-team {
    color: #6b7280;
    font-family: 'Cormorant Garamond', serif;
}

.experience-summary {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

body.light-mode .experience-summary {
    color: #555;
}

body.model-active .experience-summary {
    color: #6b7280;
    font-family: 'Cormorant Garamond', serif;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(0, 0, 18, 0.9);
    border: 2px solid #00ffea;
    padding: 2rem;
    transition: all 0.3s ease;
    clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
    position: relative;
    overflow: hidden;
    text-align: left;
}

body.light-mode .project-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: #0066cc;
    color: #333;
}

body.model-active .project-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    clip-path: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-card::after {
    content: '🌹';
    position: absolute;
    bottom: 15px;
    right: 15px;
    transform: scale(0);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 10;
}

body:not(.model-active) .project-card:hover::after {
    transform: scale(1);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 234, 0.3);
}

body.light-mode .project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 100, 150, 0.3);
}

body.model-active .project-card:hover {
    box-shadow: 0 20px 40px rgba(192, 160, 128, 0.3);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00ffea;
}

body.light-mode .project-title {
    color: #0066cc;
}

body.model-active .project-title {
    color: #1f2937;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.project-description {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

body.light-mode .project-description {
    color: #666;
}

body.model-active .project-description {
    color: #6b7280;
    font-family: 'Cormorant Garamond', serif;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    background: linear-gradient(45deg, #00ffea, #ff00ea);
    color: #000012;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

body.light-mode .tech-badge {
    background: linear-gradient(45deg, #0066cc, #0099ff);
    color: white;
}

body.model-active .tech-badge {
    background: linear-gradient(45deg, #c0a080, #d4af37);
    color: white;
    font-family: 'Cormorant Garamond', serif;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #ff00ea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #ff00ea;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.light-mode .project-link {
    color: #0099ff;
    border-color: #0099ff;
}

.project-link:hover {
    background: #ff00ea;
    color: #000012;
}

body.light-mode .project-link:hover {
    background: #0099ff;
    color: white;
}

body.model-active .project-link {
    color: #c0a080;
    border-color: #c0a080;
    border-radius: 25px;
    font-family: 'Cormorant Garamond', serif;
}

body.model-active .project-link:hover {
    background: #c0a080;
    color: white;
}

/* Technologies Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.tech-item {
    background: rgba(0, 0, 18, 0.8);
    border: 2px solid #ff00ea;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.light-mode .tech-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: #0099ff;
    color: #333;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 0, 234, 0.4);
}

body.light-mode .tech-item:hover {
    box-shadow: 0 8px 25px rgba(0, 150, 255, 0.4);
}

body.model-active .tech-item {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(192, 160, 128, 0.1);
}

body.model-active:not(.light-mode) .tech-item {
    background: rgba(26, 26, 26, 0.8);
    border-color: #d4af37;
    color: #d4af37;
}

body.model-active .tech-item:hover {
    box-shadow: 0 8px 25px rgba(192, 160, 128, 0.3);
}

.tech-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    object-fit: contain;
    display: block;
}

.tech-icon.emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    width: auto;
    height: auto;
}

/* Sliding Gallery */
.gallery-container {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    border-radius: 15px;
    height: 450px;
}

.gallery {
    display: flex;
    width: calc(365px * 16);
    animation: infiniteScroll 40s linear infinite;
}

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

.gallery-item {
    min-width: 350px;
    height: 450px;
    margin-right: 15px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid #c0a080;
    flex-shrink: 0;
}

body.model-active:not(.light-mode) .gallery-item {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #d4af37;
    border-color: #d4af37;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(192, 160, 128, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Makes it crop cleanly */
  object-position: center; /* Keeps the subject centered */
  display: block;
}

/* Connect Section */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.connect-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 18, 0.8);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

body:not(.model-active) .connect-link {
    background: rgba(0, 0, 18, 0.8);
    border-color: #00ffea;
    color: #00ffea;
}

body.light-mode:not(.model-active) .connect-link {
    background: rgba(255, 255, 255, 0.9);
    border-color: #0066cc;
    color: #0066cc;
}

.connect-link:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

body.model-active .connect-link {
    background: white;
    border-color: #c0a080;
    color: #8b7355;
    font-family: 'Cormorant Garamond', serif;
}

body.model-active:not(.light-mode) .connect-link {
    background: rgba(26, 26, 26, 0.8);
    border-color: #d4af37;
    color: #d4af37;
}

body.model-active .connect-link:hover {
    border-color: #c0a080;
    background: #c0a080;
    color: white;
}

body.model-active:not(.light-mode) .connect-link:hover {
    background: #d4af37;
    color: #1a1a1a;
}