/* About Section */
.about {
    width: 100%;
    padding: 50px 0;
    color: rgb(240, 232, 220);
}

.about .row {
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 10%;
    gap: 20px;
    justify-content: space-between;
}

.aboutImage {
    max-width: 40%;
    text-align: center;
}

.aboutImage img {
    width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    object-fit: cover;
    opacity: 0.5;
}

.aboutImage img:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
    opacity: 1; /* When hovered, it will become fully opaque */
}


.about-container {
    text-align: center;
    color: white;
    position: relative;
    margin: 0 auto;
}

.developer {
    font-size: 25px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    display: inline-block;
    animation: typing 4s steps(30) forwards, blink 0.7s infinite;
    color: rgb(240, 232, 220);
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.51);
}

.laptop {
    width: 310px;
    height: 200px;
    background: #333;
    border-radius: 10px;
    margin: 20px auto;
    padding: 10px;
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    background: black;
    color: #00ff00;
    font-family: monospace;
    padding: 10px;
    overflow: hidden;
    text-align: left;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ff00;
    margin-left: 2px;
    animation: blink 0.5s infinite;
}

.floating-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.icon {
    font-size: 24px;
    opacity: 0.8;
    animation: float 3s infinite ease-in-out;
}

.icon.html {
    color: #e34c26;
}

.icon.css {
    color: #264de4;
    animation-delay: 0.5s;
}

.icon.js {
    color: #f7df1e;
    animation-delay: 1s;
}

.dev-avatar {
    font-size: 60px;
    animation: headMove 2s infinite alternate;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 300px;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes headMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

.ahsanAbout {
    width: 60%;
    text-align: left;
}

.ahsanAbout h1 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.ahsanAbout h3 {
    font-size: 1.5rem;
    color: #02eeff;
    margin-bottom: 15px;
}

.ahsanAbout p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.theme-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.theme-list li {
    font-size: 1.5rem;
    margin: 8px 0;
}

.theme-list li b {
    font-weight: 600;
    color: #02eeff;
}

.about .btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    border: 2px solid #00e1ff;
    color: #02eeff;
    background-color: transparent;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.about .btn:hover {
    background-color: #02eeff;
    color: #ffffff;
    transform: scale(1.05);
}

.about .btn a {
    text-decoration: none;
    color: inherit;
}

.about .btn:hover a {
    color: inherit;
}

/* Tabs */
.tab-container {
    width: 80%;
    margin: auto;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #555;
    flex-wrap: wrap;
}

.tab-link {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: white;
    font-size: 1.375rem;
    outline: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
    text-align: center;
}

.tab-link:hover,
.tab-link:focus {
    color: #00e1ff;
    outline: none;
}

.tab-link.active {
    color: #00e1ff;
    border-bottom: 2px solid #00e1ff;
}

.tab-content {
    padding: 10px;
    border-radius: 5px;
    color: white;
}

.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.3s forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .about {
        padding: 30px 0;
    }

    .about .row {
        flex-direction: column;
        padding: 10px 5%;
    }

    .aboutImage {
        max-width: 100%;
    }

    .aboutImage img {
        max-width: 100%;
        height: auto;
    }

    .ahsanAbout {
        width: 100%;
        text-align: center;
    }

    .ahsanAbout h1 {
        font-size: 2rem;
    }

    .ahsanAbout h3 {
        font-size: 1.3rem;
    }

    .ahsanAbout p {
        font-size: 1rem;
    }

    .theme-list li {
        font-size: 1.2rem;
    }

    .about .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tab-container {
        width: 90%;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-link {
        width: 100%;
        font-size: 1.125rem;
        padding: 15px;
    }

    .tab-content {
        padding: 15px;
    }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .about {
        padding: 20px 0;
    }

    .ahsanAbout h1 {
        font-size: 1.8rem;
    }

    .ahsanAbout h3 {
        font-size: 1.2rem;
    }

    .ahsanAbout p {
        font-size: 0.9rem;
    }

    .theme-list li {
        font-size: 1rem;
    }

    .about .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .tab-link {
        font-size: 1rem;
        padding: 12px;
    }

    .tab-content {
        padding: 10px;
    }
}

/* Fix for Large Desktop Screens */
@media (min-width: 1024px) {
    .about .row {
        margin: auto;
    }

    .aboutImage {
        max-width: 35%;
    }

    .ahsanAbout {
        width: 60%;
    }
}