/* ===== CSS Variables ===== */
:root {
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --green-400: #4ade80;
    --black: #1a1a2e;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

html {
    scrollbar-width: thin;
    scrollbar-color: grey #1a1a2e;
    scroll-behavior: smooth;
    background-color: var(--black);
    color: var(--slate);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 18px;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utility Classes ===== */
.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* ===== Header & Navigation ===== */
.nav-container {
    position: fixed;
    width: 100%;
    z-index: 50;
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(4px);
}

.nav-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    height: 5rem;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--green-400);
    transition: color 0.3s;
}

.logo-link:hover {
    color: #86efac;
}

.logo-img {
    height: 2rem;
    width: 2rem;
}

/* Desktop Menu */
.desktop-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate);
    transition: all 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--green-400);
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--green-400);
}

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

.resume-btn {
    padding: 0.5rem 1rem;
    background-color: var(--green-400);
    color: var(--black);
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.resume-btn:hover {
    background-color: #86efac;
    box-shadow: 0 10px 15px -3px rgba(74, 222, 128, 0.25);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--green-400);
}

.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(4px);
    z-index: 40;
    display: none;
}

.mobile-sidebar-overlay.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-sidebar-overlay {
        display: none !important;
    }
    .mobile-sidebar-overlay.active {
        display: none !important;
    }
}

.mobile-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: min(75vw, 320px);
    height: 100%;
    z-index: 50;
    background-color: #16162a;
    border-left: 1px solid var(--gray-700);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease-in-out;
}

.mobile-sidebar.active {
    right: 0;
}

@media (min-width: 768px) {
    .mobile-sidebar {
        display: none !important;
    }
    .mobile-sidebar.active {
        display: none !important;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-700);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.close-btn {
    padding: 0.5rem;
    color: var(--green-400);
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #86efac;
}

.close-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.625rem 0.75rem;
    color: white;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    color: var(--green-400);
    background-color: var(--gray-800);
}

.mobile-resume-container {
    padding-top: 1rem;
}

.mobile-resume-btn {
    display: block;
    padding: 0.75rem 1rem;
    background-color: var(--green-400);
    color: var(--black);
    font-weight: 600;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-resume-btn:hover {
    background-color: #86efac;
}

/* ===== Sidebars ===== */
.left-sidebar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 2.5rem;
    z-index: 10;
    width: 2.5rem;
}

@media (min-width: 1024px) {
    .left-sidebar {
        display: block;
    }
}

.social-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-list::after {
    content: '';
    display: block;
    width: 1px;
    height: 6rem;
    background-color: var(--slate);
    margin-top: 1rem;
}

.social-link {
    padding: 0.25rem;
    color: var(--slate);
    transition: all 0.2s;
}

.social-link:hover {
    color: var(--green-400);
    transform: translateY(-4px);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.social-icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.right-sidebar {
    display: none;
    position: fixed;
    bottom: 0;
    right: 2.5rem;
    z-index: 10;
}

@media (min-width: 1024px) {
    .right-sidebar {
        display: block;
    }
}

.email-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.email-container::after {
    content: '';
    display: block;
    width: 1px;
    height: 6rem;
    background-color: var(--slate);
    margin-top: 1rem;
}

.email-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.1em;
    font-family: monospace;
    color: var(--slate);
    padding: 0.25rem;
    transition: all 0.2s;
}

.email-link:hover {
    color: var(--green-400);
    transform: translateY(-4px);
}

/* ===== Main Content ===== */
.main-content {
    background-color: var(--black);
    padding: 5rem 0.5rem 0;
}

@media (min-width: 1024px) {
    .main-content {
        padding: 5rem 9.375rem 0;
    }
}

/* ===== Section Container ===== */
.section-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .section-container {
        padding: 2rem 1.5rem;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green-400);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-title-center {
    justify-content: center;
}

.section-text {
    color: var(--slate);
    max-width: 36rem;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero-section {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 0 4rem;
    }
}

.hero-content {
    width: 100%;
    text-align: left;
}

.hero-bottom {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 1rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(100, 255, 218, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.hero-image img:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(100, 255, 218, 0.2);
}

@media (max-width: 1023px) {
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-bottom {
        flex-direction: column;
    }
    
    .hero-image {
        width: 250px;
        height: 250px;
        order: -1;
    }
}

.hero-greeting {
    color: var(--green-400);
    font-family: monospace;
    margin-bottom: 1.25rem;
}

.hero-name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .hero-name {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-name {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-name {
        font-size: 3.5rem;
    }
}

.hero-tagline {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--slate);
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-tagline {
        font-size: 2.5rem;
    }
}

.hero-description {
    color: var(--slate);
    max-width: 36rem;
    font-size: 1rem;
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--green-400);
    color: var(--green-400);
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.hero-cta:hover {
    background-color: rgba(74, 222, 128, 0.1);
}

/* ===== Experience Section ===== */
.experience-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 100%;
}

.experience-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--lightest-slate);
}

.experience-card {
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(26, 26, 46, 0.95));
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.experience-image {
    flex-shrink: 0;
    width: 200px;
    order: 2;
}

.experience-image img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.experience-card > div:not(.experience-image) {
    flex: 1;
}

@media (max-width: 768px) {
    .experience-card {
        flex-direction: column;
    }
    
    .experience-image {
        width: 100%;
        order: 1;
        margin-bottom: 1rem;
    }
}

.job-title {
    font-weight: 600;
    color: var(--lightest-slate);
}

.company-info {
    color: var(--slate);
    margin-bottom: 0.5rem;
}

.company-info a {
    color: var(--green-400);
    transition: color 0.2s;
}

.company-info a:hover {
    text-decoration: underline;
}

.job-duties {
    list-style: disc;
    margin-left: 1.25rem;
    margin-top: 0.5rem;
    color: var(--slate);
}

.job-duties li {
    margin-bottom: 0.5rem;
}

/* ===== Skills Section ===== */
.skills-wrapper {
    margin-top: 3rem;
}

.skills-subtitle {
    text-align: center;
    color: var(--slate);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    margin-top: -1rem;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.skill-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 0.375rem;
}

.skill-tab::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--green-400);
    transition: width 0.3s ease;
}

.skill-tab:hover {
    color: var(--green-400);
    background-color: rgba(74, 222, 128, 0.05);
}

.skill-tab.active {
    color: var(--green-400);
}

.skill-tab.active::after {
    width: 100%;
}

.skills-content {
    min-height: 300px;
}

.skills-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.skills-panel.active {
    display: block;
}

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

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

@media (min-width: 640px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.skill-card {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(30, 30, 50, 0.6) 100%);
    border: 1px solid rgba(74, 222, 128, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-400);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.2);
}

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

.skill-logo {
    height: 3rem;
    width: 3rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.skill-card:hover .skill-logo {
    transform: scale(1.15) rotateY(360deg);
}

.skill-logo.invert {
    filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.skill-name {
    font-weight: 600;
    color: var(--lightest-slate);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.skill-card:hover .skill-name {
    color: var(--green-400);
}

/* ===== Projects Section (Modern Card Design) ===== */
.projects-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card-modern {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(26, 26, 46, 0.95));
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .project-card-modern {
        flex-direction: row;
        align-items: stretch;
    }
}

.project-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(26, 26, 46, 0.5);
}

@media (min-width: 768px) {
    .project-card-image {
        width: 40%;
        height: auto;
        min-height: 300px;
    }
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card-modern:hover .project-card-image img {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 46, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.project-badge {
    background-color: var(--green-400);
    color: var(--black);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .project-card-content {
        padding: 2rem;
        width: 60%;
    }
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lightest-slate);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .project-card-title {
        font-size: 1.5rem;
    }
}

.project-card-description {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tag {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--green-400);
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: monospace;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: all 0.2s ease;
}

.project-tag:hover {
    background-color: rgba(100, 255, 218, 0.2);
    border-color: var(--green-400);
}

.project-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.project-github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-400);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 0.375rem;
    background-color: rgba(100, 255, 218, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-github-link:hover {
    background-color: rgba(100, 255, 218, 0.15);
    border-color: var(--green-400);
    transform: translateX(4px);
}

.project-github-link svg {
    flex-shrink: 0;
}

.project-github-link span {
    font-family: monospace;
}

/* ===== Old Projects Section (Kept for backwards compatibility) ===== */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-item {
    position: relative;
    display: grid;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .project-item {
        grid-template-columns: repeat(12, 1fr);
    }
}

.project-image-container {
    position: relative;
    height: 300px;
    border-radius: 0.25rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .project-image-container {
        grid-column: span 7;
    }
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: all 0.3s;
}

.project-image:hover {
    filter: brightness(1);
}

.project-content {
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .project-content {
        grid-column: span 5;
        padding-left: 1.5rem;
    }
}

.project-label {
    color: var(--green-400);
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--lightest-slate);
    margin-bottom: 0.75rem;
}

.project-description {
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
    background-color: rgba(30, 30, 30, 0.5);
}

.project-description ul {
    list-style: disc;
    margin-left: 1rem;
    color: var(--slate);
}

.project-description li {
    margin-bottom: 0.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-family: monospace;
    color: var(--slate);
}

/* ===== Contact Section ===== */
.contact-section {
    text-align: center;
}

.contact-heading {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--slate);
    max-width: 32rem;
    margin: 0 auto 3rem;
}

.contact-form {
    max-width: 32rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-slate);
    border-radius: 0.25rem;
    background-color: transparent;
    color: var(--slate);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--green-400);
}

.form-input::placeholder {
    color: var(--slate);
}

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

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    text-align: left;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error .form-input {
    border-color: #ef4444;
}

.submit-btn {
    padding: 1rem 2rem;
    border: 1px solid var(--green-400);
    color: var(--green-400);
    background-color: transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.submit-btn:hover {
    background-color: rgba(74, 222, 128, 0.1);
}

.spinner {
    width: 1rem;
    height: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

.form-message.success {
    color: #22c55e;
}

.form-message.error {
    color: #ef4444;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--black);
}

.footer-social {
    display: block;
    width: 100%;
    max-width: 270px;
    margin: 0 auto 10px;
}

@media (min-width: 1024px) {
    .footer-social {
        display: none;
    }
}

.footer-social-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social-link {
    color: var(--slate);
    transition: all 0.2s;
}

.footer-social-link:hover {
    color: var(--green-400);
    transform: translateY(-4px);
}

.footer-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-credit {
    background-color: var(--black);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-info {
    max-width: 72rem;
    margin: 0 auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-contact {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate);
    transition: all 0.2s;
    text-decoration: none;
}

.footer-contact-link:hover {
    color: var(--green-400);
}

.footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--lightest-slate);
    font-size: 0.875rem;
}

.footer-copyright-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.footer-credit p {
    color: var(--lightest-slate);
}

/* ===== AOS Animation Override ===== */
[data-aos] {
    pointer-events: auto !important;
}

/* ===== Red Antigravity Trailing Cursor Styles (Disabled) ===== */

/* Cursor dot - follows immediately */
.cursor-dot {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-out;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}

/* Cursor ring - follows with delay (antigravity effect) */
.cursor-ring {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-out;
    z-index: 9998;
}

.cursor-dot.visible,
.cursor-ring.visible {
    opacity: 1;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto !important;
    }
    
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ===== Enhanced Mobile Responsiveness ===== */

/* Extra small devices (phones, less than 480px) */
@media (max-width: 479px) {
    .nav-content {
        padding: 0 0.75rem;
    }
    
    .logo-img {
        height: 1.75rem;
        width: 1.75rem;
    }
    
    .section-container {
        padding: 1.5rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .hero-name {
        font-size: 1.75rem !important;
    }
    
    .hero-tagline {
        font-size: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
    
    .about-content {
        font-size: 0.9rem;
    }
    
    .skill-card {
        padding: 0.75rem;
    }
    
    .skill-logo {
        width: 2rem;
        height: 2rem;
    }
    
    .skill-name {
        font-size: 0.75rem;
    }
    
    .project-card-modern {
        padding: 1rem;
    }
    
    .project-card-title {
        font-size: 1.1rem;
    }
    
    .project-card-description {
        font-size: 0.85rem;
    }
    
    .project-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .experience-timeline-item {
        padding-left: 1.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .footer-contact {
        font-size: 0.85rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* Small devices (landscape phones, 480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .hero-image {
        max-width: 280px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets, 768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-content {
        padding: 0 2rem;
    }
    
    .section-container {
        padding: 2rem 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .project-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-bottom {
        gap: 2rem;
    }
}

/* Large devices (desktops, 1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .project-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra large devices (large desktops, 1440px and up) */
@media (min-width: 1440px) {
    .nav-content,
    .section-container,
    .hero-content {
        max-width: 80rem;
    }
    
    .project-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-image {
        max-width: 200px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:active,
    .mobile-nav-link:active,
    .social-link:active,
    .hero-cta:active,
    .skill-card:active,
    .project-card-modern:active,
    .project-github-link:active {
        transform: scale(0.95);
    }
}

/* Print styles */
@media print {
    .nav-container,
    .mobile-sidebar,
    .mobile-sidebar-overlay,
    .left-sidebar,
    .right-sidebar,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-container {
        page-break-inside: avoid;
    }
}
