:root {
    --primary: #f97316;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-dim: #64748b;
    --white: #ffffff;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

 body {
            background-color: var(--light-bg);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 100vh;
        }

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

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

.nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

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

.nav-contact {
    background: var(--dark);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px;
}

.nav-contact:hover {
    background: var(--primary) !important;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 10px;
    background: transparent;
    border: none;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--primary);
}

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

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 100px 20px 60px;
}

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

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Introduction Section */
.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.intro-text h1 span {
    color: var(--primary);
}

.title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 30px;
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Read More Functionality */
.intro-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.intro-details.active {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    margin-bottom: 25px;
}

.read-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn.active i {
    transform: rotate(180deg);
}

.read-less-text {
    display: none;
}

.read-more-btn.active .read-more-text {
    display: none;
}

.read-more-btn.active .read-less-text {
    display: inline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a:nth-child(1) {
    background: #0077b5;
}

.social-links a:nth-child(2) {
    background: #333;
}

.social-links a:nth-child(3) {
    background: #1da1f2;
}

/* Profile Image */
.intro-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-img-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 8px solid white;
}

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

.profile-img-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

/* Section Spacing */
.section {
    margin-bottom: 80px;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.card .date {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.card .institution {
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card .institution i {
    color: var(--primary);
}

.card-content {
    flex: 1;
}

.card-summary {
    color: var(--text-dim);
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.card-details.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

.card .details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.detail-label {
    color: var(--text-dim);
    font-weight: 500;
    min-width: 120px;
}

.detail-value {
    color: var(--dark);
    font-weight: 700;
    flex: 1;
    text-align: right;
}

/* Card Read More Button */
.card-read-more {
    margin-top: auto;
    align-self: flex-start;
}

/* More Buttons */
.more-btn-container {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--dark);
    border: 2px solid var(--primary);
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.skill-level {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.08);
    font-weight: 600;
    margin-bottom: 15px;
}

.skill-progress {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease;
}

/* Additional Skills - Hidden initially */
.additional-skill {
    display: none;
}

.skills-grid.show-all .additional-skill {
    display: flex;
}

/* Skill Colors */
.html5 .skill-icon { 
    background: rgba(227, 76, 38, 0.1); 
    color: #e34c26; 
}
.html5 .skill-progress-bar { background: #e34c26; }

.css3 .skill-icon { 
    background: rgba(38, 77, 228, 0.1); 
    color: #264de4; 
}
.css3 .skill-progress-bar { background: #264de4; }

.javascript .skill-icon { 
    background: rgba(240, 219, 79, 0.1); 
    color: #f0db4f; 
}
.javascript .skill-progress-bar { background: #f0db4f; }

.php .skill-icon { 
    background: rgba(119, 123, 180, 0.1); 
    color: #777bb4; 
}
.php .skill-progress-bar { background: #777bb4; }

.laravel .skill-icon { 
    background: rgba(255, 56, 96, 0.1); 
    color: #ff3860; 
}
.laravel .skill-progress-bar { background: #ff3860; }

.eloquent .skill-icon { 
    background: rgba(249, 115, 22, 0.1); 
    color: #f97316; 
}
.eloquent .skill-progress-bar { background: #f97316; }

.blade .skill-icon { 
    background: rgba(247, 118, 79, 0.1); 
    color: #f7764f; 
}
.blade .skill-progress-bar { background: #f7764f; }

.mvc .skill-icon { 
    background: rgba(139, 92, 246, 0.1); 
    color: #8b5cf6; 
}
.mvc .skill-progress-bar { background: #8b5cf6; }

.authentication .skill-icon { 
    background: rgba(168, 85, 247, 0.1); 
    color: #a855f7; 
}
.authentication .skill-progress-bar { background: #a855f7; }

.nodejs .skill-icon { 
    background: rgba(104, 160, 99, 0.1); 
    color: #68a063; 
}
.nodejs .skill-progress-bar { background: #68a063; }

.expressjs .skill-icon { 
    background: rgba(0, 0, 0, 0.1); 
    color: #000000; 
}
.expressjs .skill-progress-bar { background: #000000; }

.mysql .skill-icon { 
    background: rgba(0, 117, 143, 0.1); 
    color: #00758f; 
}
.mysql .skill-progress-bar { background: #00758f; }

.mongodb .skill-icon { 
    background: rgba(76, 153, 0, 0.1); 
    color: #4c9900; 
}
.mongodb .skill-progress-bar { background: #4c9900; }

.bootstrap .skill-icon { 
    background: rgba(86, 61, 124, 0.1); 
    color: #7952b3; 
}
.bootstrap .skill-progress-bar { background: #7952b3; }

.git .skill-icon { 
    background: rgba(240, 80, 51, 0.1); 
    color: #f05033; 
}
.git .skill-progress-bar { background: #f05033; }

.restapi .skill-icon { 
    background: rgba(0, 119, 181, 0.1); 
    color: #0077b5; 
}
.restapi .skill-progress-bar { background: #0077b5; }

.typescript .skill-icon { 
    background: rgba(49, 120, 198, 0.1); 
    color: #3178c6; 
}
.typescript .skill-progress-bar { background: #3178c6; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    margin-top: 40px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-btn {
    min-width: 200px;
    justify-content: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    cursor: pointer;
    border: none;
    outline: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #ea580c;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 5% 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.footer-social {
    text-align: left;
}

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

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links-footer a:hover {
    transform: translateY(-3px);
}

.social-links-footer a:nth-child(1) {
    background: #0077b5;
}

.social-links-footer a:nth-child(2) {
    background: #333;
}

.social-links-footer a:nth-child(3) {
    background: #1da1f2;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

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

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .intro-section {
        gap: 40px;
        padding: 30px;
    }
    
    .intro-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .profile-img-container {
        max-width: 320px;
        height: 320px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        margin: 12px 0;
        font-size: 1.1rem;
        padding: 12px 15px;
        width: 100%;
        text-align: center;
    }

    /* Mobile Layout: Text first, Image second */
    .intro-section {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        margin-bottom: 60px;
    }
    
    .intro-text {
        order: 1;
    }
    
    .intro-image {
        order: 2;
    }

    .intro-text h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .read-more-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-links-footer {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 80px 15px 40px;
    }
    
    .intro-text h1 {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
    
    .profile-img-container {
        max-width: 280px;
        height: 280px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        width: 100%;
        max-width: 280px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}