* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --text-accent: #64ffda;
    --accent-hover: #4cd9c0;
    --navy-shadow: rgba(2, 12, 27, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mouse spotlight */
.spotlight {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(100, 255, 218, 0.06),
        transparent 40%
    );
    transition: opacity 0.3s ease;
    opacity: 0;
}

.spotlight.active {
    opacity: 1;
}

/* Make sure all content sits above the spotlight */
nav, section, footer, .social-links, .email-link, .mobile-menu {
    position: relative;
    z-index: 2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-accent);
    border-radius: 5px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 50px;
    box-shadow: 0 10px 30px -10px var(--navy-shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-accent);
    transition: width 0.3s ease;
}

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

.resume-btn {
    border: 1px solid var(--text-accent);
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--text-accent) !important;
    transition: all 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-accent);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 999;
}

.mobile-menu.active {
    top: 0;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 24px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

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

.hero-content {
    width: 100%;
    animation: fadeInUp 1s ease;
}

.hero-intro {
    color: var(--text-accent);
    font-size: 18px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: clamp(30px, 6vw, 60px);
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 540px;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 18px 35px;
    border: 1px solid var(--text-accent);
    color: var(--text-accent);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -15px var(--text-accent);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.section-header h2::before {
    content: attr(data-num);
    color: var(--text-accent);
    font-family: 'Courier New', monospace;
    font-size: 20px;
    margin-right: 15px;
}

.section-header h2::after {
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    background: var(--bg-secondary);
    margin-left: 20px;
}

/* About Section - Centered Layout */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text-centered {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    font-size: 17px;
    line-height: 1.7;
}

.about-text-centered p {
    margin-bottom: 20px;
}

.about-text-centered a {
    color: var(--text-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-text-centered a:hover {
    text-decoration: underline;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px 30px;
    margin-top: 20px;
    list-style: none;
    justify-content: center;
    padding-left: 0;
}

.skills-list li {
    position: relative;
    padding-left: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--text-accent);
}

/* Experience Section */
.experience-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Experience Tabs */
.exp-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    justify-content: center;
    border-bottom: 2px solid var(--bg-secondary);
}

.exp-tab {
    padding: 15px 30px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.exp-tab:hover {
    color: var(--text-accent);
}

.exp-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.exp-tab.active {
    color: var(--text-accent);
}

.exp-tab.active::after {
    transform: scaleX(1);
}

.exp-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

/* Experience Timeline (for cards) */
.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.experience-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 60px;
}

.experience-card {
    display: flex;
    gap: 40px;
    padding: 35px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.experience-card.no-link {
    margin-bottom: 60px;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--text-accent);
    transform: translateX(-4px);
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.experience-card:hover::before {
    transform: translateX(0);
}

.exp-date {
    flex-shrink: 0;
    width: 150px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 5px;
}

.exp-content {
    flex: 1;
}

.exp-title {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.exp-company {
    color: var(--text-accent);
}

.exp-company i {
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover .exp-company i {
    opacity: 1;
}

.exp-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.exp-highlights {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-accent);
    font-size: 14px;
}

.highlight-item i {
    font-size: 16px;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-tech span {
    background: var(--bg-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.experience-card:hover .exp-tech span {
    border-color: var(--text-accent);
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-secondary);
    padding: 35px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-accent);
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.cert-card:hover::before {
    transform: translateY(0);
}

.cert-icon {
    font-size: 40px;
    color: var(--text-accent);
    margin-bottom: 20px;
}

.cert-card h4 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.cert-date {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    opacity: 0.8;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.cert-skills span {
    background: var(--bg-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

.cert-link {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cert-link:hover {
    transform: translateX(5px);
}

.cert-link i {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-link:hover i {
    opacity: 1;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 50px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    color: var(--text-accent);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    transform: translateX(10px);
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    top: 0;
}

.project-card:hover {
    top: -10px;
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    color: var(--text-accent);
    font-size: 40px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--text-accent);
}

.project-link-icon {
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.project-link-icon:hover {
    color: var(--text-accent);
}

.project-title {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-description {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Project Numbers */
.project-numbers {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.number-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.number-link:hover .number {
    border-color: var(--text-accent);
    color: var(--text-accent);
    transform: translateY(-3px);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.project-tech li {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 0 150px;
}

.contact h2 {
    font-size: 60px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

/* Social Links */
.social-links {
    position: fixed;
    bottom: 0;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links::after {
    content: '';
    width: 1px;
    height: 100px;
    background: var(--text-secondary);
}

.social-links a {
    color: var(--text-secondary);
    font-size: 22px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--text-accent);
    transform: translateY(-5px);
}

.email-link {
    position: fixed;
    bottom: 0;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.email-link::after {
    content: '';
    width: 1px;
    height: 100px;
    background: var(--text-secondary);
}

.email-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    transition: all 0.3s ease;
}

.email-link a:hover {
    color: var(--text-accent);
    transform: translateY(-5px);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

    nav {
        padding: 15px 25px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-text-centered {
        max-width: 100%;
    }
    
    .skills-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 20px;
    }

    .exp-tabs {
        gap: 20px;
    }
    
    .exp-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .experience-card {
        flex-direction: column;
        gap: 15px;
        padding: 25px;
    }
    
    .exp-date {
        width: auto;
        font-size: 12px;
    }
    
    .exp-title {
        font-size: 20px;
    }
    
    .exp-tech span {
        font-size: 12px;
        padding: 4px 10px;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .social-links,
    .email-link {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2::after {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .skills-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}