/* Resume Website Main Stylesheet */
/* ================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    scrollbar-gutter: stable;
}

body.light-theme {
    background-color: #ffffff;
    color: #333;
}

body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   NAVIGATION STYLES
   ================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background-color 0.3s;
}

body.dark-theme nav {
    background-color: #222;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 30px;
    width: 40px;
    border-radius: 10%;
    object-fit: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link {
    display: inline-block;
    padding: 0;
    background: none !important;
}

body.dark-theme .nav-links a {
    color: #e0e0e0;
}

.nav-links a:hover,
.nav-links a.active,
.nav-link:hover,
.nav-link.active {
    color: #007bff;
    background: none !important;
    padding: 0;
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links a.active,
body.dark-theme .nav-link:hover,
body.dark-theme .nav-link.active {
    color: #007bff;
    background: none !important;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

body.dark-theme .theme-toggle {
    color: #e0e0e0;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    margin-right: 10px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.dark-theme .hamburger-menu span {
    background-color: #e0e0e0;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 250px;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-radius: 0 0 8px 8px;
}

body.dark-theme .mobile-menu {
    background-color: #222;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

body.dark-theme .mobile-menu a {
    color: #e0e0e0;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: #f0f0f0;
    color: #007bff;
    border-left-color: #007bff;
    padding-left: 24px;
}

body.dark-theme .mobile-menu a:hover,
body.dark-theme .mobile-menu a.active {
    background-color: #333;
    color: #007bff;
    border-left-color: #007bff;
}

/* ================================
   MAIN CONTENT & TYPOGRAPHY
   ================================ */

main {
    margin-top: 70px;
    padding: 40px 0;
}

section {
    margin: 60px 0;
    scroll-margin-top: 70px;
}

section.intro {
    margin-top: 0;
    padding-top: 60px;
}

h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #333;
}

body.dark-theme h1 {
    color: #fff;
}

.subtitle {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 30px;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 3px solid #007bff;
    padding-bottom: 15px;
    display: inline-block;
}

body.dark-theme h2 {
    color: #fff;
}

h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

body.dark-theme h3 {
    color: #fff;
}

h4 {
    font-size: 16px;
    color: #007bff;
    margin-bottom: 10px;
    margin-top: 25px;
    font-weight: 600;
}

body.dark-theme h4 {
    color: #007bff;
}

p {
    font-size: 14px;
    line-height: 1.6;
}

body.dark-theme p {
    color: #d0d0d0;
}

li {
    font-size: 14px;
}

/* ================================
   PROFILE & INTRO SECTION
   ================================ */

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: stretch;
    grid-auto-flow: row;
}

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

.intro-content-title {
    font-size: 20px;
    color: #007bff;
    font-weight: bold;
}

.button-group {
    display: flex;
    gap: 10px;
}

.download-btn {
    padding: 9px 17px;
    height: auto;
    line-height: 1;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

body.dark-theme .profile-section {
    background-color: #2a2a2a;
}

.profile-section p {
    font-size: 14px;
    margin-bottom: 12px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
}

body.dark-theme .info-row {
    border-bottom-color: #444;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
    min-width: 120px;
}

body.dark-theme .info-label {
    color: #aaa;
}

.info-value {
    color: #333;
    text-align: right;
}

body.dark-theme .info-value {
    color: #e0e0e0;
}

.profile-photo {
    width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    font-weight: bold;
}

body.dark-theme .profile-photo {
    background: #444;
    color: #aaa;
}

.profile-image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.profile-image-column .btn {
    width: 50%;
}

.profile-photo-bg {
    background-image: url('/static/images/bg3.JPG') !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: transparent !important;
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.profile-list {
    padding-left: 20px;
    line-height: 1.8;
}

.link-primary {
    color: #007bff;
}

.elevator-pitch-container {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 20px 0;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: justify;
}

.elevator-pitch-item {
    text-align: justify;
    margin-left: 20px;
}

.about-paragraph {
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
    text-indent: 2em;
}

/* ================================
   SKILLS SECTION
   ================================ */

.skills-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.skill-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

body.dark-theme .skill-item {
    background-color: #2a2a2a;
}

.skill-tools {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

body.dark-theme .skill-tools {
    color: #d0d0d0;
}

.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 10px;
}

.tool-name {
    flex: 1;
    font-size: 14px;
    color: #555;
}

body.dark-theme .tool-name {
    color: #d0d0d0;
}

.tool-rating-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: auto;
}

.rating-brick {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: #aaaaaa;
    transition: background-color 0.3s ease;
}

body.dark-theme .rating-brick {
    background-color: #aaaaaa;
}

.rating-brick.filled {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.tool-rating {
    font-size: 12px;
    color: #007bff;
    font-weight: 500;
    margin-left: 10px;
    min-width: 30px;
    text-align: right;
}

body.dark-theme .tool-rating {
    color: #5ba3ff;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

body.dark-theme .skill-name {
    color: #fff;
}

.skill-bar {
    background: #e0e0e0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

body.dark-theme .skill-bar {
    background-color: #444;
}

.skill-fill {
    background: linear-gradient(90deg, #007bff, #0056b3);
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.skill-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

body.dark-theme .skill-meta {
    color: #aaa;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.knowledge-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #333;
}

body.dark-theme .knowledge-item {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.language-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

body.dark-theme .language-item {
    background-color: #2a2a2a;
}

/* ================================
   EXPERIENCE & TIMELINE
   ================================ */

.timeline {
    margin-top: 30px;
}

.timeline-item {
    padding: 30px;
    border-left: 3px solid #007bff;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 4px;
}

body.dark-theme .timeline-item {
    background-color: #2a2a2a;
}

.timeline-item h3 {
    color: #333;
    margin-bottom: 5px;
}

body.dark-theme .timeline-item h3 {
    color: #fff;
}

.timeline-company {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

body.dark-theme .timeline-date {
    color: #aaa;
}

.timeline-description {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

body.dark-theme .timeline-description {
    color: #d0d0d0;
}

.education-timeline-row {
    padding: 0;
    display: flex;
    border-left: 3px solid #007bff;
    background: transparent;
}

.education-content-box {
    flex: 8;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 4px 0 0 4px;
    border: 0px solid #e2e2e2;
}

body.dark-theme .education-content-box {
    background: #2a2a2a;
    border-color: #555 !important;
}

.education-degree-title {
    margin-bottom: 5px;
}

.education-field-title {
    margin-bottom: 10px;
}

.edu-year-box {
    flex: 1;
    padding: 30px;
    background: #f0f0f0;
    border-top: 0px solid #e2e2e2;
    border-right: 0px solid #e2e2e2;
    border-bottom: 0px solid #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0;
}

.edu-year-text {
    color: #666;
    font-weight: bold;
    font-size: 14px;
}

body.dark-theme .edu-year-box {
    background: #333 !important;
    border-right-color: #555 !important;
    border-top-color: #555 !important;
    border-bottom-color: #555 !important;
}

body.dark-theme .edu-year-text {
    color: #aaa !important;
}

.edu-percentage-box {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
    border-top: 0px solid #e2e2e2;
    border-right: 0px solid #e2e2e2;
    border-bottom: 0px solid #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 4px 4px 0;
}

.edu-percentage-text {
    color: #007bff;
    font-weight: bold;
    font-size: 14px;
}

body.dark-theme .edu-percentage-box {
    background: #2a2a2a !important;
    border-right-color: #555 !important;
    border-top-color: #555 !important;
    border-bottom-color: #555 !important;
}

body.dark-theme .edu-percentage-text {
    color: #007bff !important;
}

/* ================================
   EDUCATION & CERTIFICATIONS
   ================================ */

.section-subsection-title {
    margin-top: 40px;
}

.certification-section-title {
    margin-top: 30px;
    margin-bottom: 20px;
}

.cert-note-custom {
    margin-top: 12px;
}

.cert-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.dark-theme .cert-box {
    background: #2a2a2a;
}

.cert-title {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

body.dark-theme .cert-title {
    color: #fff;
}

.cert-date {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

body.dark-theme .cert-date {
    color: #aaa;
}

.cert-topics {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

body.dark-theme .cert-topics {
    border-top-color: #444;
}

.cert-topics-label {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

body.dark-theme .cert-topics-label {
    color: #aaa;
}

.cert-topics-list {
    margin: 0;
    padding-left: 18px;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

.cert-topics-list li {
    font-size: 12px;
    margin-bottom: 4px;
}

body.dark-theme .cert-topics-list {
    color: #d0d0d0;
}

.cert-note {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

body.dark-theme .cert-note {
    color: #999;
}

.cert-grid,
.training-grid,
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.courses-heading {
    margin-top: 40px;
    margin-bottom: 20px;
}

.certification-heading {
    margin-top: 30px;
    margin-bottom: 20px;
}

.cert-note-spaced {
    margin-top: 12px;
}

/* ================================
   PORTFOLIO SECTION
   ================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.portfolio-image {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
    font-weight: bold;
}

body.dark-theme .portfolio-image {
    background: linear-gradient(135deg, #444, #555);
    color: #aaa;
}

.portfolio-info {
    padding: 20px;
    background: white;
    border-bottom: 3px solid #007bff;
}

body.dark-theme .portfolio-info {
    background-color: #2a2a2a;
}

.portfolio-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

body.dark-theme .portfolio-title {
    color: #fff;
}

.portfolio-category {
    color: #007bff;
    font-size: 16px;
}

.portfolio-meta {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.portfolio-meta span {
    color: #666;
}

.portfolio-meta-spaced {
    margin-top: 6px;
}

.portfolio-description {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.6;
}

.portfolio-label {
    color: #007bff;
}

.portfolio-section-container {
    margin-top: 10px;
}

.portfolio-features-list {
    padding-left: 16px;
    margin-top: 4px;
}

.portfolio-company-label {
    color: #666;
    margin-bottom: 4px;
}

.portfolio-duration {
    margin-top: 6px;
}

.portfolio-company {
    color: #666;
    margin-bottom: 4px;
}

.portfolio-technologies {
    margin-top: 10px;
}

.portfolio-features {
    margin-top: 10px;
}

.portfolio-github {
    margin-top: 10px;
}

.portfolio-role {
    margin-top: 4px;
}

.technology-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.technology-tag {
    background-color: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-block;
}

.portfolio-github-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.portfolio-github-link:hover {
    text-decoration: underline;
}

.portfolio-website-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.portfolio-website-link:hover {
    text-decoration: underline;
}

.portfolio-image-overlay {
    background-size: cover !important;
    background-position: center !important;
    background-image: url('/static/images/project2.jpg') !important;
    color: #ffffff !important;
    filter: brightness(0.75) contrast(1.5);
}

body.dark-theme .portfolio-meta {
    color: white;
}

body.dark-theme .portfolio-meta span {
    color: white;
}

body.dark-theme .portfolio-info p {
    color: white;
}

body.dark-theme .portfolio-info strong {
    color: #007bff;
}

body.dark-theme .portfolio-features {
    color: white;
}

body.dark-theme .portfolio-features li {
    color: white;
}

#portfolio h3:nth-of-type(1) {
    margin-top: 30px;
    margin-bottom: 20px;
}

#portfolio h3:nth-of-type(2) {
    margin-top: 40px;
    margin-bottom: 20px;
}

.social-title {
    margin-top: 30px;
}

/* ================================
   ACHIEVEMENTS SECTION
   ================================ */

.achievement-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.achievement-item.achievement {
    border-left-color: #28a745;
}

.achievement-item.recognition {
    border-left-color: #007bff;
}

body.dark-theme .achievement-item {
    background-color: #2a2a2a;
}

.achievement-title {
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

body.dark-theme .achievement-title {
    color: #fff;
}

.achievement-year {
    color: #666;
    font-size: 12px;
}

body.dark-theme .achievement-year {
    color: #aaa;
}

.achievement-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 8px;
}

.achievement-item.achievement .achievement-type-badge {
    background-color: #d4edda;
    color: #155724;
}

.achievement-item.recognition .achievement-type-badge {
    background-color: #d1ecf1;
    color: #0c5460;
}

body.dark-theme .achievement-item.achievement .achievement-type-badge {
    background-color: #1f4f2f;
    color: #7dd87d;
}

body.dark-theme .achievement-item.recognition .achievement-type-badge {
    background-color: #1f4f5f;
    color: #7dd8dd;
}

.achievement-company-header {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 16px;
    padding-bottom: 8px;
}

body.dark-theme .achievement-company-header {
    color: #007bff;
}

.achievements-container {
    margin-top: 30px;
}

.achievement-company-group {
    margin-bottom: 40px;
}

.achievements-heading {
    margin-top: 30px;
}

.achievement-group-spacing {
    margin-bottom: 40px;
}

.achievement-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

body.dark-theme .contact-info {
    background-color: #2a2a2a;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item strong {
    display: block;
    color: #333;
    margin-bottom: 8px;
}

body.dark-theme .contact-item strong {
    color: #fff;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 18px;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.social-links a i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link-linkedin {
    background: #0A66C2;
}

.social-link-linkedin:hover {
    background-color: #004182;
    transform: translateY(-3px);
}

.social-link-github {
    background: #181717;
}

.social-link-github:hover {
    background-color: #333333;
    transform: translateY(-3px);
}

/* Dark theme social icons */
body.dark-theme .social-links a {
    background: #4a9ff5;
    color: white;
}

body.dark-theme .social-link-linkedin {
    background: #0A66C2;
}

body.dark-theme .social-link-linkedin:hover {
    background-color: #2980b9;
}

body.dark-theme .social-link-github {
    background: #333333;
}

body.dark-theme .social-link-github:hover {
    background-color: #555555;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

body.dark-theme .contact-form {
    background-color: #2a2a2a;
}

/* ================================
   FORM STYLES
   ================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

body.dark-theme .form-group label {
    color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    background: white;
    color: #333;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-theme .form-wrapper {
    background-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus,
body.dark-theme .form-group select:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ================================
   TESTIMONIALS SECTION
   ================================ */

#testimonials {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: 8px;
}

body.dark-theme #testimonials {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

#testimonials h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

body.dark-theme #testimonials h2 {
    color: #e0e0e0;
}

#testimonials h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 18px;
}

body.dark-theme #testimonials h3 {
    color: #aaa;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-columns: 1fr;
    max-width: none;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    grid-auto-flow: row;
}

.testimonials-container > * {
    max-width: 100%;
}

@supports (grid-template-columns: min(100%, 300px) repeat(auto-fit, minmax(300px, 1fr))) {
    .testimonials-container {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        grid-auto-rows: 1fr;
    }
}

@media (min-width: 1200px) {
    .testimonials-container {
        grid-template-columns: repeat(min(3, auto-fit), minmax(300px, 1fr));
    }
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

body.dark-theme .testimonial-card {
    background: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-theme .testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

body.dark-theme .testimonial-avatar {
    background: #007bff;
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
}

body.dark-theme .testimonial-info h4 {
    color: #e0e0e0;
}

.testimonial-role {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 2px;
}

body.dark-theme .testimonial-role {
    color: #64b5f6;
}

.testimonial-company {
    margin: 0;
    font-size: 12px;
    color: #999;
}

body.dark-theme .testimonial-company {
    color: #777;
}

.testimonial-linkedin-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.testimonial-linkedin-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

body.dark-theme .testimonial-linkedin-link {
    color: #64b5f6;
}

body.dark-theme .testimonial-linkedin-link:hover {
    color: #90caf9;
}

.testimonial-rating {
    margin-bottom: 12px;
    display: flex;
    gap: 3px;
}

.star {
    color: #ffc107;
    font-size: 14px;
}

.testimonial-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

body.dark-theme .testimonial-text {
    color: #ccc;
}

.submit-testimonial-wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme .submit-testimonial-wrapper {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.testimonial-submit-button {
    margin-bottom: 20px;
}

#submit-testimonial {
    margin-top: 60px !important;
}

body.dark-theme #submit-testimonial {
    background-color: #2a2a2a !important;
}

#submit-testimonial h2 {
    text-align: center;
    margin-bottom: 10px;
}

#submit-testimonial h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

body.dark-theme #submit-testimonial h3 {
    color: #aaa;
}

/* ================================
   MODAL STYLES
   ================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    color: #333333;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    background-color: #ffffff;
    color: #333333;
    border-color: #ddd;
}

body.dark-theme .modal-content {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark-theme .modal-content input,
body.dark-theme .modal-content textarea,
body.dark-theme .modal-content select {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #444;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-theme .modal-header {
    border-bottom-color: #444;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-close {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
}

.modal-footer .btn {
    flex: 1;
}

.form-message {
    display: none;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================================
   FOOTER
   ================================ */

footer {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: #666;
}

body.dark-theme footer {
    background-color: #222;
    color: #aaa;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1920px) {
    .skills-container {
        grid-template-columns: repeat(5, 1fr);
    }
    .portfolio-grid,
    .knowledge-grid,
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) {
    .skills-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .portfolio-grid,
    .knowledge-grid,
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .portfolio-grid,
    .knowledge-grid,
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-grid,
    .training-grid,
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .achievement-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .intro-content {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

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

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

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    #testimonials {
        padding: 40px 20px;
    }
}

@media (max-width: 767px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid,
    .knowledge-grid,
    .language-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .intro-content {
        grid-template-columns: 1fr;
    }

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

    .skills-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .knowledge-grid,
    .language-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .timeline-item {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    input, textarea, select {
        padding: 14px !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }

    .profile-photo {
        width: 100% !important;
        max-width: 200px !important;
        margin: 20px auto !important;
    }

    .modal {
        width: 95vw !important;
        max-height: 90vh !important;
        margin: 5vh auto !important;
        overflow-y: auto !important;
    }

    .modal-body {
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    .education-content-box {
        padding: 15px !important;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .btn {
        min-height: 44px !important;
        padding: 14px 20px !important;
    }

    .hamburger-menu {
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
    }

    #testimonials {
        padding: 30px 15px;
    }

    .cert-grid,
    .training-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .achievement-items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 374px) {
    h1 {
        font-size: 20px !important;
    }

    h2 {
        font-size: 18px !important;
    }

    h3 {
        font-size: 14px !important;
    }

    body {
        font-size: 14px !important;
    }

    .profile-photo {
        max-width: 150px !important;
    }

    .nav-container {
        padding: 12px 15px !important;
    }

    input, textarea, select {
        font-size: 16px !important;
        padding: 12px 10px !important;
    }

    .btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .profile-section {
        padding: 15px !important;
    }
}
/* ================================
   INLINE STYLE CONVERSION CLASSES
   ================================ */

/* Intro Section */
.section-intro-spacing {
    margin-top: 40px;
}

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

.button-group-flex {
    display: flex;
    gap: 10px;
}

.download-btn-custom {
    padding: 9px 17px;
    height: auto;
    line-height: 1;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.get-in-touch-btn {
    padding: 9px 17px;
    height: auto;
    line-height: 1;
    font-size: 0.9rem;
}

.subtitle-custom {
    color: #3b82f6;
    font-weight: bold;
}

body.dark-theme .subtitle-custom {
    color: #3b82f6;
    font-weight: bold;
}

/* Elevator Pitch */
.elevator-pitch-item-custom {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 20px 0;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: justify;
}

.elevator-pitch-list-item {
    text-align: justify;
    margin-left: 20px;
}

/* About Section */
.about-paragraph-custom {
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
    text-indent: 2em;
}

.about-paragraph-single {
    text-align: justify;
    text-indent: 2em;
}

/* Testimonials */
.testimonials-empty-state {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.testimonials-cta-text {
    text-align: center;
    margin: 30px 0 20px;
    color: #666;
}

body.dark-theme .testimonials-cta-text {
    color: #aaa;
}

.testimonials-cta-center {
    text-align: center;
}

.submit-testimonial-btn-custom {
    margin-bottom: 20px;
}

/* Modal */
.testimonial-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content-custom {
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header-custom {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-custom {
    margin: 0;
    font-size: 24px;
}

.modal-close-btn {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #333;
}

body.dark-theme .modal-close-btn {
    color: #999;
}

body.dark-theme .modal-close-btn:hover {
    color: #e0e0e0;
}

.modal-body-custom {
    padding: 20px;
}

/* Form Messages */
.form-message-custom {
    display: none;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

body.dark-theme .form-message-custom {
    color: #e0e0e0;
}

/* Testimonial Form Footer */
.testimonial-form-footer {
    display: flex;
    gap: 10px;
}

.submit-testimonial-btn-footer {
    flex: 1;
}

.cancel-testimonial-btn {
    flex: 1;
    background-color: #6c757d;
}

.cancel-testimonial-btn:hover {
    background-color: #5a6268;
}

body.dark-theme .cancel-testimonial-btn {
    background-color: #5a6268;
}

body.dark-theme .cancel-testimonial-btn:hover {
    background-color: #6c757d;
}
