/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    color: #e0e0e0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header */
header {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid #34495e;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
    z-index: 0;
    animation: slide 4s infinite;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    position: relative;
    z-index: 1;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

header nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s, background 0.3s;
    position: absolute;
    left: 0;
    bottom: -5px;
}

header nav ul li a:hover::after {
    width: 100%;
    background: #1abc9c;
}

.header-content h1 {
    margin: 0;
    font-size: 2.5em;
    animation: fadeIn 2s ease-in;
}

.header-content p {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.8;
}

/* Section Styles */
section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    position: relative;
    color: #3498db;
    animation: fadeIn 2s ease-in;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 10px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: bottom right;
    animation: scale 1s forwards;
}

/* Projects Section */
#projects {
    background-color: #2c3e50;
    border-top: 1px solid #34495e;
}

.project {
    background-color: #34495e;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    position: relative;
    overflow: hidden;
    animation: projectReveal 1s ease-out;
}

.project::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
    transform: skewX(-20deg);
    animation: reveal 2s forwards;
}

.project h3 {
    font-size: 1.8em;
    margin-top: 0;
    color: #ecf0f1;
    position: relative;
    z-index: 1;
    animation: pulse 2s infinite;
}

.project p {
    font-size: 1em;
    color: #bdc3c7;
    position: relative;
    z-index: 1;
}

/* Skills, Certifications, Education */
#skills, #certifications, #education {
    background-color: #34495e;
    border-top: 1px solid #2c3e50;
}

#skills ul, #certifications ul, #education ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#skills li, #certifications li, #education li {
    font-size: 1.1em;
    margin: 10px 0;
    animation: fadeIn 2s ease-in;
}

/* Contact Form */
#contact {
    background-color: #2c3e50;
    border-top: 1px solid #34495e;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

#contact form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
    color: #ecf0f1;
}

#contact form input, #contact form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #95a5a6;
    background-color: #34495e;
    color: #ecf0f1;
    font-size: 1em;
    transition: background 0.3s, border 0.3s;
}

#contact form input:focus, #contact form textarea:focus {
    background-color: #2c3e50;
    border-color: #3498db;
}

#contact form button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
}

#contact form button:hover {
    background-color: #1abc9c;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #34495e;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Animations */
@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes projectReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
    0% { left: -100%; }
    100% { left: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes chartAnimation {
    0% { height: 0; }
    100% { height: 100%; }
}

@keyframes waveAnimation {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Data Visualization Animation */
.data-chart {
    background: #3498db;
    height: 100px;
    margin: 20px auto;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.data-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: waveAnimation 5s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    .header-content h1 {
        font-size: 2em;
    }

    #projects .project {
        width: 90%;
        margin: 20px auto;
    }
}

