/* Font Face Declaration */
@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/ProximaNova-Regular.woff2') format('woff2'),
         url('../fonts/ProximaNova-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/ProximaNova-Bold.woff2') format('woff2'),
         url('../fonts/ProximaNova-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}


/* Solar Car Table Styles */
.solar-table-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 24px var(--shadow-primary);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.solar-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono, 'SF Mono', monospace);
    background: transparent;
}

.solar-table thead {
    background: var(--bg-accent);
}

.solar-table th, .solar-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
}

.solar-table th {
    color: var(--text-accent);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-accent);
}

.solar-table tr {
    transition: background 0.2s;
}

.solar-table tbody tr:nth-child(even) {
    background: var(--bg-tertiary);
}

.solar-table tbody tr:hover {
    background: var(--bg-accent-hover);
}

.solar-table td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.solar-table tbody tr:last-child td {
    border-bottom: none;
}

/* Theme transition helper */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *:before,
.theme-transitioning *:after {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease !important;
    transition-delay: 0s !important;
}

/* CSS Custom Properties for Theming */
:root {
    /* Dark Theme Colors (Default) */
    --bg-primary: #0a192f;
    --bg-secondary: #172a45;
    --bg-tertiary: #233554;
    --bg-accent: rgba(100, 255, 218, 0.05);
    --bg-accent-hover: rgba(100, 255, 218, 0.1);
    --bg-accent-active: rgba(100, 255, 218, 0.2);
    
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --text-muted: #64768b;
    --text-accent: #64ffda;
    
    --border-primary: #233554;
    --border-accent: #64ffda;
    
    --shadow-primary: rgba(0, 0, 0, 0.3);
    --shadow-accent: rgba(100, 255, 218, 0.2);
    
    /* Transition */
    --theme-transition: all 0.3s ease;
}

/* Light Theme Colors */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;      /* Slightly warmer light gray */
    --bg-tertiary: #e2e8f0;
    --bg-accent: rgba(99, 102, 241, 0.06);      /* Softer indigo accent */
    --bg-accent-hover: rgba(99, 102, 241, 0.08); /* Subtle hover */
    --bg-accent-active: rgba(99, 102, 241, 0.12);
    
    --text-primary: #0f172a;      /* Very dark slate */
    --text-secondary: #334155;    /* Medium slate */
    --text-muted: #64748b;        /* Light slate */
    --text-accent: #6366f1;       /* Indigo accent */
    
    --border-primary: #d1d5db;    /* Neutral gray border */
    --border-accent: #6366f1;     /* Indigo accent border */
    
    --shadow-primary: rgba(0, 0, 0, 0.05);
    --shadow-accent: rgba(99, 102, 241, 0.15);
}

/* Theme Toggle Button Styles */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--bg-accent);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--theme-transition);
    color: var(--text-accent);
}

.theme-toggle:hover {
    background: var(--bg-accent-hover);
    border-color: var(--border-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-accent);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: var(--theme-transition);
}

.theme-toggle .light-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .light-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .dark-icon {
    display: none;
}

/* Responsive theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* Split layout styles */
.split-layout {
    display: flex;
    min-height: 100vh;
}

.header-content {
    flex-direction: column;
    align-items: normal;
    justify-content: flex-start;
    width: 350px;
    min-width: 240px;
    max-width: 400px;
    border-right: 1px solid var(--border-primary);
    line-height: 1.6;
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    gap: 2.2rem;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    background: var(--bg-primary);
    transition: var(--theme-transition);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-primary);
    padding: 0 2rem;
    position: relative;
    transition: var(--theme-transition);
}

/* About section styles */
.about-content {
    max-width: 900px;
    color: var(--text-secondary);
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-tech {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0.5rem 1rem;
    padding: 0;
    margin: 1.5rem 0 3rem;
    overflow: hidden;
    list-style: none;
}

.tech-list li {
    position: relative;
    padding-left: 1.25rem;
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.tech-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--text-accent);
    font-size: 0.875rem;
    line-height: 1.5;
}

.about-personal {
    margin-top: 1rem;
    line-height: 1.7;
}

/* Experience section styles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.experience-entry {
    margin-bottom: 4rem;
    padding: 2rem 1.5rem;
    position: relative;
    border-radius: 12px;
    transition: var(--theme-transition);
    margin-left: -1rem;
    margin-right: -1rem;
    max-width: 900px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    box-shadow: 0 2px 8px var(--shadow-primary);
}

.experience-entry:hover {
    background-color: var(--bg-accent-hover);
    transform: translateX(0.5rem) translateY(-2px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 25px var(--shadow-accent);
}

.experience-header {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.experience-period {
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.experience-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-company {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.title-company h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: var(--theme-transition);
}

.title-company a {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--theme-transition);
    font-weight: 600;
}

.title-company a:hover {
    color: var(--text-accent);
    text-decoration: underline;
    opacity: 0.8;
}

.experience-description {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.875rem;
    transition: var(--theme-transition);
}

.experience-title-group ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0 1.5rem 0;
}

.experience-title-group li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
    transition: var(--theme-transition);
}

.experience-title-group li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--text-accent);
    font-weight: bold;
    transition: var(--theme-transition);
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-left: 140px;
}

.tech-tag {
    color: var(--text-accent);
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    padding: 0.35rem 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 3px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

[data-theme="light"] .tech-tag {
    color: var(--text-accent);
    background-color: var(--bg-accent);
    border: 1px solid var(--border-accent);
}

.tech-tag:hover {
    color: var(--text-accent);
}

[data-theme="light"] .tech-tag:hover {
    color: var(--text-primary);
}

.tech-tag::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #64ffda;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.tech-tag:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: static;
    bottom: 0;
    width: 100%;
}
.svg-logo {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.logo-light { display: none; }
.logo-dark { display: flex; }

[data-theme="light"] .logo-light { display: flex; }
[data-theme="light"] .logo-dark { display: none; }

.svg-logo:hover {
    transform: scale(1.3);
}

/* Profile image and logo group styles */
.logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
     margin-top: 2rem;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #00c3ff;
    background: #eee;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.06);
}
/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

/* Logo styles */
/* Modern header and logo styles */
.logo {
    font-family: 'Proxima Nova', 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #00c3ff 0%, #29ffc6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 2rem;
    user-select: none;
    transition: background 0.3s;
}
.logo-initial {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: inherit;
    font-family: inherit;
}
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Proxima Nova', 'Montserrat', 'Segoe UI', Arial, sans-serif;
    text-align: center;
    user-select: none;
}

.logo-initial {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    transition: var(--theme-transition);
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-accent);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    font-family: var(--font-mono, 'SF Mono', monospace);
}
.logo-rest {
    font-weight: 300;
    color: inherit;
    font-family: inherit;
}

/* Header styles */
header {
    background: linear-gradient(90deg, #f8fafc 60%, #e0f7fa 100%);
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.2rem 2rem 1.2rem 2rem;
    gap: 1.2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

nav ul li {
    display: block;
}

nav ul li a {
    font-family: var(--font-mono, 'SF Mono', monospace);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    transition: var(--theme-transition);
}
nav ul li a:hover {
    color: var(--text-accent);
    transform: translateX(4px);
}

nav ul li a.active {
    color: var(--text-accent);
    font-weight: 700;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: #333;
    margin-bottom: 1rem;
}

/* Footer styles */
footer {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem;
    position: static;
    bottom: 0;
    width: 100%;
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 0.75rem;
    transition: var(--theme-transition);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
    transition: var(--theme-transition);
}

.social-links a:hover svg {
    fill: var(--text-accent);
}

/* Mobile-First Responsive Design */

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--bg-accent);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--theme-transition);
    color: var(--text-accent);
}

.mobile-nav-toggle:hover {
    background: var(--bg-accent-hover);
    border-color: var(--border-accent);
    transform: scale(1.05);
}

.mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
    transition: var(--theme-transition);
}

/* Collapsible Section Styles */
.collapsible-section {
    margin-bottom: 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.collapsible-header {
    padding: 1rem 1.5rem;
    background: var(--bg-accent);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--theme-transition);
    border-bottom: 1px solid var(--border-primary);
}

.collapsible-header:hover {
    background: var(--bg-accent-hover);
}

.collapsible-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.collapsible-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--text-accent);
}

.collapsible-section.active .collapsible-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.collapsible-section.active .collapsible-content {
    max-height: 2000px;
    padding: 1.5rem;
}

/* Enhanced Mobile Styles */
@media screen and (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: flex;
    }

    /* Split Layout Mobile Adaptation */
    .split-layout {
        flex-direction: column;
    }

    .header-content {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 1000;
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
        padding: 5rem 1.5rem 1.5rem;
        background: var(--bg-primary);
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px var(--shadow-primary);
        overflow-y: auto;
        max-height: 100vh;
    }

    .header-content.mobile-nav-open {
        left: 0;
    }

    .main-content {
        padding: 1rem;
        margin-top: 0;
    }

    /* Logo Group Mobile */
    .logo-group {
        margin-top: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .svg-logo {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
        transform: scale(1);
    }

    .logo-initial {
        font-size: 1.8rem;
    }

    .logo-subtitle {
        font-size: 0.9rem;
    }

    /* Navigation Mobile */
    nav ul {
        gap: 0.5rem;
    }

    nav ul li a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
        display: block;
        text-align: center;
    }

    /* Theme Toggle Mobile Position */
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    /* Experience Section Mobile */
    .experience-entry {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 900px;
    }

    .experience-entry:hover {
        transform: translateY(-2px);
    }

    .experience-header {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .experience-period {
        font-size: 0.85rem;
        text-align: center;
        padding: 0.5rem;
        background: var(--bg-accent);
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }

    .title-company {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .title-company h3 {
        font-size: 1.1rem;
    }

    .title-company a {
        font-size: 1rem;
    }

    .experience-description {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.7;
    }

    .experience-title-group ul {
        margin: 1rem 0;
    }

    .experience-title-group li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    /* Tech Stack Mobile */
    .tech-stack {
        padding-left: 0;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        margin: 0.25rem;
    }

    /* About Section Mobile */
    .about-content {
        text-align: center;
        padding: 0 0.5rem;
    }

    .about-intro {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .about-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .tech-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin: 1rem 0 2rem;
        text-align: left;
    }

    .tech-list li {
        font-size: 0.85rem;
        padding-left: 1.5rem;
    }

    /* Social Links Mobile */
    .social-links {
        justify-content: center;
        gap: 2rem;
        margin-top: 1.5rem;
        padding: 1rem 0;
    }

    .social-links a svg {
        width: 28px;
        height: 28px;
    }

    /* Main Content Sections Mobile */
    main {
        padding: 1rem 0;
    }

    section {
        margin-bottom: 3rem;
    }

    /* Footer Mobile */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .mobile-nav-toggle {
        width: 45px;
        height: 45px;
        top: 0.75rem;
        left: 0.75rem;
    }

    .mobile-nav-toggle svg {
        width: 20px;
        height: 20px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .header-content {
        padding: 4rem 1rem 1rem;
    }

    .main-content {
        padding: 0.75rem;
    }

    .svg-logo {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }

    .logo-initial {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .experience-entry {
        padding: 1rem 0.75rem;
    }

    .title-company h3 {
        font-size: 1rem;
    }

    .experience-description {
        font-size: 0.85rem;
    }

    .tech-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .about-description {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a svg {
        width: 24px;
        height: 24px;
    }
}

/* Tablet Landscape */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .header-content {
        width: 300px;
        padding: 1.5rem 1rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .svg-logo {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
        transform: scale(1.1);
    }

    .experience-entry {
        padding: 1.75rem 1.25rem;
    }

    .tech-stack {
        padding-left: 100px;
    }
}

/* Technology Section Styles - Arrow Navigation */
#technology {
    padding: 4rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.technology-content {
    width: 100%;
}

.tech-navigation-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
}

.tech-nav-btn {
    background: var(--bg-accent-hover);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--theme-transition);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.tech-nav-btn:hover:not(:disabled) {
    background: var(--bg-accent-active);
    border-color: var(--border-accent);
    color: var(--text-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-accent);
}

.tech-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-accent);
}

.tech-nav-btn svg {
    transition: transform 0.2s ease;
}

.tech-nav-btn:hover:not(:disabled) svg {
    transform: scale(1.1);
}

.tech-display-container {
    flex: 1;
    overflow: visible; /* Changed from hidden to visible for tooltips */
    min-height: 220px; /* Increased for 2 rows */
    padding-bottom: 50px; /* Add padding for tooltip space */
}

.tech-icons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Always 5 columns for consistency */
    grid-template-rows: repeat(2, 1fr); /* Always 2 rows */
    gap: 3rem;
    padding: 1rem;
    min-height: 200px; /* Increased for 2 rows */
    align-items: center;
}

.tech-icon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 100px;
    padding: 1rem;
    background: var(--bg-accent);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    transition: var(--theme-transition);
    cursor: pointer;
    user-select: none;
}

.tech-icon:hover {
    background: var(--bg-accent-hover);
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-accent);
}

.tech-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-icon:hover img {
    transform: scale(1.1);
}

.tech-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-accent);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--theme-transition);
    border: 1px solid var(--border-primary);
    z-index: 100; /* Increased z-index */
    font-family: var(--font-mono, 'SF Mono', monospace);
    box-shadow: 0 4px 12px var(--shadow-primary); /* Added shadow for better visibility */
}

/* Alternative positioning for bottom row icons */
.tech-icon:nth-child(even) .tech-tooltip {
    bottom: auto;
    top: -45px;
}

.tech-icon:nth-child(even) .tech-tooltip::before {
    top: auto;
    bottom: -5px;
    border-top: 5px solid var(--border-primary);
    border-bottom: none;
}

.tech-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--border-primary);
}

.tech-icon:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
}

.tech-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.pagination-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-primary);
    cursor: pointer;
    transition: var(--theme-transition);
}

.pagination-dot:hover {
    color: var(--text-accent);
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    padding: 0.35rem 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 3px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 0.875rem;
}

.tech-counter span {
    color: var(--text-accent);
    font-weight: 600;
}
/* Responsive adjustments for technology section */
@media (max-width: 1000px) {
    .tech-icons-grid {
    background-color: var(--text-accent);
    }
}

@media (max-width: 1024px) {
    .tech-icons-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns x 2 rows = 8 items */
    }
}

@media (max-width: 768px) {
    #technology {
        padding: 2rem 0;
    }
    
    .tech-navigation-container {
        gap: 1rem;
    }
    
    .tech-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .tech-icons-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns x 2 rows = 6 items */
        gap: 1rem;
        padding: 0.5rem;
        min-height: 180px;
    }
    
    .tech-display-container {
        min-height: 200px;
        padding-bottom: 45px; /* Adjusted for mobile */
    }
    
    .tech-icon {
        min-width: 70px;
        height: 90px;
        padding: 0.75rem;
    }
    
    .tech-icon img {
        width: 40px;
        height: 40px;
    }
    
    .tech-tooltip {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        bottom: -35px; /* Adjusted for mobile */
    }
    
    .tech-icon:nth-child(even) .tech-tooltip {
        top: -40px; /* Adjusted for mobile */
    }
    
    .tech-pagination {
        gap: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .tech-icons-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns x 2 rows = 4 items */
        min-height: 160px;
    }
    
    .tech-display-container {
        min-height: 180px;
        padding-bottom: 40px; /* Adjusted for small mobile */
    }
    
    .tech-navigation-container {
        gap: 0.5rem;
    }
    
    .tech-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .tech-tooltip {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
        bottom: -30px;
    }
    
    .tech-icon:nth-child(even) .tech-tooltip {
        top: -35px;
    }
}