/* Base Styles */
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #42158C 0%, #5A2D91 50%, #6B3F96 100%);
    font-family: 'Inter', sans-serif;
    color: white;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ffffff, #e0d4ff);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #4921f4, #6B3F96);
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ffffff, #d4c4ff);
    top: 40%;
    right: 10%;
    animation-delay: 10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #5A2D91, #42158C);
    bottom: 30%;
    left: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(66, 21, 140, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Name Menu */
.name-menu {
    position: relative;
}

.name-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.name-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.name-menu:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.name-menu:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: white;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.dropdown-content a:hover::before {
    left: 100%;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 60px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    margin: 0 0 40px 0;
}

.greeting {
    display: block;
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 10px;
}

.main-name {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e0d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.subtitle {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: #d4c4ff;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(73, 33, 244, 0.3) 0%, rgba(107, 63, 150, 0.3) 100%);
    border-radius: 20px;
    pointer-events: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e0d4ff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hobbies Section */
.hobbies-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.03);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin-top: 40px;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hobby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

.hobby-card:hover::before {
    left: 100%;
}

.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.hobby-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hobby-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #e0d4ff;
}

.hobby-card p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Portfolio Main Section - Different Color */
.portfolio-main-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
    gap: 60px;
    background: linear-gradient(135deg, #2D1B69 0%, #4A2C85 50%, #5A3D91 100%);
    position: relative;
}

.portfolio-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.portfolio-image {
    flex: 1;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 27, 105, 0.8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-image:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-links {
    display: flex;
    gap: 20px;
}

.portfolio-link {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.portfolio-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Skills Section */
.skills-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.03);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    width: 100%;
    margin-top: 20px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
}

.skill-category h3 {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e0d4ff;
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #4921f4, #6B3F96);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-out;
}

.skill-level {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: right;
}

/* Project Items */
.project-list {
    margin-top: 30px;
}

.project-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #4921f4;
}

.project-item h4 {
    margin: 0 0 10px 0;
    color: #e0d4ff;
    font-size: 1.2rem;
}

.project-item p {
    margin: 0 0 10px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.project-tech {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* Writing Section */
.writing-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin-top: 40px;
}

.writing-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.writing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

.writing-card:hover::before {
    left: 100%;
}

.writing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.writing-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.writing-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #e0d4ff;
}

.writing-card p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Resume Section */
.resume-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.03);
}

.resume-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.resume-text {
    flex: 1;
}

.resume-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.resume-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-download {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.download-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.download-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #e0d4ff;
}

.download-card p {
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4921f4, #6B3F96);
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-btn:hover {
    background: linear-gradient(135deg, #5A2D91, #42158C);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(73, 33, 244, 0.4);
}
.section-title {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    width: 100%;
    position: relative;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 0;
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #e0d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4921f4, #6B3F96);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.section-title:hover h2::after {
    width: 100%;
}

.section-title:hover h2 {
    transform: translateY(-4px);
}

.section-description {
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-left: 20px;
    border-left: 3px solid #6a4dbb;
    margin: 5px 0 0 0;
    opacity: 0;
}

.section-description.show {
    max-height: 1000px;
    margin-top: 20px;
    opacity: 1;
}

.section-description p {
    margin: 15px 0;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Qualifications Section */
.qualifications-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin-top: 40px;
}

.qualification-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.qualification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

.qualification-card:hover::before {
    left: 100%;
}

.qualification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.qualification-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #e0d4ff;
}

.qualification-score {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 10px 0;
}

.qualification-details {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Academic History Section - Fixed Timeline */
.academic-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.timeline {
    max-width: 900px;
    margin-top: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #4921f4, #6B3F96);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin: 60px 0;
    position: relative;
    min-height: 120px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    margin: 0 40px;
    transition: all 0.4s ease;
    position: relative;
    max-width: 400px;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4921f4, #6B3F96);
    border: 4px solid white;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.academic-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e0d4ff;
}

.academic-duration {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
    font-style: italic;
}

.academic-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-top: 10px;
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #e0d4ff;
}

.contact-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.contact-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Reversed Layout for Education */
.reversed-layout {
    flex-direction: column;
    min-height: 100vh;
    padding: 80px 40px;
    align-items: center;
    text-align: center;
}

.reversed-layout .section-content {
    margin-bottom: 40px;
    max-width: 700px;
}

.reversed-layout img {
    width: 100%;
    max-width: 1000px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-section {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 60px;
    position: relative;
}

.section-content {
    width: 45%;
    max-width: 500px;
    text-align: left;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .header {
        padding: 15px 20px;
    }
    
    .contact-info {
        display: none;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .main-name {
        font-size: 3rem;
    }
    
    .portfolio-main-section {
        flex-direction: column;
        gap: 40px;
    }
    
    .resume-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resume-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hobbies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .writing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qualifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin: 40px 0;
    }
    
    .timeline-content {
        margin: 0 0 0 70px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}