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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #D1D3D4;
    background-color: #0a0e27;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 80px;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: #0a0e27;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    justify-content: flex-start;
    padding-top: 200px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    color: #D1D3D4;
    text-decoration: none;
    padding: 0.5rem 0;
    margin: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    letter-spacing: -0.01em;
}

.sidebar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #64ffda;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover {
    color: #64ffda;
}

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

.sidebar-link.active {
    color: #64ffda;
    font-weight: 500;
}

.sidebar-link.active::after {
    width: 100%;
}

.sidebar-text {
    font-size: 1rem;
    font-weight: inherit;
}

.sidebar-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.sidebar .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #D1D3D4;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sidebar .social-link:hover {
    color: #64ffda;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-left: 420px;
    min-height: 100vh;
    background-color: #0a0e27;
    max-width: 1400px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #D1D3D4;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64ffda;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: #D1D3D4;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #64ffda;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    cursor: pointer;
}

.btn-primary {
    background: transparent;
    color: #64ffda;
}

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #D1D3D4;
    border-color: #D1D3D4;
}

.btn-secondary:hover {
    background: rgba(209, 211, 212, 0.1);
    color: #D1D3D4;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 100px 60px;
}

.section-container {
    max-width: 900px;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D1D3D4;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    color: #64ffda;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1rem;
    color: #D1D3D4;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.4);
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-item {
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-info {
    flex: 1;
}

.experience-title {
    font-size: 1rem;
    font-weight: 600;
    color: #D1D3D4;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.experience-title .role {
    color: #D1D3D4;
    font-weight: 600;
}

.experience-title .company {
    color: #64ffda;
    font-weight: 700;
}

.experience-title .location {
    color: #8892b0;
    font-weight: 500;
}

.company-link {
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s ease;
}

.company-link:hover {
    color: #D1D3D4;
    text-decoration: underline;
}

.experience-date {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.experience-description p {
    color: #D1D3D4;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.85rem;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tech-stack {
    color: #64ffda;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
}

.skill-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #D1D3D4;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
}

.skill-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.custom-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    object-fit: contain;
    display: block;
}

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

.skill-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #D1D3D4;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.skill-item:hover span {
    color: #64ffda;
}

/* Education Section */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-info {
    flex: 1;
}

.education-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #D1D3D4;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.education-institution {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64ffda;
    margin-bottom: 0.25rem;
}

.education-location {
    color: #D1D3D4;
    font-size: 0.9rem;
    font-weight: 500;
}

.education-date {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Contact Section */
#contact {
    padding-top: 250px;
    padding-bottom: 250px;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.125rem;
    color: #D1D3D4;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 28px;
    background: transparent;
    color: #64ffda;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #64ffda;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.contact-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.contact-btn i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
        padding: 1.5rem;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .hero {
        padding: 120px 40px 80px;
    }
    
    .section {
        padding: 80px 40px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-120%);
        transition: transform 0.3s ease;
        width: 280px;
        left: 0;
        padding-top: 96px;
        background-color: #0a0e27;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experience-date,
    .education-date {
        align-self: flex-start;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-items {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Mobile overlay for off-canvas nav */
.mobile-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 999;
        backdrop-filter: blur(1px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 40px;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .experience-item,
    .skill-category,
    .education-item {
        padding: 0;
    }
    
    .sidebar {
        width: 100%;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: #64ffda;
    color: #0a0e27;
    border: none;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Smooth scroll animation */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.sidebar-link:focus,
.btn:focus,
.contact-btn:focus,
.social-link:focus {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    background: transparent;
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.6);
    border-radius: 999px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-1px);
}

/* Light mode overrides */
body.light-mode {
    color: #0a0e27;
    background-color: #ffffff;
}

body.light-mode .sidebar {
    background-color: #ffffff;
}

@media (max-width: 768px) {
    body.light-mode .sidebar {
        background-color: #ffffff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
}

body.light-mode .main-content {
    background-color: #ffffff;
}

/* Text colors in light mode */
body.light-mode .hero-title,
body.light-mode .hero-description,
body.light-mode .section-title,
body.light-mode .about-text p,
body.light-mode .experience-title,
body.light-mode .experience-description p,
body.light-mode .skill-category-title,
body.light-mode .skill-item span,
body.light-mode .contact-description {
    color: #0a0e27;
}

/* Sidebar links */
body.light-mode .sidebar-link {
    color: #334155;
}

body.light-mode .sidebar-link:hover,
body.light-mode .sidebar-link.active {
    color: #0f766e; /* darker teal for readability */
}

/* Company link */
body.light-mode .company-link {
    color: #0f766e;
}

body.light-mode .company-link:hover {
    color: #111827;
}

/* Dates and chips */
body.light-mode .experience-date {
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
}

/* Accent replacements for light mode */
body.light-mode .sidebar-link::after {
    background: #0f766e;
}

body.light-mode .tech-stack {
    color: #0f766e;
}

body.light-mode .skill-item:hover {
    background: rgba(15, 118, 110, 0.08);
}

body.light-mode .sidebar .social-link:hover {
    color: #0f766e;
}

body.light-mode .btn {
    border-color: #0f766e;
}

body.light-mode .btn-primary {
    color: #0f766e;
}

body.light-mode .btn-primary:hover {
    background: rgba(15, 118, 110, 0.08);
}

/* Buttons */
body.light-mode .btn-secondary {
    color: #334155;
    border-color: #334155;
}

body.light-mode .btn-secondary:hover {
    background: rgba(51, 65, 85, 0.08);
    color: #111827;
}

/* Contact buttons keep teal accent */
body.light-mode .contact-btn {
    color: #0f766e;
    border-color: #0f766e;
}

body.light-mode .contact-btn:hover {
    background: rgba(15, 118, 110, 0.08);
}

/* Profile photo in light mode */
body.light-mode .profile-photo {
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.2);
}

body.light-mode .profile-photo:hover {
    box-shadow: 0 15px 40px rgba(15, 118, 110, 0.3);
}