:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --secondary-color: #7c3aed;
    --secondary-light: #8b5cf6;
    --accent-color: #ec4899;
    --accent-light: #f472b6;
    --bg-dark: #0f172a;
    --bg-medium: #1e293b;
    --bg-light: #334155;
    --text-light: #e2e8f0;
    --text-lighter: #f8fafc;
    --terminal-color: #4ade80;
    --terminal-error: #f87171;
    --nav-glow: rgba(59, 130, 246, 0.5);
    --nav-shadow: rgba(124, 58, 237, 0.3);
    --button-glow: rgba(59, 130, 246, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shine-color: rgba(255, 255, 255, 0.8);
    --skill-bar-color: #4ade80;
    --skill-pending-color: #64748b;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Fira Code', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Fira+Code:wght@400;500&display=swap');

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
    overscroll-behavior: none;
    line-height: 1.6;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--primary-light);
    padding: 0 30px;
    box-sizing: border-box;
}

.nav-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.3;
    transform: skewX(-45deg);
    z-index: -1;
    transition: left 0.8s ease;
}

.nav-shadow {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    z-index: -1;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    max-width: 100%;
    overflow: hidden;
}

nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li a {
    color: var(--text-lighter);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(124, 58, 237, 0.2));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    overflow: hidden;
    padding: 0;
}

nav ul li a i {
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    text-align: center;
}

nav ul li a::after {
    content: attr(data-text);
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    left: calc(50% + 15px);
    transform: translateX(-50%);
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    font-size: 0.9rem;
}

nav ul li a:hover {
    width: 160px;
    padding: 0 20px;
    border-radius: 30px;
}

nav ul li a:hover i {
    left: 20px;
    transform: none;
}

nav ul li a:hover::after {
    opacity: 1;
    width: auto;
    left: calc(50% + 20px);
}

nav ul li a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 0 25px var(--primary-light), 0 0 35px rgba(124, 58, 237, 0.4);
    animation: hexPulse 2s infinite;
}

.section-header {
    position: relative;
    margin-bottom: 30px;
}

.section-header h2 {
    margin: 0;
    color: var(--text-lighter);
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    padding-bottom: 15px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 10px auto;
    width: 80%;
    opacity: 0.5;
}

.close-section {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
}

.close-section i {
    margin: 0;
    position: relative;
    top: 1px;
}

.close-section:hover {
    background-color: var(--accent-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: var(--bg-medium);
    padding: 40px;
    border-radius: 18px;
    
}

.skills-visualization {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.skills-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(15,23,42,0) 70%);
    animation: rotateOrbit 30s linear infinite;
}

.orbit-center {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.center-icon i {
    font-size: 3rem;
    color: white;
}

.orbit-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transform-origin: 200px 200px;
    transform: rotate(calc(var(--i) * 45deg)) translateX(140px);
    transition: all 0.5s ease;
}

.orbit-item:hover {
    transform: rotate(calc(var(--i) * 45deg)) translateX(140px) scale(1.2);
    box-shadow: 0 0 30px var(--primary-light);
}

.orbit-icon {
    font-size: 1.8rem;
    color: var(--text-lighter);
}

.orbit-tooltip {
    position: absolute;
    bottom: -40px;
    background: var(--bg-medium);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.orbit-item:hover .orbit-tooltip {
    opacity: 1;
}

.skills-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skills-category {
    background: var(--bg-dark);
    box-shadow: 1px 2px 3px black;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.skills-category h3 {
    color: var(--text-lighter);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background: rgba(30, 41, 59, 0.7);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-light);
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.skill-card h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.skill-card i {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.skill-card[data-skill="c++"] i {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="%2300599C" d="M115.4 30.7l-48.3-27.8c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z"/><path fill="%2300599C" d="M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4v-55.7c0-.9-.1-1.9-.6-2.8l-106.6 62z"/><path fill="%23fff" d="M85.3 76.1c-4.2 7.4-12.2 12.4-21.3 12.4-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6z"/><path fill="%23fff" d="M82.1 61.8h5.2v-5.3h4.4v5.3h5.3v4.4h-5.3v5.2h-4.4v-5.2h-5.2v-4.4z"/><path fill="%23fff" d="M102.7 61.8h5.2v-5.3h4.4v5.3h5.3v4.4h-5.3v5.2h-4.4v-5.2h-5.2v-4.4z"/></svg>');
    width: 1.2rem;
    height: 1.2rem;
    display: inline-block;
    vertical-align: middle;
}

.skill-progress {
    height: 8px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--skill-bar-color), var(--primary-color));
    border-radius: 4px;
    transition: width 1s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.1) 100%);
    animation: shine 2s infinite;
}

.skill-progress-bar.pending {
    background: var(--skill-pending-color);
}

.project-toggle {
    margin: 0 auto 20px;
    width: 90%;
}

.toggle-container {
    position: relative;
    display: flex;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 30px;
    padding: 5px;
    border: 1px solid var(--primary-light);
    width: 100%;
}

.toggle-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 0;
    width: 33.33%;
}

.toggle-option {
    position: relative;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 1;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.toggle-option.active {
    color: var(--text-lighter);
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('wp1894833.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0.25;
}

.code-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    text-align: center;
    z-index: 5;
}

#code-output {
    color: var(--terminal-color);
    font-family: var(--font-code);
    font-size: 16px;
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.svg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

#circuit-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.svg-container-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%) rotate(90deg);
    overflow: visible;
    pointer-events: none;
    z-index: -1;
}

#circuit-svg-mobile {
    width: 100%;
    height: 100%;
    overflow: visible;
}

path, ellipse {
    stroke: #00ff00;
    stroke-width: 3px;
    fill: none;
    filter: url(#glow);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s linear forwards, pulse 2s ease-in-out infinite;
    transition: all 0.5s ease;
    vector-effect: non-scaling-stroke;
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

@keyframes pulse {
    0%, 100% { stroke-opacity: 0.8; }
    50% { stroke-opacity: 0.4; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: calc(90vh - 160px);
    background-color: var(--bg-medium);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    z-index: 100;
    display: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
    border: 1px solid var(--primary-light);
    margin-bottom: 20px;
}

section.show {
    display: block;
}

section::-webkit-scrollbar {
    width: 8px;
}

section::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

section::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.cert-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 0 5px 20px var(--shadow-color);
    border: 1px solid var(--bg-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.cert-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    background: white;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cert-card:hover img {
    transform: scale(1.03) rotate(1deg);
}

.cert-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-lighter);
    text-align: center;
    font-weight: 500;
}

.filters {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    color: var(--text-lighter);
    border: none;
    background: rgba(59, 130, 246, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--primary-light);
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 0 20px var(--button-glow);
    transform: translateY(-2px);
}

.pagination {
    margin: 30px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pagination button {
    color: var(--text-lighter);
    border: none;
    background: rgba(59, 130, 246, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--primary-light);
    font-size: 0.95rem;
}

.pagination button:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(59, 130, 246, 0.1);
    transform: none;
    box-shadow: none;
}

.page-indicator {
    font-weight: bold;
    color: var(--text-lighter);
    min-width: 120px;
    text-align: center;
    font-size: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    padding: 25px;
}

.project-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 18px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-light);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.project-image:hover {
    transform: scale(1.05);
}

.project-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    padding: 20px;
    overflow-y: auto;
    border-radius: 12px;
}

.project-card[data-view="description"] .description-content,
.project-card[data-view="info"] .info-content {
    display: block;
}

.project-title {
    font-size: 1.3rem;
    margin: 15px 0;
    color: var(--text-lighter);
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    font-weight: 600;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

.project-info {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
    white-space: pre-wrap;
    font-family: var(--font-code);
    margin: 0;
}

.about-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-lighter);
    border: 1px solid var(--primary-light);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--shadow-color);
    font-size: 0.95rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 0 20px var(--button-glow);
    transform: translateY(-2px);
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: rgba(30, 41, 59, 0.7);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
    position: relative;
    text-align: left;
    flex-wrap: wrap;
}

.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-light);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    shape-outside: circle();
    float: left;
    margin-right: 40px;
    transition: transform 0.5s ease;
}

.profile-img:hover {
    transform: rotate(5deg) scale(1.05);
}

.bio {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    min-width: 300px;
}

.bio p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.bio p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
}

/* Styling for Bio Links */
.bio-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.bio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-lighter);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bio-link i {
    font-size: 1.2rem;
}

.bio-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.bio-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005582); /* LinkedIn colors */
}

.bio-link.github {
    background: linear-gradient(135deg, #333, #000); /* GitHub colors */
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.education-card, .experience-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-light);
}

.education-card:hover, .experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.education-card img, .experience-front img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.5s ease;
}

.education-card:hover img, .experience-card:hover .experience-front img {
    transform: scale(1.1) rotate(5deg);
}

.education-info h3, .experience-info h3 {
    color: var(--text-lighter);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.education-info p, .experience-info p {
    margin: 10px 0;
    font-size: 1rem;
    color: var(--text-light);
}

.experience-card {
    perspective: 1000px;
    height: 380px;
}

.experience-front, .experience-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    top: 0;
    left: 0;
    overflow: hidden;
}

.experience-back {
    background: var(--bg-light);
    transform: rotateY(180deg);
    overflow-y: auto;
    padding: 30px;
    scroll-behavior: smooth;
}

.experience-card.flipped .experience-front {
    transform: rotateY(180deg);
}

.experience-card.flipped .experience-back {
    transform: rotateY(0deg);
}

.experience-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
    padding: 0 15px;
    font-size: 1rem;
}

.expand-btn, .back-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 0.95rem;
    margin-top: auto;
}

.expand-btn:hover, .back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.gpa-graph {
    background: rgba(30, 41, 59, 0.7);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
    margin-top: 40px;
    border: 1px solid var(--primary-light);
    height: 400px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    background: var(--bg-medium);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 40px var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.4s ease;
    border: 1px solid var(--primary-light);
    pointer-events: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

#modal-image {
    max-width: 90%;
    max-height: 75vh;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    border: 1px solid var(--primary-light);
}

#project-modal {
    display: none;
}

#project-modal.show {
    display: flex;
}

.project-modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: 1300px;
    background: var(--bg-medium);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 0 40px var(--primary-light);
    position: relative;
    border: 1px solid var(--primary-light);
    overflow: hidden;
}

.project-modal-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    height: 75vh;
}

.project-info-column {
    padding-right: 30px;
    border-right: 1px solid var(--primary-light);
    overflow-y: auto;
}

.project-image-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.project-modal-video {
    width: 95%;
    height: 65%;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
    border: 1px solid var(--primary-light);
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.project-divider {
    height: 1px;
    background: var(--primary-light);
    margin: 20px 0;
    opacity: 0.5;
}

.project-modal-title {
    color: var(--text-lighter);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.project-modal-tech {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    white-space: pre-wrap;
    font-family: var(--font-code);
    background: rgba(30, 41, 59, 0.7);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--primary-light);
}

.project-modal-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-top: 20px;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 35px;
    color: var(--text-lighter);
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
    background: var(--bg-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.modal .close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent-color);
    background: var(--accent-light);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: var(--text-lighter);
    border: 1px solid var(--primary-light);
    padding: 18px;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.8;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    opacity: 1;
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    color: white;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.hex-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.1;
}

.hex-row {
    display: flex;
    margin-bottom: -26px;
}

.hexagon {
    width: 100px;
    height: 57.74px;
    background-color: var(--primary);
    margin: 0 2px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease, box-shadow 0.5s ease;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 28.87px solid var(--primary);
}

.hexagon:after {
    top: 100%;
    width: 0;
    border-top: 28.87px solid var(--primary);
}

::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.hamburger {
    display: none;
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hexPulse {
    0%, 100% { 
        transform: translateY(-2px) scale(1);
        box-shadow: 0 0 25px var(--primary-light), 0 0 35px rgba(124, 58, 237, 0.4);
    }
    50% { 
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 0 35px var(--primary-light), 0 0 45px rgba(124, 58, 237, 0.5);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.certified-icon {
    color: #1DA1F2;
    margin-left: 5px;
    font-size: 0.9em;
    vertical-align: middle;
    transition: transform 0.3s ease;
}



/* Mobile styles will be added later as per your instructions */

@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .project-modal-columns {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* MOBILE RESPONSIVE STYLES (up to 768px) */
@media (max-width: 768px) {
    /* Base Reset */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        touch-action: pan-y;
        height: 100vh;
        width: 100vw;
        position: fixed;
        font-family: var(--font-main);
        color: var(--text-light);
        background: var(--bg-dark);
        overscroll-behavior: none;
        line-height: 1.6;
    }

    /* Fixed, Centered Background */
    .background-image {
        display: none;
    }

    .svg-container {
        display: none;
    }
    
     .background-image-mobile,
    .svg-container-mobile {
        display: flex;
        position: fixed;
        top: 50%;
        left: 50%;
        width: 100vmax;
        height: 100vmax;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center;
        pointer-events: none;
    }

    .background-image-mobile {
        background-image: url('wp1894833.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -2;
        opacity: 0.25;
    }

    .svg-container-mobile {
        z-index: -1; 
        overflow: visible;
    }

    #circuit-svg-mobile {
        position: absolute;
        top: 5px;
        left: -155px;
        width: 45%;
        height: 50%;
        preserveAspectRatio: xMidYMid slice;
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        background-color: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--primary-light);
        padding: 0 20px;
        box-sizing: border-box;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 21px;
        width: 30px;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
        z-index: 1001;
    }
    
    .hamburger-line {
        width: 100%;
        height: 3px;
        background: var(--text-lighter);
        transition: all 0.3s ease;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    #nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-medium);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 75px;
        transition: left 0.3s ease;
        z-index: 999;
        border-right: 1px solid var(--primary-light);
    }

    #nav.active {
        left: 0;
    }

    #nav li {
        width: 85%;
        margin: 25px 0;
        list-style: none;
    }

    #nav li a {
        width: 100%;
        height: 50px;
        border-radius: 8px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    #nav li a i {
        margin-right: 15px;
        font-size: 1.3rem;
    }

    #nav li a span {
        display: inline-block;
    }

    /* Sections */
    section {
        position: fixed;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 92%;
        max-width: 500px;
        max-height: 75vh;
        background-color: var(--bg-medium);
        border-radius: 20px;
        padding: 25px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
        z-index: 100;
        display: none;
        overflow-y: auto;
        border: 1px solid var(--primary-light);
        margin-top: 20px;
    }

    section.show {
        display: block;
    }

    .section-header {
        position: relative;
        margin-bottom: 25px;
        padding-top: 10px;
    }

    .section-header h2 {
        margin: 0;
        color: var(--text-lighter);
        font-size: 1.8rem;
        text-align: center;
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
        padding-bottom: 15px;
    }

    .section-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
        margin: 10px auto;
        width: 85%;
        opacity: 0.5;
    }

    .close-section {
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 1.8rem;
        color: var(--text-light);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.2);
    }

    .close-section:hover {
        background-color: var(--accent-color);
        color: white;
        transform: rotate(90deg) scale(1.1);
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .profile-img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        margin-bottom: 25px;
        border: 3px solid var(--primary-light);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
        border-radius: 50%;
    }

    .bio {
        font-size: 1rem;
        line-height: 1.8;
        text-align: center;
    }

    .bio p {
        margin-bottom: 20px;
        position: relative;
        padding-left: 20px;
        text-align: left;
    }

    .cert-grid,
    .project-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .cert-card,
    .project-card {
        padding: 18px;
        border-radius: 15px;
    }

    .experience-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .experience-card {
        height: auto;
        min-height: 350px;
    }

    .skills-container {
        padding: 20px;
    }

    .skills-category {
        padding: 20px;
    }

    .modal-content {
        width: 90%;
        max-width: 450px;
        padding: 25px;
        margin-top: 50px;
    }

    section::-webkit-scrollbar {
        width: 6px;
    }

    section::-webkit-scrollbar-thumb {
        background-color: var(--primary-light);
    }
}

/* SMALL MOBILE ADJUSTMENTS (up to 480px) */
@media (max-width: 480px) {

    /* Navigation */
    #nav {
        width: 85%;
        padding-top: 75px;
    }

    #nav li {
        margin: 20px 0;
    }

    #nav li a {
        height: 45px;
        padding: 0 15px;
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        top: 58%;
        width: 95%;
        padding: 20px;
        max-height: 70vh;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    /* Content Adjustments */
    .profile-img {
        width: 130px;
        height: 130px;
    }

    .bio {
        font-size: 0.95rem;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
