/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: white;
    /* Remove the background gradient since the canvas will handle it */
    background: transparent;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.header-content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: #ecf0f1;
}

.company {
    font-size: 1.8rem;
    color: #DC143C;
    font-weight: 500;
    margin-bottom: 8px;
}

.date {
    font-size: 1.2rem;
    color: #95a5a6;
    font-weight: 400;
    font-style: italic;
}

/* Animation Container */
.animation-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#aluminum-rain {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

/* Section Styles */
.experience-section,
.skills-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-section:hover,
.skills-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.experience-section h3,
.skills-section h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.experience-section h3::after,
.skills-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #DC143C, #8B0000);
    border-radius: 2px;
}

/* Experience Items */
.experience-item {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #DC143C;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #8B0000;
    transform: translateX(5px);
}

.experience-item h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.experience-item p {
    margin-bottom: 15px;
    color: #e0e0e0;
    line-height: 1.7;
}

.experience-item ul {
    list-style: none;
    padding-left: 20px;
}

.experience-item li {
    position: relative;
    margin-bottom: 8px;
    color: #e0e0e0;
    padding-left: 20px;
}

.experience-item li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #DC143C;
    font-weight: bold;
}

.experience-item li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.experience-item li span {
    flex: 1;
}



/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #DC143C;
    transform: translateY(-3px);
}

.skill-category h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .header-content h2 {
        font-size: 2.2rem;
    }
    
    .logo {
        width: 100px;
    }
    
    .experience-section,
    .skills-section {
        padding: 25px 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .experience-section h3,
    .skills-section h3 {
        font-size: 1.5rem;
    }
    
    .experience-item h4 {
        font-size: 1.1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2c2c2c;
}

::-webkit-scrollbar-thumb {
    background: #DC143C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B0000;
}

/* Back Button Styles */
.back-button-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background: rgba(220, 20, 60, 0.2);
    border-color: #DC143C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
    color: white;
    text-decoration: none;
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-button::before {
    content: '←';
    margin-right: 8px;
    font-weight: bold;
    color: #DC143C;
    transition: all 0.3s ease;
}

.back-button:hover::before {
    color: #8B0000;
    transform: translateX(-2px);
}

/* Header positioning for back button */
.header {
    position: relative;
}