/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    background-color: #000;
    box-sizing: border-box; /* Ensure consistent padding and margin handling */
}

/* Navigation Bar */
nav {
    background-color: #1a1a1a;
    padding: 15px;
    text-align: center;
}

nav a {
    color: #66ff66;
    font-size: x-large;
    margin: 0 30px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffffff;
}

/* Hero Section */
header {
    color: white;
    text-align: center;
    padding: 100px 20px;
    background: url('your-image.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

header h1 {
    font-size: 3em;
    margin: 0;
}

header p {
    font-size: 1.5em;
}

/* Section Styles */
section {
    padding: 40px;
    margin: 20px;
    background-color: #222;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h2 {
    color: #66ff66;
    border-bottom: 2px solid #66ff66;
    padding-bottom: 10px;
}

/* Skills Section */
.skill-bar {
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 15px;
    margin: 8px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 100%;
}

@keyframes progressAnimation {
    0% { width: 0%; background-color: #4CAF50; }
    50% { width: 100%; background-color: #4CAF50; }
    100% { width: 0%; background-color: white; }
}

.skill {
    height: 100%;
    width: 0%;
    animation: progressAnimation 6s infinite ease-in-out;
    border-radius: 5px;
}

/* Main Timeline Container */
.timeline {
    position: relative;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 900px;
    background-color: #363636;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin: 25px 0;
    padding: 25px;
    background-color: #12fc45;
    color: #333;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Timeline Marker (Green Circle) */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 25px;
    width: 18px;
    height: 18px;
    background-color: #4CAF50;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Title of each timeline item */
.timeline-item h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Description/Content for each timeline item */
.timeline-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Additional information or date */
.timeline-item .date {
    font-size: 0.9rem;
    color: #999;
    margin-top: 15px;
    text-align: right;
}

/* Hover effects on timeline items */
.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

/* Links inside timeline items */
.timeline-item a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.timeline-item a:hover {
    color: #388E3C;
}

/* Certifications Section */
#certifications ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#certifications li {
    margin: 20px 0;
    padding: 20px;
    background-color: #282828;
    border-left: 4px solid #6CFF8C;
    border-bottom: 2px solid #C4D600;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

#certifications li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

#certifications li strong {
    font-size: 1.2rem;
    font-weight: 600;
    color: #E3E3E3;
    display: block;
    margin-bottom: 10px;
}

#certifications li details {
    background-color: #333;
    padding: 15px;
    border-radius: 6px;
    color: #B2FF59;
    border: 1px solid #444;
    transition: background-color 0.3s ease;
}

#certifications li details:hover {
    background-color: #444;
}

#certifications li details summary {
    font-weight: 600;
    cursor: pointer;
    color: #6CFF8C;
    transition: color 0.3s ease;
}

#certifications li details summary:hover {
    color: #B2FF59;
}

#certifications li details a {
    color: #6CFF8C;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#certifications li details a:hover {
    color: #B2FF59;
}

/* Contact Section */
form {
    display: flex;
    flex-direction: column;
}

input, textarea {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: white;
}

input::placeholder, textarea::placeholder {
    color: #aaa;
}

button {
    background-color: #66ff66;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #00ff00;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    color: white;
}

/* Media Queries for Mobile and Tablet */

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 60px 20px;
    }

    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.2em;
    }

    nav {
        padding: 10px;
    }

    nav a {
        font-size: 0.9em;
        margin: 0 15px;
    }

    section {
        padding: 30px;
        margin: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    .skill-bar {
        height: 15px;
    }

    .timeline-item {
        padding: 8px;
    }

    #certifications li {
        padding: 10px;
    }

    input, textarea {
        padding: 8px;
    }

    button {
        padding: 8px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    header {
        padding: 80px 20px;
    }

    header h1 {
        font-size: 2.8em;
    }

    header p {
        font-size: 1.3em;
    }

    nav a {
        font-size: 1em;
        margin: 0 18px;
    }

    section {
        padding: 35px;
        margin: 18px;
    }

    .skill-bar {
        height: 18px;
    }

    .timeline-item {
        padding: 12px;
    }

    #certifications li {
        padding: 12px;
    }

    input, textarea {
        padding: 9px;
    }

    button {
        padding: 9px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    header h1 {
        font-size: 4em;
    }

    header p {
        font-size: 1.8em;
    }

    nav a {
        font-size: 1.2em;
    }

    section {
        padding: 50px;
        margin: 20px auto;
        max-width: 1200px;
    }

    .timeline-item {
        padding: 20px;
    }

    #certifications li {
        padding: 20px;
    }
}
