@import url('https://necolas.github.io/normalize.css/8.0.1/normalize.css'); 

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary: #FF8C61;
            --primary-dark: #e67a52;
            --text-dark: #2d3748;
            --text-light: #4a5568;
            --bg-light: #f7fafc;
            --bg-white: #ffffff;
            --border: #e2e8f0;
            --bg-footer: var(--text-dark);
	    --shadow-color: rgba(0, 0, 0, 0.1);
        }
        
        body.dark-theme {
            --primary: #e68967;
            --primary-dark: #fc9772;
            --text-dark: #e2e8f0;
            --text-light: #cbd5e0;
            --bg-light: #2d3748;
            --bg-white: #1a202c;
            --border: #4a5568;
            --bg-footer: var(--text-dark);
            --shadow-color: rgba(255, 255, 255, 0.15);
        }
        
        body.funky-theme {
            --primary: #ff1493;
            --primary-dark: #c71067;
            --text-dark: #fce7f3;
            --text-light: #f9a8d4;
            --bg-light: #1e1b4b;
            --bg-white: #0f0a2e;
            --border: #4c1d95;
            --bg-footer: #ffd1dc;
	    --shadow-color: rgba(245, 76, 186, 0.23);

        }
        
        body {
            font-family: 'Inter', Roboto, sans-serif, 'Segoe UI';
            color: var(--text-dark);
            line-height: 1.6;
            background-color: var(--bg-white);
            transition: background-color 0.3s ease, color 0.3s ease;
        }


body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../bg.svg") no-repeat center/cover;
  opacity: 0.09;
  z-index: -1;
  pointer-events: none;
}

        
        header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 1rem 2rem;
            text-align: center;
        }
        
        .header-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .profile-logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.profile-logo:hover {
    transform: scale(1.05);
}
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
        }
        
        .subtitle {
            font-size: 1.3rem;
            opacity: 0.95;
            margin-bottom: 1.5rem;
        }
        
        .tagline {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .contact-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }
        
        .contact-links a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: transform 0.2s;
        }
        
        .contact-links a:hover {
            transform: translateY(-2px);
        }
        
        nav {
            background: var(--bg-white);
            padding: 1rem 2rem;
            box-shadow: 0 2px 10px var(--shadow-color);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: background-color 0.3s ease;
        }
        
        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }
        
        nav a {
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            padding: 0.5rem 0;
            border-bottom: 2px solid transparent;
        }
        
        nav a:hover {
            color: var(--primary);
        }
	
        
        nav a.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        /* Flag styling */
.lang-toggle svg {
  width: 24px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
cursor: pointer;
}
/* Default tooltip */
.lang-toggle::after {
  content: attr(data-tooltip-en);
  position: absolute;
  top: 80%;
  right: 0;
  transform: translateY(1px);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 12px;
}

/* show on hover */
.lang-toggle:hover::after {
  opacity: 1;
  transform: translateY(10px);
}

/* switch tooltip language */
html[lang="fr"] .lang-toggle::after {
  content: attr(data-tooltip-fr);
}



#main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#main-nav ul {
  display: flex;
  justify-content: center;
  flex: 1;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}





        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }
        
        section {
            margin-bottom: 4rem;
            scroll-margin-top: 80px;
        }
        
        h2 {
            font-size: 2rem;
            margin-bottom: 2rem;
            color: var(--text-dark);
            border-bottom: 3px solid var(--primary);
            padding-bottom: 0.5rem;
            display: inline-block;
        }
        
    .experience-item, .education-item,  .language-item {
    margin-bottom: 2.5rem;
    position: relative; 
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    opacity: 0;
    transform: translateY(300px);
    animation: fadeInUp 1.5s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 

}

.language-item {
    margin-bottom: 0; }

.experience-item:hover , .education-item:hover,  .language-item:hover {
    transform: scale(1); 
    box-shadow: 0 10px 20px var(--shadow-color); 
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        
        .item-header {
        display: flex;
    	justify-content: space-between; 
   	align-items: flex-start; 
    	margin-bottom: 1rem;
    	flex-wrap: wrap;
    	gap: 1rem; 
        }
        
        .item-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--text-dark);
        }

/* DOWNLOAD LINK BOOYAH */

 .download-container {

    position: absolute; 
    bottom: 0.5rem; /* Match card padding */
    right: 0.5rem;  /* Match card padding */
    z-index: 20; /* Ensure container is on top */
}

.pdf-preview {
    position: absolute;
    /* Adjust these values to position the preview above and to the left of the icon */
    bottom: 0; 
    right: 100%; /* Start outside the container to the left */
    
    width: 200px; /* Adjust size as needed */
    height: auto;
    box-shadow: 0 4px 10px var(--shadow-color);
    border: 1px solid var(--border);
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Allows clicks to pass through */
    transition: opacity 0.3s ease;
}
.download-container:hover .pdf-preview {
    opacity: 1;
    /* You may need to adjust the 'right' value based on your link size */
    right: calc(100% + 10px); /* 10px margin from the icon */
}

     .download-link {
	display: inline-block; 
    	opacity: 0.1;
    	color: var(--text-light); 
    	font-size: 1.5rem; 
    	text-decoration: none; 
    	cursor: pointer;
    	z-index: 10;
    	transition: color 0.2s ease, opacity 0.3s ease;
	}


 .experience-item:hover .download-link,
 .education-item:hover .download-link {
    opacity: 1; 
 }

	.download-link:hover {
    	    color: var(--primary); 
	  }
        
        .item-company {
            font-style: italic;
            color: var(--text-light);
            margin-bottom: 0.5rem;
        }
        
        .item-date {
            color: var(--text-light);
            font-weight: 500;
            white-space: nowrap;
        }
        
        .item-description {
            color: var(--text-light);
            line-height: 1.7;
        }
        
        .item-description ul {
            margin-left: 1.5rem;
            margin-top: 0.5rem;
			padding-left: 1.2em;
        }

        .item-description li  {
			margin-bottom: 0.8em;  
			line-height: 1.5;      
		}
        
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }
        
        .skill-category h3, {
            color: var(--primary);
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }
        
        .skill-tag {
            display: inline-block;
            background: var(--bg-white);
            padding: 0.5rem 1rem;
            margin: 0.3rem;
            border-radius: 20px;
            border: 2px solid var(--border);
            transition: all 0.3s;
        }
        
        .skill-tag:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px var(--shadow-color);
        }
        
        .languages {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            max-width: 100%;
        }
        
        
        .language-name {
            font-weight: 600;
            font-size: 1.5rem;
            color: var(--text-dark);
            margin-bottom: 1rem;
        }
        
        .language-level {
            color: var(--text-light);
            font-size: 1.1rem;
        }
        
        
       footer {
  background: var(--bg-footer);
  color: white;
  text-align: center;
  padding: 1.2rem 1rem; 
  line-height: 1.3;
}
footer p {
margin-top: 0.5rem; opacity: 0.8;

color: var(--bg-white)
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem; /* smaller space between icons */
  margin-bottom: 0.8rem; /* reduced gap below icons */
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: transform 0.2s, opacity 0.3s;
  opacity: 0.9;
}

.footer-links a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.contact-links i,
.footer-links i {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.25s ease, color 0.25s ease, opacity 0.2s;
  opacity: 0.9;
}


        /* Ensures the top icons are white for better contrast */
       .contact-links i { color: white; }
        
       .contact-links a:hover i,
       .footer-links a:hover i {
            transform: translateY(-2px);
            opacity: 1;
       }
        
              .theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 1000;
  animation: floatToggle 3s ease-in-out infinite;
}
        
        .theme-toggle:hover {
            opacity: 1;
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        }
        
        .theme-toggle:active {
            transform: scale(0.95);
        }
        
@keyframes floatToggle {
  0%, 100% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(0);
  }
}

        .theme-menu {
            position: fixed;
            bottom: 5rem;
            right: 1.5rem;
            background: var(--bg-light);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 0.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            display: none;
            z-index: 999;
        }

        #themeMenu button {
	    padding: 0.5rem;
	}
        
        .theme-menu.open {
            display: block;
            animation: slideIn 0.3s ease;
        }
        

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .theme-option {
            display: block;
            width: 100%;
            padding: 0.75rem 1.5rem;
            background: var(--bg-white);
            border: 2px solid var(--border);
            border-radius: 8px;
            margin: 0.5rem 0;
            cursor: pointer;
            font-size: 1rem;
            color: var(--text-dark);
            transition: all 0.2s ease;
            text-align: left;
        }
        
        .theme-option:hover {
            background: var(--primary);
            color: white;
            transform: translateX(-5px);
        }
        
        .theme-option.active {
            border-color: var(--primary);
            font-weight: bold;
        }
        
        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }
            
            .subtitle {
                font-size: 1.1rem;
            }
            
            nav ul {
                gap: 1rem;
            }
            
            .container {
                padding: 2rem 1rem;
            }
            
        }








