/* Global Styles */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --accent-color: #2196f3;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #555;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

section {
    padding: 80px 0;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #051b3b);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.location-info {
    margin-top: 20px;
}

.location-info p {
    margin-bottom: 10px;
}

.location-info a {
    color: white;
    margin: 0 5px;
}

.location-info a:hover {
    color: var(--accent-color);
}

/* About Section */
#about {
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Experience Section */
.experience-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.experience-date {
    color: var(--accent-color);
    font-weight: 500;
}

.experience-type {
    font-style: italic;
    margin-bottom: 5px;
}

.experience-tech {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.experience-item ul {
    padding-left: 20px;
}

.experience-item li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    list-style-type: disc;
}

/* Skills Section */
#skills {
    background-color: var(--light-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.skill-category {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.skill-category ul {
    padding-left: 20px;
}

.skill-category li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
}

/* Education Section */
.education-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.education-header h3 {
    color: var(--primary-color);
}

.education-date {
    color: var(--accent-color);
    font-weight: 500;
}

/* Contact Section */
#contact {
    background-color: var(--light-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Animation Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item, .experience-item, .skill-category, .education-item, .contact-item {
    opacity: 0;
}

.portfolio-item.animate, .experience-item.animate, .skill-category.animate, .education-item.animate, .contact-item.animate {
    animation: fadeIn 0.6s ease forwards;
}

.skill-category:nth-child(2).animate { animation-delay: 0.1s; }
.skill-category:nth-child(3).animate { animation-delay: 0.2s; }
.skill-category:nth-child(4).animate { animation-delay: 0.3s; }
.skill-category:nth-child(5).animate { animation-delay: 0.4s; }
.skill-category:nth-child(6).animate { animation-delay: 0.5s; }

/* Header Scroll Effect */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-date {
        margin-top: 5px;
    }

    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .education-date {
        margin-top: 5px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
#portfolio {
    background-color: white;
}

.portfolio-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.portfolio-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.portfolio-link i {
    margin-right: 5px;
}

.portfolio-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.portfolio-section {
    margin-bottom: 20px;
}

.portfolio-section h4 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.portfolio-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.portfolio-list {
    padding-left: 20px;
    margin: 0;
}

.portfolio-list li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
    line-height: 1.5;
}

.portfolio-tech-container {
    display: flex;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.portfolio-tech-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 15px;
}

.portfolio-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Media queries for portfolio section */
@media screen and (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .portfolio-link {
        margin-top: 10px;
    }
    
    .portfolio-tech-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .portfolio-tech-label {
        margin-bottom: 10px;
    }
}

/* Code styling */
code {
    background-color: rgba(0,0,0,0.05);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.portfolio-code {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.portfolio-code pre {
    margin: 0;
}

.portfolio-code code {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-color);
} 