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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
}

/* WebGL Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00ff88;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #00ff88, transparent);
    border-radius: 1px;
}

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: none;
}

/* Achievements Section - Reduced bottom padding */
#achievements.section {
    padding: 6rem 0 0 0;
    background: transparent;
    border-bottom: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    text-align: center;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00ff88, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: #00ff88;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    z-index: 2;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 0;
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.company {
    display: inline-block;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.duration {
    color: #999;
    font-size: 0.9rem;
}

.timeline-content ul {
    list-style: none;
    margin-top: 1rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    color: #cccccc;
    font-size: 0.9rem;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff88;
}

/* Skills Section */
.skills-container {
    overflow: hidden;
    position: relative;
    height: 300px;
}

.skills-line {
    display: flex;
    align-items: center;
    height: 60px;
    margin-bottom: 20px;
    animation: scrollSkills 30s linear infinite;
    white-space: nowrap;
}

.skills-line:nth-child(2) {
    animation-duration: 25s;
    animation-direction: reverse;
}

.skills-line:nth-child(3) {
    animation-duration: 35s;
}

.skills-line:nth-child(4) {
    animation-duration: 28s;
    animation-direction: reverse;
}

.skill-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 136, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-item:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.achievement-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.4s; }
.achievement-card:nth-child(4) { animation-delay: 0.6s; }

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-card h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.achievement-card p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Resume Section */
.resume-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.resume-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.resume-icon {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.resume-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.resume-info p {
    color: #cccccc;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000000;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.resume-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, #00cc6a, #00ff88);
}

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

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: relative;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-item i {
    color: #00ff88;
    font-size: 1rem;
}

.footer-item a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: #00ff88;
}

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

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollSkills {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline-content {
        width: 40%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 45%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(20px);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Timeline Mobile Layout */
    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 1.5rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content ul {
        margin-top: 0.75rem;
    }

    .timeline-content li {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    /* Skills Mobile Layout */
    .skills-container {
        height: 250px;
        overflow: hidden;
    }

    .skills-line {
        height: 50px;
        margin-bottom: 15px;
    }

    .skill-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        margin: 0 0.3rem;
        letter-spacing: 0.3px;
    }

    /* Achievements Mobile Layout */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }

    .achievement-card {
        padding: 1.5rem;
    }

    .achievement-icon {
        font-size: 2.5rem;
    }

    .achievement-card h3 {
        font-size: 1.1rem;
    }

    .achievement-card p {
        font-size: 0.85rem;
    }

    /* Resume Mobile Layout */
    .resume-card {
        padding: 2rem;
        max-width: 100%;
    }

    .resume-icon {
        font-size: 2.5rem;
    }

    .resume-info h3 {
        font-size: 1.3rem;
    }

    .resume-info p {
        font-size: 0.9rem;
    }

    .resume-download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer Mobile Layout */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 2rem;
    }

    .footer-item {
        font-size: 0.9rem;
    }

    /* About Section Mobile */
    .about-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
        letter-spacing: 1px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Timeline Mobile Small */
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
        padding: 1rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
    }

    .timeline-marker {
        left: 15px;
        width: 16px;
        height: 16px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .company {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .duration {
        font-size: 0.8rem;
    }

    .timeline-content li {
        font-size: 0.8rem;
        padding-left: 0.8rem;
    }

    /* Skills Mobile Small */
    .skills-container {
        height: 200px;
    }

    .skills-line {
        height: 40px;
        margin-bottom: 12px;
    }

    .skill-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        margin: 0 0.2rem;
        letter-spacing: 0.2px;
    }

    /* Achievements Mobile Small */
    .achievement-card {
        padding: 1.2rem;
    }

    .achievement-icon {
        font-size: 2rem;
    }

    .achievement-card h3 {
        font-size: 1rem;
    }

    .achievement-card p {
        font-size: 0.8rem;
    }

    /* Resume Mobile Layout */
    .resume-card {
        padding: 1.5rem;
    }

    .resume-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .resume-info h3 {
        font-size: 1.1rem;
    }

    .resume-info p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .resume-download-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Footer Mobile Small */
    .footer-content {
        gap: 0.8rem;
        padding: 1rem;
    }

    .footer-item {
        font-size: 0.8rem;
    }

    /* About Mobile Small */
    .about-text {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .hero-description {
        font-size: 0.8rem;
    }

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

    .timeline-content {
        width: calc(100% - 45px);
        margin-left: 45px;
        padding: 0.8rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 45px;
    }

    .timeline-marker {
        left: 12px;
        width: 14px;
        height: 14px;
    }

    .timeline::before {
        left: 12px;
    }

    .skill-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
        margin: 0 0.15rem;
    }

    .achievement-card {
        padding: 1rem;
    }

    .achievement-icon {
        font-size: 1.8rem;
    }

    /* Resume Mobile Layout */
    .resume-card {
        padding: 1rem;
    }

    .resume-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .resume-info h3 {
        font-size: 1rem;
    }

    .resume-info p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .resume-download-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding-top: 60px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

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

    .section {
        padding: 2rem 0;
    }

    .skills-container {
        height: 150px;
    }

    .skills-line {
        height: 30px;
        margin-bottom: 10px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .skill-item {
        border-width: 0.5px;
    }
    
    .timeline-marker {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .skills-line {
        animation: none;
    }
    
    .hero-title {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
} 