/* About Section */
.about {
    background-color: var(--light-color);
    overflow-x: hidden;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* About Text */
.about-text {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
}

.about-text h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    word-break: normal;
    overflow-wrap: break-word;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* Education Info */
.education-info {
    background: linear-gradient(135deg, var(--light-color) 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

.education-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-info h4 i {
    font-size: 1.2rem;
}

.education-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.education-status {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.education-info > p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.education-info > p i {
    color: var(--primary-color);
}

/* Community Engagement */
.community-engagement {
    padding: 1.5rem;
    background-color: rgba(135, 206, 235, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.community-engagement h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.community-engagement h4 i {
    font-size: 1.2rem;
}

/* About Image */
.about-image {
    text-align: center;
    position: relative;
    min-width: 0;
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Floating Elements */
.about-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.about-floating {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.about-floating-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.about-floating-2 {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.about-floating-3 {
    top: 80%;
    left: 15%;
    animation-delay: 4s;
}

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

/* Skills Container */
.skills-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
    margin-top: 2rem;
}

.skills-container h4 {
    color: var(--dark-color);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.skills-container h4 i {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Skills Subtitle */
.skills-subtitle {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-subtitle i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Core Skills Grid (Progress Bars) */
.core-skills-section {
    margin-bottom: 3rem;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.8rem;
    width: 100%;
}

/* Progress Bar Styles */
.skill-item {
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    width: 100%;
}

.skill-name {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    flex: 1;
    min-width: 0;
}

.skill-name i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.skill-percentage {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    background: rgba(25, 118, 210, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.skill-bar {
    background-color: #e8eff5;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

/* Progress bar animation */
.skill-progress {
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    display: block;
}

/* Progress bar width definitions - ALL PERCENTAGES */
.skill-progress[data-width="75%"] { --target-width: 75%; }
.skill-progress[data-width="78%"] { --target-width: 78%; }
.skill-progress[data-width="72%"] { --target-width: 72%; }
.skill-progress[data-width="70%"] { --target-width: 70%; }
.skill-progress[data-width="68%"] { --target-width: 68%; }
.skill-progress[data-width="65%"] { --target-width: 65%; }
.skill-progress[data-width="62%"] { --target-width: 62%; }
.skill-progress[data-width="60%"] { --target-width: 60%; }
.skill-progress[data-width="80%"] { --target-width: 80%; }
.skill-progress[data-width="85%"] { --target-width: 85%; }
.skill-progress[data-width="82%"] { --target-width: 82%; }

.skill-progress.animated {
    width: var(--target-width);
}

/* Skill Cards Section */
.skill-cards-section {
    margin-top: 2rem;
    width: 100%;
}

/* Collapsible Toggle Button */
.skills-toggle-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.2);
    position: relative;
    overflow: hidden;
}

.skills-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

.skills-toggle-btn:active {
    transform: translateY(0);
}

.skills-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.skills-toggle-btn:hover::before {
    left: 100%;
}

.skills-toggle-btn i:first-child {
    font-size: 1.2rem;
}

.toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.skills-toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Collapsible Content Container */
#techStackContent {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#techStackContent.show {
    display: grid;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skill Cards Grid */
.skill-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.skill-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(25, 118, 210, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
    box-sizing: border-box;
}

.skill-card.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(25, 118, 210, 0.15);
    border-color: var(--primary-color);
}

.skill-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-card-content {
    flex: 1;
    min-width: 0;
}

.skill-card-content h6 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    word-wrap: break-word;
}

.skill-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.skill-card-tag {
    background: linear-gradient(135deg, 
        rgba(25, 118, 210, 0.1) 0%, 
        rgba(25, 118, 210, 0.05) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(25, 118, 210, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.skill-card-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Card Color Variants - UPDATED WITH AZURE THEME */
.cloud-card .skill-card-icon {
    color: #0078D4; /* Azure blue */
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.1) 0%, 
        rgba(0, 120, 212, 0.05) 100%);
}

.database-card .skill-card-icon {
    color: #0078D4;
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.1) 0%, 
        rgba(0, 120, 212, 0.05) 100%);
}

.testing-card .skill-card-icon {
    color: #4CAF50; /* Green for testing */
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.1) 0%, 
        rgba(76, 175, 80, 0.05) 100%);
}

.security-card .skill-card-icon {
    color: #dc3545; /* Red for security */
    background: linear-gradient(135deg, 
        rgba(220, 53, 69, 0.1) 0%, 
        rgba(220, 53, 69, 0.05) 100%);
}

.devops-card .skill-card-icon {
    color: #FF6B35;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.1) 0%, 
        rgba(255, 107, 53, 0.05) 100%);
}

.tools-card .skill-card-icon {
    color: #68217A; /* Visual Studio purple */
    background: linear-gradient(135deg, 
        rgba(104, 33, 122, 0.1) 0%, 
        rgba(104, 33, 122, 0.05) 100%);
}

.web-card .skill-card-icon {
    color: #4CAF50;
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.1) 0%, 
        rgba(76, 175, 80, 0.05) 100%);
}

/* Projects Notice */
.projects-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
    animation: fadeInDown 0.6s ease-out;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-content i {
    color: #ff9800;
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.notice-text {
    color: #856404;
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.notice-text strong {
    color: #664d03;
}

/* Project Card Visibility */
.project-card.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.project-card.visible {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* View More Container */
.view-more-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

#viewMoreBtn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.2);
    box-sizing: border-box;
}

#viewMoreBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.3);
}

#viewMoreBtn:active {
    transform: translateY(-1px);
}

#viewMoreBtn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

#viewMoreBtn.active i {
    transform: rotate(180deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
    object-fit: contain;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

/* Large tablets and small laptops (1100px and below) */
@media (max-width: 1100px) {
    .about-content {
        gap: 3rem;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .progress-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .skill-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets and landscape phones (991px and below) */
@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text {
        order: 2;
        width: 100%;
    }
    
    .about-image {
        order: 1;
        width: 100%;
    }
    
    .about-img {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .skills-container {
        padding: 2.5rem;
    }
}

/* Small tablets and large phones (768px and below) */
@media (max-width: 768px) {
    .about-content {
        gap: 2rem;
        margin-bottom: 2rem;
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .about-img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .skills-container {
        padding: 2rem;
        margin: 0;
        width: 100%;
    }
    
    .skills-container h4 {
        font-size: 1.5rem;
    }
    
    .skills-subtitle {
        font-size: 1.2rem;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .skill-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .skill-name {
        font-size: 1rem;
        flex-wrap: wrap;
    }
    
    .skill-card {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .skill-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .education-info {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .community-engagement {
        padding: 1.2rem;
    }
    
    .skills-toggle-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .skills-toggle-btn i:first-child {
        font-size: 1rem;
    }
    
    .projects-notice {
        padding: 1rem;
        margin: 1rem 0 1.5rem 0;
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .view-more-container {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    #viewMoreBtn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 90%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .about-content {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .about-img {
        max-width: 280px;
    }
    
    .skills-container {
        padding: 1.5rem;
    }
    
    .skills-container h4 {
        font-size: 1.3rem;
    }
    
    .skills-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .skill-name i {
        font-size: 1.1rem;
    }
    
    .skill-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .skill-percentage {
        margin-left: 0;
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
    }
    
    .skill-bar {
        height: 10px;
    }
    
    .skill-card {
        padding: 1.2rem;
    }
    
    .skill-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .skill-card-content h6 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .skill-card-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .education-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .education-status {
        align-self: flex-start;
    }
    
    .skills-toggle-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .about-text p {
        font-size: 0.9rem;
    }
    
    .about-img {
        max-width: 100%;
    }
    
    .skills-container {
        padding: 1rem;
    }
    
    .progress-grid {
        gap: 0.8rem;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .skill-card-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-percentage {
        font-size: 0.8rem;
    }
}

/* Landscape mode specific fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-img {
        max-width: 250px;
    }
    
    .skills-container {
        padding: 1.5rem;
    }
}

/* Ensure all elements have proper box sizing */
* {
    box-sizing: border-box;
}