/* Mechanical Engineering Theme Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0077b5;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0077b5 0%, #005a87 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gear {
    position: absolute;
    width: 80px;
    height: 80px;
}

.gear1 {
    top: 20%;
    left: 10%;
    animation: rotate-clockwise 20s linear infinite;
}

.gear2 {
    top: 60%;
    right: 15%;
    animation: rotate-counterclockwise 25s linear infinite;
}

.gear3 {
    bottom: 30%;
    left: 70%;
    animation: rotate-clockwise 15s linear infinite;
}

.floating-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    height: 2px;
}

.line1 {
    top: 40%;
    left: -100%;
    width: 200px;
    animation: float-right 15s linear infinite;
}

.line2 {
    top: 70%;
    right: -100%;
    width: 150px;
    animation: float-left 12s linear infinite;
}

.line3 {
    bottom: 20%;
    left: -100%;
    width: 180px;
    animation: float-right 18s linear infinite;
}

.circuit-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.dot1 {
    top: 30%;
    left: 20%;
    animation: pulse 3s ease-in-out infinite;
}

.dot2 {
    top: 80%;
    right: 30%;
    animation: pulse 4s ease-in-out infinite;
}

.dot3 {
    bottom: 50%;
    left: 80%;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-counterclockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes float-right {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes float-left {
    0% { right: -100%; }
    100% { right: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #0077b5;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #f4f7fa;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-text a {
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
}

.about-text a:hover {
    text-decoration: underline;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background-color: #f4f7fa;
}

.skills h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.skill-category h3 {
    color: #0077b5;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Timeline Section */
.timeline {
    padding: 80px 0;
    background-color: #f4f7fa;
}

.timeline h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #0077b5;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 50%;
    margin-left: 30px;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    margin-right: 30px;
    text-align: right;
}

.timeline-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    width: calc(50% - 30px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: #0077b5;
    border-radius: 50%;
    border: 4px solid #fff;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -40px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -40px;
}

.timeline-content h3 {
    color: #0077b5;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
    background-color: #fff;
}

.achievements h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-item {
    background-color: #f4f7fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item h3 {
    color: #0077b5;
    margin-bottom: 1rem;
}

.project-video {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-video video {
    display: block;
    width: 100%;
    height: auto;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-item {
    background-color: #f4f7fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #2c3e50;
    color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #1a252f;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin-left: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        left: 60px;
        width: calc(100% - 80px);
        text-align: left;
        margin: 0;
    }

    .timeline-content::before {
        left: -40px !important;
    }
}