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

:root {
    --primary-color: #0a5063;
    --secondary-color: #69aae2;
    --text-heading-color: #0d7693;
    --text-hover-color: #667eea;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --main-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    /* background: linear-gradient(135deg, #7d8fdf 0%, #764ba2 100%); */
    /* background: linear-gradient(135deg, #1d9dc1 0%, #5cb3cb 100%); */

    background: linear-gradient(135deg, #b8d8da 0%, #95b1da 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header .title {
    font-size: 1.4em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    min-height: 600px;
}

.sidebar {
    background: #f8f9fa;
    padding: 40px;
    border-right: 1px solid #eee;
}

.content {
    padding: 40px;
}

.section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    color: var(--text-heading-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.section h2:hover {
    color: var(--text-hover-color);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/*  Contact  */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 5px;
    text-decoration: none;
}

.contact-info ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 5px 0 0;
}

.contact-info li { display: flex; }

.contact-info a {
  display: flex;                /* icon + text aligned */
  align-items: center;
  gap: 20px;
  padding: 6px 10px;           /* large, consistent hover/click area */
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.contact-info a:hover {
  transform: translateY(-2px);
  background-color: rgba(79,172,254,.12);
  font-size: 16px;
}

/* Mobile: stack, keep text starting at same column */
@media (max-width: 768px) {
  .contact-info ul {
    flex-direction: column;
    align-items: center;   /* center the group */
    gap: 1px;
  }
  .contact-info li {
    width: 100%;
    max-width: 360px;      /* comfortable tap target width */
  }
  .contact-info a {
    width: 100%;           /* a fills li so the whole row is clickable */
    justify-content: flex-start;
    text-align: left;
  }
}



.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
    list-style: none;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-link {
    text-decoration: none;
}

/*  Summary  */

.summary-text {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

.summary-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.1), transparent);
    transition: left 0.5s ease;
}

.summary-text:hover::before {
    left: 100%;
}

.summary-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.2);
    border-color: var(--secondary-color);
}

.summary-text ul {
    list-style: none;
    padding-left: 0;
}

.summary-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.summary-text li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #4facfe;
    font-weight: bold;
}

.summary-text li:hover {
    color: #188ccf;
    transform: translateX(5px);
}

/*  Education  */

.education-item {
    background: #f0f8ff;
    border: 1px solid #b8d4f1;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

.education-degree {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.education-school {
    color: var(--text-heading-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.education-date {
    color: #718096;
    font-size: 16px;
    font-weight: 500;
}

/*  Experience  */
/* 
.experience-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.1), transparent);
    transition: left 0.5s ease;
}

.experience-item:hover::before {
    left: 100%;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.2);
    border-color: var(--secondary-color);
} */

.experience-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.experience-company {
    color: var(--text-heading-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.experience-date {
    color: #718096;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}
/* 
.experience-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.experience-item.expanded .experience-details {
    max-height: 1000px;
} */



.experience-timeline {
    position: relative;
    padding-left: 30px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4facfe;
}

.experience-item {
    position: relative;
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #4facfe;
    border-radius: 50%;
    border: 3px solid white;
}

.experience-item:hover {
    transform: translateY(-4px);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.2);
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.1), transparent);
    transition: left 0.5s ease;
}

/* .project-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.project-duration {
    color: #888;
    margin-bottom: 15px;
} */

.responsibilities {
    margin-top: 15px;
}

.responsibilities ul {
    list-style: none;
    padding-left: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.responsibilities li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #4facfe;
    font-weight: bold;
}

.responsibilities li:hover {
    color: #188ccf;
    transform: translateX(5px);
}

.responsibilities-intro {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* .toggle-btn {
    background: none;
    border: none;
    color: var(--text-heading-color);
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: var(--text-hover-color);
} */

/*  Skills  */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skill-item {
    background: linear-gradient(135deg, #459aa3, #86b8e5);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

/*  Awards  */

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

.awards-list li {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    position: relative;
    padding-left: 50px;
}

.awards-list li::before {
    content: '🏆';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
}

/*  Certifications  */

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

.certifications-list li {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    position: relative;
    padding-left: 50px;
}

.certifications-list li::before {
    content: '📜';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
}



@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2.5em;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 220px;        /* Keeps items same width */
        text-align: left;        /* Ensures text starts same place */
        justify-content: flex-start;
    }
    
    .sidebar, .content {
        padding: 20px;
    }

    .content {
        order: 1;
    }
    .sidebar {
        order: 2;
    }
    
}