* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 5px 0;
}

.profile-photo-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.profile-photo {
    width: 100px;
    height: 100%;
    min-width: 100px;
    min-height: 70px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.profile-photo-placeholder {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 0 80px;
    text-align: center;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-download:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-description {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.8;
}

.hero-description p {
    margin-bottom: 20px;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.contact-form-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.form-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.skills-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.skill-card i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.tools-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tool-card i {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.tool-card p {
    color: #666;
    line-height: 1.6;
}

/* Education Section */
.education-section {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.education-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.education-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
}

.education-card:last-child {
    margin-bottom: 0;
}

.education-card h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.education-card .institution {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.education-card .year {
    color: #666;
    font-size: 1.1em;
}

/* Company Section */
.company-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.company-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.company-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.company-item {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.company-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.company-item i {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.company-item h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin: 0;
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.experience-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.experience-item {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.experience-item:hover {
    box-shadow: var(--shadow-hover);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    flex: 1;
    min-width: 250px;
}

.experience-header .date {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
}

.experience-item .role {
    color: var(--secondary-color);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-item .description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05em;
}

.experience-item .responsibilities {
    list-style: none;
    margin-bottom: 20px;
}

.experience-item .responsibilities li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.experience-item .responsibilities li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.experience-item .tech-stack {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    color: #555;
    font-size: 0.95em;
    margin-top: 20px;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.timeline-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: var(--secondary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1em;
    width: 200px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-year {
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-year {
    margin-left: 30px;
}

.timeline-content {
    flex: 1;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-item i {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-description {
        font-size: 1em;
    }

    .navbar .container {
        gap: 15px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .experience-header {
        flex-direction: column;
    }

    .experience-header .date {
        align-self: flex-start;
    }

    .timeline:before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        width: 60px;
        padding: 10px 5px;
        font-size: 0.9em;
        margin: 0 !important;
    }

    .timeline-content {
        margin-left: 0;
    }

    .skills-grid,
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .section h2 {
        font-size: 2em;
    }

    .experience-item {
        padding: 25px;
    }

    .timeline-year {
        font-size: 0.8em;
        padding: 8px 3px;
    }
}

