@import url('https://fonts.googleapis.com/css2?family=Epunda+Slab:ital,wght@0,300..900;1,300..900&display=swap');

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

html {
    font-size: 16px;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Epunda Slab', serif;
    background: #0a0514;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Style du sélecteur de langue */
.language-selector {
    margin-left: auto;
    margin-right: 20px;
    position: relative;
    z-index: 1001;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 20px;
    padding: 5px 10px;
    font-family: 'Epunda Slab', serif;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.language-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

/* Style pour les options du sélecteur */
.language-selector option {
    background: var(--darker);
    color: #fff;
    padding: 10px;
}

@media (min-width: 1400px) {
    .header {
        padding: 1.5rem 4rem;
    }
}

@media (min-width: 1800px) {
    .header {
        padding: 1.5rem 6rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8a2be2, #ff00ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 10s ease infinite;
}

/* Styles pour le menu de navigation */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

/* Styles pour le menu hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Styles pour les écrans mobiles */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 5, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: right 0.5s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        margin: 1rem 0;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }
    
    .contact-btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* Animation du bouton hamburger */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Empêcher le défilement quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
    }
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(138, 43, 226, 0.2);
    color: #fff;
}

.contact-btn {
    background: linear-gradient(45deg, #8a2be2, #ff00ff);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.section.dark {
    background: linear-gradient(135deg, #0a0514 0%, #1a0a2e 100%);
}

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

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Style du conteneur principal */
.slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #1a0a2e;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style du slider avec image de fond */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #1a0a2e url('../img/Odam.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cache l'image HTML car on utilise le background CSS */
.slider .background {
    display: none;
}

/* Contenu du slider */
.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
    margin: 0 auto;
    background-color: rgba(10, 5, 20, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .slider-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .name-title h1 {
        font-size: 2.5rem !important;
    }
    
    .subtitle {
        font-size: 1rem !important;
    }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 480px) {
    .slider-content {
        padding: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

.name-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.name-title h1 {
    margin: 0;
    font-size: clamp(3.5rem, 10vw, 6rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #8a2be2, #ff00ff, #00ffff, #8a2be2);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 10s ease infinite;
    display: inline-block;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.name-title .subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
    background: linear-gradient(45deg, #8a2be2, #ff00ff, #00ffff, #8a2be2);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 8s ease infinite;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

@media (max-width: 768px) {
    .name-title h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .name-title .subtitle {
        font-size: 1rem;
    }
}

h1 {
    color:rgb(255, 255, 255);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Section À Propos */
.about-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    text-align: center;
    margin: 0 auto 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
    transition: all 0.3s ease;
}

.about-text {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(18, 7, 32, 0.7);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(0, 0, 0, 0), rgba(138, 43, 226, 0.1));
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0;
}

.about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
}

.about-text:hover::before {
    opacity: 1;
}

.about-text br {
    margin-bottom: 0.5rem;
    display: block;
    content: '';
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .about-text {
        padding: 1.5rem;
        font-size: 1rem;
        text-align: left;
    }
    
    .about-title {
        margin-bottom: 1.5rem;
    }
}

/* Styles des titres */
h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
    text-align: center;
    width: 100%;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
    line-height: 1.3;
}

h3::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8a2be2, transparent);
    bottom: -8px;
    left: 20%;
}

p {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.5rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.slider-content p {
    color:rgb(255, 255, 255);
    font-size: 2rem;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
}

.parallax-text {
    display: inline-block;
    transition: transform 0.1s ease-out;
    will-change: transform;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.9);
    position: relative;
    z-index: 2;
}

.parallax-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(138, 43, 226, 0.3) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 10px;
}

.parallax-text:hover::after {
    opacity: 1;
}

.section {
    padding: 120px 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

@media (min-width: 1600px) {
    .section {
        padding: 150px 0;
    }
}

.boxed {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .boxed {
        padding: 0 60px;
    }
}

@media (min-width: 1600px) {
    .boxed {
        padding: 0 80px;
    }
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.dark{
    background-color: #000;
    color: #fff;
}

.w40, .w60, .w25 {
    flex: 1 1 100%;
    padding: 15px;
    box-sizing: border-box;
}

/* Réglages pour tablettes (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .w40 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .header {
        padding: 1rem;
    }
    
    .logo span {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
}

/* Réglages pour ordinateurs portables (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .w40 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Réglages pour grands écrans (1441px et plus) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .w40 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .w60 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    .w25 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Styles pour la page de contact */
/* Styles pour les sections de contenu */
.section {
    padding: 120px 2rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.boxed {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
    margin-bottom: 3rem;
}

/* Styles pour la page À Propos */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text h2 {
    color: #8a2be2;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.values-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #8a2be2;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
}

/* Styles pour la page Compétences */
.skills-category {
    margin-bottom: 4rem;
}

.skills-category h2 {
    color: #8a2be2;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    margin: 50px 0;
    width: 100%;
}

@media (min-width: 1400px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 40px;
    }
}

@media (min-width: 1800px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 45px;
    }
}

.skill-card {
    background: rgba(18, 7, 32, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
    --glow-x: 50%;
    --glow-y: 50%;
}

@media (min-width: 768px) {
    .skill-card {
        padding: 2rem 1.5rem;
        margin-bottom: 0;
    }
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--glow-x) var(--glow-y),
        rgba(138, 43, 226, 0.2) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8a2be2, #ff00ff, #00ffff, #8a2be2);
    background-size: 400%;
    z-index: -1;
    border-radius: 14px;
    opacity: 0;
    transition: 0.5s;
    animation: animate 20s linear infinite;
}

.skill-card:hover::before {
    opacity: 1;
    filter: blur(3px);
}

@keyframes animate {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 300% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0a44b1;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-icon::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
transition: 0.5s;
    transition: 0.5s;
}

.tech-icon:hover::before {
    left: 100%;
}

.tech-icon:hover {
    background: rgba(138, 43, 226, 0.15);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.6);
}

.tech-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
}

.tech-icon span {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
}

.text-center{
    text-align:center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(138, 43, 226, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: translateY(-2px);
}

.social-link img {
    width: 24px;
    height: 24px;
}

/* Ajustements de l'en-tête */
.header {
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(10px);
}

.nav-links {
    align-items: center;
}

.nav-link.active {
    color: #8a2be2 !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #8a2be2;
    border-radius: 50%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) and (min-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-card {
    background: #120720;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
    --glow-x: 50%;
    --glow-y: 50%;
}

@media (min-width: 768px) {
    .skill-card {
        padding: 2rem 1.5rem;
        margin-bottom: 0;
    }
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--glow-x) var(--glow-y),
        rgba(138, 43, 226, 0.2) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8a2be2, #ff00ff, #00ffff, #8a2be2);
    background-size: 400%;
    z-index: -1;
    border-radius: 14px;
    opacity: 0;
    transition: 0.5s;
    animation: animate 20s linear infinite;
}

.skill-card:hover::before {
    opacity: 1;
    filter: blur(3px);
}

@keyframes animate {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 300% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0a44b1;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-icon::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
transition: 0.5s;
    transition: 0.5s;
}

.tech-icon:hover::before {
    left: 100%;
}

.tech-icon:hover {
    background: rgba(138, 43, 226, 0.15);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.6);
}

.tech-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
}

.tech-icon span {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
}

.text-center{
    text-align:center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    position: fixed;
    top: 25px;
    right: 20px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 5, 20, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        margin: 0.5rem 0;
        font-size: 1.2rem;
    }
}

.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

.header.scroll-down {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

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

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

@keyframes slideLeft {
    from { 
        opacity: 0;
        transform: translateX(-30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.slide-left {
    opacity: 0;
    animation: slideLeft 0.6s ease forwards;
}

.slide-right {
    opacity: 0;
    animation: slideRight 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@media (max-width: 480px) {
    .logo span {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        top: 15px;
        right: 15px;
    }
}

.mobile-device {
    --mobile-padding: 15px;
}


@media (max-width: 767px) {
    .header {
        padding: 10px var(--mobile-padding);
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        top: 15px;
        right: 15px;
        width: 26px;
        height: 18px;
    }
    
    .menu-toggle span {
        height: 2px;
    }
    
    .section {
        padding: 60px var(--mobile-padding);
    }
    
    .boxed {
        padding: 0;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    input, textarea, button {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .header {
        padding: 10px 20px;
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .header {
        position: static;
        padding: 5px 10px;
    }
    
    .menu-toggle {
        top: 10px;
        right: 10px;
    }
    
    .nav-links {
        padding-top: 50px;
    }
    
    .section {
        min-height: auto;
        padding: 30px 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin: 10px 0;
    }
    
    h2 {
        font-size: 1.5rem;
        margin: 15px 0;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}