@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --main-color: #b74b4b;
    --bg-color: #0a0a0a;
    --text-color: #fff;
    --gradient: linear-gradient(45deg, var(--main-color), #ff6b6b);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(183, 75, 75, 0.2);
    --shadow-color: rgba(33, 150, 243, 0.1);
}

/* Light Theme Variables */
.light-theme {
    --main-color: #2196f3;
    --bg-color: #f8f9fa;
    --text-color: #2c3e50;
    --gradient: linear-gradient(45deg, #2196f3, #64b5f6);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(33, 150, 243, 0.2);
    --shadow-color: rgba(33, 150, 243, 0.1);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.1);
}

.logo {
    font-size: 3.5rem;
    color: var(--main-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px var(--main-color);
}

.menu-btn {
    display: none;
    font-size: 2.5rem;
    color: var(--main-color);
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    z-index: 1001;
}

.menu-btn:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--main-color);
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    padding: 12rem 9% 5rem;
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
        position: absolute;
        top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(183, 75, 75, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.home-img {
    position: relative;
    z-index: 1;
        width: 40%;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(183, 75, 75, 0.3);
    border: 3px solid var(--main-color);
    transition: 0.5s ease;
        display: block;
    }

.home-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(183, 75, 75, 0.5);
}

.home-content {
    position: relative;
    z-index: 1;
    max-width: 60rem;
    flex: 1;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(183, 75, 75, 0.1);
    border-radius: 50%;
        font-size: 2rem;
    color: var(--main-color);
    transition: 0.5s ease;
    position: relative;
    overflow: hidden;
    }

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: scale(0);
    transition: 0.5s ease;
    z-index: -1;
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.5);
}

.home-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border-radius: 5rem;
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 600;
    letter-spacing: 0.1rem;
    border: 2px solid var(--main-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
    }

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn[target="_blank"] {
    background: var(--main-color);
    color: #fff;
}

.btn[target="_blank"]:hover {
    background: transparent;
    color: var(--main-color);
}

.btn[target="_blank"]::before {
    background: #fff;
}

/* Contact Section */
.contact-page {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
    background: var(--bg-color);
    position: relative;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(183, 75, 75, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact form {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(183, 75, 75, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.contact form .input-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(183, 75, 75, 0.2);
    transition: 0.3s ease;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(183, 75, 75, 0.3);
    outline: none;
}

.contact form textarea {
    resize: none;
    height: 20rem;
}

.contact form .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: 0.5s ease;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(183, 75, 75, 0.2);
    text-align: center;
    transition: 0.5s ease;
    backdrop-filter: blur(10px);
}

.info-item:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 0 30px rgba(183, 75, 75, 0.3);
}

.info-item i {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    transition: 0.5s ease;
}

.info-item:hover i {
    transform: scale(1.2);
}

.info-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.info-item p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
    
    .home {
        padding: 12rem 5% 5rem;
    }
    
    .home-img {
        width: 45%;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 55%;
    }
    
    .menu-btn {
        display: block !important;
        z-index: 1001;
        cursor: pointer;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 8rem 2rem;
        transition: 0.5s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        display: block;
        margin: 2rem 0;
        font-size: 2rem;
        text-align: center;
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        transition: 0.3s ease;
        padding: 1rem;
        white-space: nowrap;
        cursor: pointer;
    }
    
    nav.active a {
        opacity: 1;
        transform: translateX(0);
    }
    
    .menu-btn.active i {
        transform: rotate(90deg);
    }
    
    .menu-btn i {
        transition: 0.3s ease;
    }
    
    /* Style de la barre de défilement */
    nav::-webkit-scrollbar {
        width: 8px;
    }
    
    nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    
    nav::-webkit-scrollbar-thumb {
        background: var(--main-color);
        border-radius: 4px;
    }
    
    nav::-webkit-scrollbar-thumb:hover {
        background: #ff6b6b;
    }
    
    .home {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
        padding-top: 15rem;
    }
    
    .home-img {
        width: 60%;
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .home-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 2rem 5%;
    }
    
    .home-content h1 {
        font-size: 4.5rem;
    }
    
    .home-content h3 {
        font-size: 3rem;
    }
    
    .home-img {
        width: 80%;
    }
    
    .home-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .home-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 3.5rem;
    }
    
    .home-content h3 {
        font-size: 2.5rem;
    }
    
    .home-img {
        width: 90%;
    }
    
    .social-icons a {
        width: 4rem;
        height: 4rem;
        font-size: 1.8rem;
    }
}

/* Fix for zoom issues */
@media screen and (min-resolution: 192dpi) {
    .menu-btn {
        display: block !important;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 8rem 2rem;
        transition: 0.5s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
}

/* Ensure content stays visible on zoom */
@media screen and (max-width: 100%) {
    .home {
        overflow-y: auto;
    }
    
    .home-content {
        overflow: visible;
    }
}

/* Services Section */
.services {
    background-color: black;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5%;
}

.services-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    border: 0.2rem solid #b74b4b;
    transition: 0.5s ease;
}

.services-box:hover {
    transform: scale(1.02);
    border-color: #fff;
}

.services-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    transition: 0.3s ease;
}

.services-box:hover i {
    transform: scale(1.1);
}

.services-box h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.services-box p {
    font-size: 1.6rem;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    background-color: black;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5%;
}

.skills-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    border: 0.2rem solid #b74b4b;
}

.skills-box h3 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    color: var(--main-color);
    transition: 0.3s ease;
}

.skills-box:hover h3 {
    transform: translateY(-5px);
}

.skill {
    margin-bottom: 2rem;
}

.skill span {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #b74b4b;
    border-radius: 1rem;
    transition: width 1s ease;
}

/* Education Section */
.education {
    background-color: black;
}

.education-container {
    padding: 0 5%;
}

.education-box {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.education-content {
    position: relative;
    padding: 2rem;
    border: 0.2rem solid #b74b4b;
    border-radius: 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.education-content .content {
    padding: 1.5rem;
}

.year {
    font-size: 1.6rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.year i {
    margin-right: 0.5rem;
}

.education-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.education-content p {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

/* Experience Section */
.experience-page {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
    background: var(--bg-color);
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.experience-box {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.experience-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--main-color);
}

.experience-content .content {
    padding: 0;
}

.experience-content .year {
    font-size: 1.6rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.experience-content .year i {
    margin-right: 1rem;
    font-size: 1.8rem;
}

.experience-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: 0.3s ease;
}

.experience-box:hover h3 {
    color: var(--main-color);
}

.experience-content p {
    font-size: 1.6rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Light Theme adjustments for Experience */
.light-theme .experience-box {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.light-theme .experience-box:hover {
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--main-color);
}

.light-theme .experience-content .year,
.light-theme .experience-box:hover h3 {
    color: var(--main-color);
}

.light-theme .experience-content p {
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-container {
        gap: 2rem;
    }
    
    .experience-box {
        padding: 2.5rem;
    }
    
    .experience-content .year {
        font-size: 1.4rem;
    }
    
    .experience-content h3 {
        font-size: 2rem;
    }
    
    .experience-content p {
        font-size: 1.5rem;
    }
}

/* Page-specific styles */
.services-page,
.skills-page,
.education-page,
.experience-page,
.contact-page {
    padding-top: 10rem;
    min-height: 100vh;
    background-color: var(--bg-color);
}

/* Service details */
.service-details {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.service-details li {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.service-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #b74b4b;
}

/* Education details */
.education-details {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.education-details li {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    position: relative;
}

.education-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #b74b4b;
}

/* Experience details */
.experience-details {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.experience-details li {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    position: relative;
}

.experience-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #b74b4b;
}

/* Social links in contact page */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-links a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

/* Ensure menu button stays visible on all pages */
@media screen and (max-width: 991px) {
    .menu-btn {
        display: block !important;
    }
    
    nav {
        display: flex;
        flex-direction: column;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* Additional zoom fixes */
@media screen and (max-width: 100%) {
    nav {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    nav a {
        min-height: 44px; /* Pour une meilleure zone de clic sur mobile */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    font-size: 2.5rem;
    color: var(--main-color);
    cursor: pointer;
    transition: 0.3s ease;
    margin-right: 2rem;
    z-index: 1001;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

.theme-toggle i {
    transition: 0.3s ease;
}

/* Light Theme Styles */
.light-theme {
    background: var(--bg-color);
    color: var(--text-color);
}

.light-theme header {
    background: rgba(248, 249, 250, 0.95);
    box-shadow: 0 0 20px var(--shadow-color);
}

.light-theme nav {
    background: rgba(248, 249, 250, 0.95);
}

.light-theme nav a {
    color: var(--text-color);
}

.light-theme .services-box,
.light-theme .skills-box,
.light-theme .education-content,
.light-theme .experience-content,
.light-theme .contact form,
.light-theme .info-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.light-theme .home-content h1 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .home-content p,
.light-theme .services-box p,
.light-theme .skills-box p,
.light-theme .education-content p,
.light-theme .experience-content p,
.light-theme .info-item p {
    color: var(--text-color);
}

.light-theme .social-icons a {
    background: rgba(33, 150, 243, 0.1);
}

.light-theme .btn {
    border-color: var(--main-color);
    color: var(--main-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.light-theme .btn:hover {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    border-color: transparent;
}

.light-theme .contact form input,
.light-theme .contact form textarea {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border-color: var(--border-color);
}

.light-theme .contact form input:focus,
.light-theme .contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 15px var(--shadow-color);
}

.light-theme .progress-bar {
    background: rgba(33, 150, 243, 0.1);
}

.light-theme .progress {
    background: var(--gradient);
}

.light-theme .year,
.light-theme .service-details li::before,
.light-theme .education-details li::before,
.light-theme .experience-details li::before {
    color: var(--main-color);
}

.light-theme .menu-btn i,
.light-theme .theme-toggle i {
    color: var(--main-color);
}

.light-theme .social-links a {
    border-color: var(--main-color);
    color: var(--main-color);
}

.light-theme .social-links a:hover {
    background-color: var(--main-color);
    color: #fff;
}

.light-theme .home-img img {
    border-color: var(--main-color);
    box-shadow: 0 0 30px var(--shadow-color);
}

.light-theme .home-img img:hover {
    box-shadow: 0 0 40px var(--shadow-color);
}

.light-theme .heading span {
    color: var(--main-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .info-item i {
    color: var(--main-color);
}

.light-theme .info-item:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 30px var(--shadow-color);
}

/* Hover effects for both themes */
.services-box:hover,
.skills-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.services-box:hover i,
.skills-box:hover h3 {
    transform: scale(1.1);
}

/* Modern 3D Effects and Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--shadow-color); }
    50% { box-shadow: 0 0 20px var(--shadow-color); }
    100% { box-shadow: 0 0 5px var(--shadow-color); }
}

/* Modern Button Styles */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border-radius: 5rem;
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 600;
    letter-spacing: 0.1rem;
    border: 2px solid var(--main-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

/* Modern Card Styles */
.services-box,
.skills-box,
.education-content,
.experience-content,
.info-item {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.services-box:hover,
.skills-box:hover,
.education-content:hover,
.experience-content:hover,
.info-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px var(--shadow-color);
}

/* Modern Image Effects */
.home-img {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.home-img img {
    border-radius: 50%;
    box-shadow: 0 0 30px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.home-img:hover img {
    transform: scale(1.05) rotateY(10deg);
    box-shadow: 0 0 50px var(--shadow-color);
}

/* Modern Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(360deg);
    color: #fff;
}

.social-icons a:hover::before {
    transform: scale(1);
}

/* Modern Progress Bars */
.progress-bar {
    width: 100%;
    height: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    }

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 1rem;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    }

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: progress-shine 2s infinite;
    }

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

/* Modern Form Inputs */
.contact form input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.contact form input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 20px var(--shadow-color);
    transform: translateY(-2px);
}

/* Modern Navigation */
nav a {
    position: relative;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--main-color);
    transform: translateY(-2px);
    }

/* Modern Theme Toggle */
.theme-toggle {
        font-size: 2.5rem;
    color: var(--main-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 2rem;
    z-index: 1001;
    animation: glow 2s infinite;
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
}

/* Light Theme Specific Modern Styles */
.light-theme .services-box,
.light-theme .skills-box,
.light-theme .education-content,
.light-theme .experience-content,
.light-theme .info-item {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.light-theme .btn {
    border-color: var(--main-color);
    color: var(--main-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.light-theme .btn:hover {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    border-color: transparent;
}

.light-theme .btn[target="_blank"] {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.light-theme .btn[target="_blank"]:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

/* Responsive Design Updates */
@media (max-width: 991px) {
    .services-box:hover,
    .skills-box:hover,
    .education-content:hover,
    .experience-content:hover,
    .info-item:hover {
        transform: translateY(-5px);
    }
    
    .home-img:hover img {
        transform: scale(1.02);
    }
}