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

:root {
    --bg-color: #d4e5e3;
    --text-color: #1a1a1a;
    --border-color: #1a1a1a;
    --accent-color: #1a1a1a;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #d4e5e3;
    --border-color: #d4e5e3;
    --accent-color: #d4e5e3;
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    border: 3px solid var(--border-color);
    border-radius: 30px;
    min-height: calc(100vh - 40px);
    position: relative;
    background: linear-gradient(135deg, rgb(212, 229, 227) 0%, rgb(200, 220, 218) 100%);
}

body.dark-mode .container {
    background: linear-gradient(135deg, rgb(26, 26, 26) 0%, rgb(35, 35, 35) 100%);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

.resume-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.resume-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

/* Hero Section */
.hero {
    padding: 80px 40px;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: normal;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.links {
    display: flex;
    gap: 30px;
}

.link-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.link-item:hover {
    opacity: 0.7;
}

.arrow {
    font-size: 14px;
}

/* Hero Image */
.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
}

.avatar-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 2px;
}

.arrow-down {
    font-size: 20px;
    animation: bounce 2s infinite;
    color: var(--text-color);
    text-decoration: none;
    display: block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* About Section */
.about-section {
    padding: 80px 40px;
    border-top: 2px solid var(--border-color);
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-img-container {
    flex-shrink: 0;
}

.about-img {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.about-content {
    flex: 1;
}
.section-title {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: normal;
    text-align: center;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--text-color);
   margin-left: auto;
    margin-right: auto;
}

.about-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: normal;
}

.about-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
}

.about-details {
    display: flex;
    gap: 40px;
}

.details-column {
    flex: 1;
}

.details-column ul {
    list-style: none;
}

.details-column li {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.details-column strong {
    font-weight: 600;
    margin-right: 8px;
}

/* Skills Section */
.skills-section {
    padding: 80px 40px;
    border-top: 2px solid var(--border-color);
}

.skills-section .text-center {
    margin-bottom: 60px;
}

.skills-section .section-divider {
    margin-left: auto;
    margin-right: auto;
}

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

.skill-category {
    padding: 30px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.category-icon {
    font-size: 28px;
}

.skill-category h4 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-icon {
    font-size: 18px;
}

.skill-item span {
    font-size: 16px;
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    padding: 80px 40px;
    border-top: 2px solid var(--border-color);
}

.projects-section .text-center {
    margin-bottom: 60px;
}

.projects-section .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.project-card {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-header {
    margin-bottom: 25px;
}

.project-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.project-header h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.project-body h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.8;
}

.project-concept,
.project-approach {
    margin-bottom: 20px;
}

.project-concept p,
.project-approach p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
}

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

.tech-tag {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    background: transparent;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.project-features h6 {
    margin-bottom: 12px;
}

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

.project-features li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.project-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.6;
}

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

.project-links .view-cert-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-links .view-cert-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Education Section */
.education-section {
    padding: 80px 40px;
    border-top: 2px solid var(--border-color);
}

.education-section .text-center {
    margin-bottom: 60px;
}

.education-section .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.education-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    left: -46px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-content {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h4 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.timeline-date {
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
}

.timeline-body h5 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-body p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
    opacity: 0.85;
}

.timeline-body p:last-child {
    margin-bottom: 0;
}

/* Certificates Section */
.certificates-section {
    padding: 80px 40px;
    border-top: 2px solid var(--border-color);
}

.certificates-section .text-center {
    margin-bottom: 60px;
}

.certificates-section .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.certificates-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.certificate-card {
    min-width: 100%;
    display: flex;
    gap: 30px;
    padding: 30px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-color);
}

.certificate-image {
    flex-shrink: 0;
    width: 350px;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificate-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.certificate-content h5 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.certificate-issuer {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.certificate-date {
    font-size: 14px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 15px;
    width: fit-content;
}

.certificate-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 20px;
    flex-grow: 1;
}

.view-cert-btn {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s;
    display: inline-block;
}

.view-cert-btn:hover {
    opacity: 0.6;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--text-color);
}

/* Contact Section */
.contact-section {
    padding: 80px 40px;
    border-top: 2px solid var(--border-color);
}

.contact-section .text-center {
    margin-bottom: 60px;
}

.contact-section .section-divider {
    margin-left: auto;
    margin-right: auto;
}

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

.contact-info-card {
    padding: 40px 30px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-info-card h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-info-card p {
    font-size: 16px;
    margin: 0;
    opacity: 0.85;
}

.contact-info-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info-card a:hover {
    opacity: 0.6;
}

/* Footer */
.footer {
    padding: 40px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 15px;
    opacity: 0.7;
}

/* Works Section */
.works-section {
    padding: 80px 40px;
    border-top: 2px solid var(--border-color);
}

.works-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    opacity: 0.7;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .links {
        justify-content: center;
    }
    
    nav {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 48px;
    }
    
    .hero-image {
        width: 300px;
        height: 300px;
    }
    
    .avatar-image {
        width: 200px;
        height: 200px;
    }
    
    .circular-text {
        width: 240px;
        height: 240px;
        font-size: 12px;
    }
    
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    
    .about-img {
        width: 280px;
        height: 280px;
    }
    
    .about-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .education-timeline {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -36px;
    }
    
    .timeline-header {
        flex-direction: column;
    }
    
    .certificate-card {
        flex-direction: column;
    }
    
    .certificate-image {
        width: 100%;
        height: 250px;
    }
}
