/* ========================================
   Variables & Reset
   ======================================== */
:root {
    --primary-color: #1976D2;
    --secondary-color: #2196F3;
    --text-dark: #2e2e2e;
    --text-light: #9da0a7;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #dedede;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section.bg-light {
    background: var(--bg-white);
}

.section-title {
    font-size: 34px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #3d4451;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
    padding: 10px;
    box-shadow: var(--shadow-sm), var(--shadow-md);
}

/* ========================================
   Header Section
   ======================================== */
#header {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 20px;
    text-align: center;
}

.profile-section {
    max-width: 940px;
    margin: 0 auto;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm), var(--shadow-md);
    padding: 50px;
    display: flex;
    gap: 50px;
    align-items: center;
}

.profile-image {
    flex: 0 0 40%;
}

.profile-image img {
    width: 100%;
    height: 385px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.profile-info {
    flex: 1;
    text-align: left;
    color: var(--text-dark);
}

.greeting {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    padding: 7px 12px;
    text-transform: uppercase;
    margin-bottom: 28px;
    position: relative;
}

.greeting::before {
    content: '';
    width: 0;
    height: 0;
    top: 100%;
    left: 5px;
    display: block;
    position: absolute;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-left-color: var(--primary-color);
}

.profile-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #3d4451;
}

.name-highlight {
    font-weight: 700;
}

.profile-info h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.profile-details {
    list-style: none;
}

.profile-details li {
    margin-bottom: 13px;
    font-size: 15px;
}

.profile-details strong {
    display: inline-block;
    width: 120px;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-details a {
    color: var(--text-light);
}

/* ========================================
   About Section
   ======================================== */
#about {
    background: var(--bg-white);
}

.about-content {
    max-width: 940px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm), var(--shadow-md);
    padding: 40px;
    background: var(--bg-white);
}

.about-content p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
}

.action-buttons {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm), var(--shadow-md);
}

.btn-primary:hover {
    background: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Skills Section
   ======================================== */
.skills-list {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.skill-name {
    font-weight: 600;
    font-size: 16px;
    width: 100px;
    flex-shrink: 0;
}

.skill-bar {
    flex: 1;
    height: 30px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease;
}

.skill-percent {
    font-weight: 700;
    font-size: 14px;
    width: 50px;
    text-align: right;
    color: var(--primary-color);
}

/* ========================================
   Experience Section (Timeline)
   ======================================== */
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-section {
    margin-bottom: 50px;
}

.timeline-category {
    font-size: 24px;
    font-weight: 600;
    color: #3d4451;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.timeline-item {
    background: var(--bg-white);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    background: var(--primary-color);
    color: var(--bg-white);
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 10px;
}

.timeline-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #3d4451;
}

.timeline-item .company {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   Interests Section
   ======================================== */
#interests {
    background: var(--bg-white);
}

.interest-description {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.interest-item {
    background: var(--bg-white);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.interest-item:nth-child(odd) {
    background: var(--primary-color);
    color: var(--bg-white);
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.interest-item i {
    font-size: 2.2em;
    display: block;
    margin-bottom: 10px;
}

.interest-item span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   Projects Section
   ======================================== */
#projects {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.project-status {
    background: #4caf50;
    color: var(--bg-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #3d4451;
    margin-bottom: 15px;
}

.project-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links .btn {
    flex: 1;
    text-align: center;
}

.project-links .btn i {
    margin-right: 8px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    box-shadow: var(--shadow-sm), var(--shadow-md);
    border-radius: 4px;
}

.contact-info h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #3d4451;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 18px;
    width: 25px;
}

.contact-list a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: var(--primary-color);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #333;
    color: var(--bg-white);
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.footer a {
    color: var(--bg-white);
    text-decoration: underline;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        padding: 20px;
    }

    .profile-image {
        flex: 0 0 100%;
    }

    .profile-image img {
        height: auto;
    }

    .profile-info {
        text-align: center;
    }

    .profile-info h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .skill-item {
        flex-wrap: wrap;
    }

    .skill-name {
        width: 100%;
        margin-bottom: 5px;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }

    .profile-section {
        padding: 15px;
        gap: 20px;
    }

    .about-content {
        padding: 20px;
    }

    .about-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding: 15px;
    }

    .project-content {
        padding: 20px;
    }

    .project-image {
        height: 180px;
    }
}