/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Main color palette - Purple/Lavender theme */
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --accent-color: #c084fc;
    --secondary-color: #ec4899;
    
    /* Neutral colors - Light Mode */
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1e;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    
    /* Additional colors */
    --border-color: #e5e7eb;
    --shadow: rgba(139, 92, 246, 0.1);
    --shadow-hover: rgba(139, 92, 246, 0.2);
    
    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Dark Mode */
[data-theme="dark"] {
    --light-bg: #0f0f1e;
    --card-bg: #1a1a2e;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-light: #ffffff;
    --nav-bg: rgba(26, 26, 46, 0.95);
    --border-color: #374151;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(139, 92, 246, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.glitch {
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: var(--spacing-lg) 2rem;
}

.bg-alt {
    background: var(--light-bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.leadership-grid,
.ambassador-grid,
.hobbies-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
}

.leadership-grid > .bento-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Bento Cards */
.bento-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card.large {
    grid-column: span 2;
}

.bento-card.large-horizontal {
    grid-column: span 2;
}

.bento-card.tall {
    grid-row: span 2;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-card.accent {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    color: white;
}

.bento-card.accent h3,
.bento-card.accent p {
    color: white;
}

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

.bento-card.accent .card-icon {
    color: white;
}

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

.bento-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.bento-card strong {
    color: var(--text-primary);
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.tech-tag:hover {
    transform: scale(1.05);
}

/* Hobbies List */
.hobbies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.hobby-item:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.hobby-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hobby-item span {
    color: var(--text-primary);
}

.bento-card.accent .hobby-item {
    background: rgba(255, 255, 255, 0.2);
}

.bento-card.accent .hobby-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bento-card.accent .hobby-item i {
    color: white;
}

/* Ambassador Highlights */
.ambassador-highlights {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius-sm);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Ambassador Card Button */
.ambassador-expandable,
.leadership-expandable {
    position: relative;
    display: flex;
    flex-direction: column;
}

.leadership-expandable p {
    flex-grow: 1;
    margin-bottom: 0;
}

.ambassador-expandable {
    position: relative;
}

.expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.expand-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.expand-button i {
    transition: transform 0.3s ease;
}

.expand-button:hover i {
    transform: translateX(5px);
}

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

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10001;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10002;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 2rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

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

.experience-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.experience-period {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.experience-role {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.experience-item li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.highlight-item span {
    color: var(--text-primary);
}

/* Gallery Cards */
.gallery-card {
    height: 250px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-card.tall {
    height: 520px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-image-full {
    object-fit: contain;
    background: var(--bg-secondary);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    color: white;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.gallery-note {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
    font-style: italic;
}

.cert-description {
    color: var(--text-secondary);
}

/* Contact Section */
.bento-card.large p {
    color: var(--text-secondary);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.social-card h3 {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-link:hover i {
    color: white;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

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

/* Responsive Design */

/* Large Desktops (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
}

/* Standard Desktops and Laptops (1024px - 1439px) */
@media (max-width: 1439px) {
    .container {
        max-width: 1200px;
    }
}

/* Tablets and Small Laptops (768px - 1023px) */
@media (max-width: 1024px) {
    .bento-card.large,
    .bento-card.large-horizontal,
    .bento-card.wide {
        grid-column: span 1;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .bento-grid {
        gap: 1.25rem;
    }
    
    .tech-grid,
    .leadership-grid,
    .ambassador-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Tablets Portrait (481px - 767px) */
@media (max-width: 768px) {
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        left: auto;
        top: 70px;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: -2px 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 0.85rem 1.5rem;
        width: 100%;
        display: block;
    }
    
    .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0.5rem;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .nav-link.active::after {
        width: 60%;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 80%;
        max-width: 300px;
        text-align: center;
    }
    
    .section {
        padding: 2.5rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bento-card {
        padding: 1.75rem;
    }
    
    .bento-card.tall {
        grid-row: span 1;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .bento-card h3 {
        font-size: 1.3rem;
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-card,
    .gallery-card.tall {
        height: 200px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .gallery-card.wide {
        grid-column: span 1;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        padding: 0.875rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
}

/* Mobile Landscape and Large Phones (481px - 640px) */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Mobile Phones (320px - 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.875rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-right: 0.375rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .scroll-indicator {
        font-size: 0.8rem;
    }
    
    .section {
        padding: var(--spacing-md) 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .bento-card {
        padding: 1.5rem;
    }
    
    .bento-card h3 {
        font-size: 1.2rem;
    }
    
    .bento-card p {
        font-size: 0.95rem;
    }
    
    .card-icon {
        font-size: 1.8rem;
    }
    
    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 90%;
    }
    
    .hobby-item,
    .highlight-item {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .hobby-item i,
    .highlight-item i {
        font-size: 1rem;
    }
    
    .social-link {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .social-link i {
        font-size: 1.3rem;
    }
    
    .contact-email {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .gallery-card,
    .gallery-card.tall {
        height: 180px;
    }
    
    .gallery-placeholder i {
        font-size: 2.5rem;
    }
}

/* Very Small Mobile Devices (below 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .bento-card {
        padding: 1.25rem;
    }
    
    .bento-card h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* AI Chat Widget */
#ai-chat-widget {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 1rem;
    pointer-events: none;
}

.ai-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.5rem;
    pointer-events: auto;
}

.ai-chat-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.ai-chat-panel {
    width: 380px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    z-index: 1000;
}

.ai-chat-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    visibility: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
    #ai-chat-widget {
        right: 1rem;
        bottom: 1rem;
    }

    .ai-chat-btn {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .ai-chat-panel {
        width: calc(100vw - 2rem);
        height: calc(100vh - 8rem);
    }
}
