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

    font-family:"Poppins", sans-serif;
}

body{

    background:#ECE7E1;

    transition:0.4s ease;
}

.container{

    width:100%;
    min-height:100vh;

    display:flex;

    justify-content:center;
    align-items:center;

    padding:20px;
}

.profile-card{

    width:750px;
    max-width:95%;

    background:white;

    display:flex;

    border-radius:25px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,0.15);

    transition:0.4s ease;

    animation:fadeIn 1s ease;
}

.profile-card:hover{

    transform:translateY(-5px);

    box-shadow:0 20px 40px rgba(0,0,0,0.2);
}

.left-section{

    flex:2;

    display:flex;

    flex-direction:column;

    justify-content:center;
    align-items:center;

    padding:50px 30px;
}

.profile-pic{

    width:140px;
    height:140px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:25px;

    border:5px solid #F1ECE8;

    transition:0.4s ease;
}

.profile-pic:hover{

    transform:scale(1.05);
}

.left-section h1{

    font-size:32px;

    color:#2B2B2B;

    margin-bottom:8px;
}

.role{

    color:#777;

    margin-bottom:25px;
}

.social-icons{

    display:flex;

    gap:20px;

    margin-bottom:30px;
}

.social-icons a{

    color:#8B6F62;

    font-size:24px;

    transition:0.3s ease;
}

.social-icons a:hover{

    transform:translateY(-4px) scale(1.1);

    color:#B28B76;
}

.buttons{

    display:flex;

    flex-direction:column;

    gap:18px;

    width:100%;
    max-width:220px;
}

.buttons button,
.buttons a{

    padding:14px;

    border-radius:40px;

    border:none;

    background:#8B6F62;

    color:white;

    font-size:15px;

    cursor:pointer;

    transition:0.3s ease;

    text-decoration:none;

    text-align:center;

    display:inline-block;
}

.buttons button:hover,
.buttons a:hover{

    background:#B28B76;

    transform:translateY(-3px);

    box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

.right-section{

    flex:1;

    background:#F3ECE7;

    display:flex;

    flex-direction:column;

    justify-content:center;
    align-items:center;

    padding:40px 20px;
}

.skills-title {
    font-size: 15px;
    font-weight: 600;
    color: #8B6F62;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.4s ease;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
    align-items: center;
    width: 100%;
}

.skill-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
}

.skill-icon:hover {
    transform: scale(1.2) translateY(-4px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

/* Tooltip styles */
.skill-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #2B2B2B;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.skill-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.stat-box{

    text-align:center;
}

.stat-box h2{

    font-size:28px;

    color:#2B2B2B;

    margin-bottom:5px;
}

.stat-box p{

    color:#777;
}

.theme-toggle{

    position:fixed;

    top:20px;
    right:20px;

    width:50px;
    height:50px;

    border:none;

    border-radius:50%;

    background:#8B6F62;

    color:white;

    cursor:pointer;

    font-size:18px;

    transition:0.3s ease;

    z-index:100;
}

.theme-toggle:hover{

    transform:rotate(20deg) scale(1.1);
}

/* POPUP */

.popup{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,0.5);

    display:none;

    justify-content:center;
    align-items:center;
}

.popup-box{

    background:white;

    width:90%;
    max-width:450px;

    padding:30px;

    border-radius:20px;

    text-align:center;

    box-shadow: 0 15px 35px rgba(0,0,0,0.15);

    transition:0.4s ease;
}

.popup-box h2{

    color:#2B2B2B;

    font-size: 24px;

    font-weight: 600;

    margin-bottom: 20px;
}

.success-message{

    margin-bottom: 20px;

    padding: 15px;

    background: rgba(34, 197, 94, 0.15);

    border: 1px solid rgba(34, 197, 94, 0.4);

    border-radius: 12px;

    color: #15803d;

    text-align: center;

    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);

    animation: fadeInSlide 0.5s ease-out;
}

.success-message.hidden{

    display: none;
}

.contact-form{

    display: flex;

    flex-direction: column;

    gap: 20px;
}

.form-input{

    width: 100%;

    padding: 15px;

    border-radius: 10px;

    background: #F3ECE7;

    border: 1px solid #ddd;

    color: #2B2B2B;

    font-size: 14px;

    transition: all 0.3s ease;
}

.form-input:focus{

    outline: none;

    border-color: #8B6F62;

    box-shadow: 0 0 0 3px rgba(139, 111, 98, 0.2);
}

.form-input::placeholder{

    color: #777;
}

.submit-btn{

    width: 100%;

    padding: 15px;

    background: #8B6F62;

    color: white;

    border: none;

    border-radius: 10px;

    font-size: 16px;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.3s ease;
}

.submit-btn:hover{

    background: #B28B76;

    transform: scale(1.05);

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.submit-btn:disabled{

    opacity: 0.5;

    cursor: not-allowed;

    transform: scale(1);
}

@keyframes fadeInSlide{

    from{

        opacity: 0;

        transform: translateY(-10px);
    }

    to{

        opacity: 1;

        transform: translateY(0);
    }
}

textarea.form-input{

    height:120px;

    resize:none;
}

.send-btn{

    margin-top:20px;

    width:100%;

    padding:12px;

    border:none;

    border-radius:12px;

    background:#8B6F62;

    color:white;

    cursor:pointer;
}

/* DARK MODE */

.dark-mode{

    background:#0F0F0F;
}

.dark-mode .profile-card{

     background:#1A1A1A;

    box-shadow:
    0 20px 45px rgba(0,0,0,0.6);
}

.dark-mode .left-section h1,
.dark-mode .stat-box h2{

    color:#F5F5F5;
}

.dark-mode .right-section{

    background:#222222;
}

.dark-mode .skills-title {
    color: #C2A191;
}

.dark-mode .skill-item::after {
    background: #ECE7E1;
    color: #2B2B2B;
}

.dark-mode .role,
.dark-mode .stat-box p{

    color:#A8A8A8;
}

.dark-mode .popup-box{

    background:#1A1A1A;

    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.dark-mode .popup-box h2{

    color:#F5F5F5;
}

.dark-mode .form-input{

    background: #222222;

    border: 1px solid #333;

    color: #F5F5F5;
}

.dark-mode .form-input:focus{

    border-color: #8E6E5D;

    box-shadow: 0 0 0 3px rgba(142, 110, 93, 0.2);
}

.dark-mode .form-input::placeholder{

    color: #A8A8A8;
}

.dark-mode .submit-btn{

    background: #8E6E5D;
}

.dark-mode .submit-btn:hover{

    background: #A98472;
}

.dark-mode .success-message{

    background: rgba(34, 197, 94, 0.1);

    border: 1px solid rgba(34, 197, 94, 0.3);

    color: #86efac;
}

.dark-mode .buttons button{

    background:#8E6E5D;

    color:white;
}

.dark-mode .buttons button:hover{

    background:#A98472;
}

.dark-mode .social-icons a{

    color:#C2A191;
}

/* ANIMATION */

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(40px);
    }

    to{

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

/* RESPONSIVE DESIGN */

@media(max-width:768px){

    .container {
        padding: 40px 20px;
    }

    .profile-card{
        flex-direction: column;
        width: 100%;
        max-width: 350px;
    }

    .left-section {
        padding: 40px 24px;
    }

    .buttons {
        width: 100%;
        max-width: 180px;
    }

    .right-section{
        padding: 35px 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dark-mode .right-section {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .skills-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media(max-width:480px){

    .container {
        padding: 20px 12px;
    }

    .profile-card {
        border-radius: 20px;
        max-width: 320px;
    }

    .left-section {
        padding: 35px 16px;
    }

    .left-section h1 {
        font-size: 26px;
    }

    .profile-pic {
        width: 110px;
        height: 110px;
        margin-bottom: 20px;
    }

    .role {
        margin-bottom: 20px;
    }

    .social-icons {
        gap: 16px;
        margin-bottom: 25px;
    }

    .buttons {
        gap: 10px;
        width: 100%;
        max-width: 160px;
    }

    .buttons button,
    .buttons a {
        padding: 12px;
        font-size: 14px;
    }

    .right-section {
        padding: 25px 16px;
    }

    .skills-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }

    /* Adjust tooltip offset for smaller icons */
    .skill-item::after {
        bottom: -28px;
        font-size: 10px;
    }
}