/*--------------------------------------------------------------
1. IMPORT FONTS & VARIABLES
--------------------------------------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,400i,500,500i,700,700i&display=swap");

:root {
  --primary-color: #00ffff;
  --secondary-color: #ff00ff;
  --background-color: #0a0a0a;
  --text-color: #ffffff;
  --accent-color: #ffcc00;
}

/*--------------------------------------------------------------
2. GLOBAL & RESET
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/*--------------------------------------------------------------
3. HEADER & NAVIGATION
--------------------------------------------------------------*/
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/*--------------------------------------------------------------
4. HERO SECTION
--------------------------------------------------------------*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 1;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glitch 5s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-5px, 5px); }
  40% { transform: translate(-5px, -5px); }
  60% { transform: translate(5px, 5px); }
  80% { transform: translate(5px, -5px); }
  100% { transform: translate(0); }
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.5s;
}

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

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--background-color);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease-out;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.cta-button:hover::before {
  transform: scale(1);
}

.cta-button.small {
  padding: 10px 20px;
  font-size: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-color);
  border-radius: 15px;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: var(--text-color);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollIndicate 2s infinite;
}

@keyframes scrollIndicate {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 20px); opacity: 0; }
}

/*--------------------------------------------------------------
5. BACKGROUND ELEMENTS
--------------------------------------------------------------*/
#particles-js,
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.parallax-bg {
  background-image: url("https://source.unsplash.com/random/1920x1080?tech");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

/*--------------------------------------------------------------
6. SECTIONS & TITLES
--------------------------------------------------------------*/
.section {
  padding: 120px 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/*--------------------------------------------------------------
7. GRID LAYOUTS & CARDS
--------------------------------------------------------------*/
.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skill-card,
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card::before,
.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease-out;
}

.skill-card:hover,
.project-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.skill-card:hover::before,
.project-card:hover::before {
  transform: scale(1);
}

a.project-card {
  text-decoration: none;
}

.skill-icon,
.project-icon {
  font-size: 64px;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skill-title,
.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-decoration: none;
}

.skill-description,
.project-description {
  font-size: 1rem;
}

.project-card .project-title,
.project-card .project-description {
  color: var(--text-color);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
8. SKILL PROGRESS
--------------------------------------------------------------*/
.skill-progress {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0;
  transition: width 1.5s ease-out;
}

/*--------------------------------------------------------------
9. CONTACT SECTION
--------------------------------------------------------------*/
#contact {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  position: relative;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.8);
}

#contact .container {
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
New: CONTACT GRID & CARDS (Improved Contact Section)
--------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contact-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

/*--------------------------------------------------------------
10. WHATSAPP & SOCIAL BUTTONS
--------------------------------------------------------------*/
.whatsapp-btn,
.fb-btn,
.ig-btn,
.li-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
  margin-right: 10px;
}

.fb-btn {
  background-color: #2825d3;
  color: white;
}

.fb-btn:hover {
  background-color: #12578c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.fb-btn i {
  margin-right: 10px;
}

.ig-btn {
  background-color: #833ab4;
  color: white;
}

.ig-btn:hover {
  background-color: #e1306c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.ig-btn i {
  margin-right: 10px;
}

.li-btn {
  background-color: #0077b5;
  color: white;
}

.li-btn:hover {
  background-color: #005983;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.li-btn i {
  margin-right: 10px;
}

/*--------------------------------------------------------------
11. DOWNLOAD CV BUTTON
--------------------------------------------------------------*/
.download-cv-btn {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--background-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-cv-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/*--------------------------------------------------------------
12. ABOUT IMAGE
--------------------------------------------------------------*/
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/*--------------------------------------------------------------
13. CUSTOM CURSOR
--------------------------------------------------------------*/
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s ease;
}

.cursor-hover {
  transform: scale(1.5);
  background-color: rgba(0, 255, 255, 0.3);
}

/*--------------------------------------------------------------
14. FOOTER
--------------------------------------------------------------*/
footer {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 50px 0;
  text-align: center;
}

.social-links a {
  display: inline-block;
  margin: 0 15px;
  font-size: 34px;
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: white;
  transform: translateY(-5px);
}

/*--------------------------------------------------------------
15. RESPONSIVE STYLES
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .about-content {
    flex-direction: column;
  }
}
@media (min-width: 768px) {
  .nav-links {
    list-style: none;
  }
  .nav-links li {
    margin-left: 20px;
  }
  .nav-links a {
    font-size: 16px;
    font-weight: 500;
  }
}
@media (min-width: 1024px) {
  /* Additional grid or layout adjustments can go here if needed */
}

/*--------------------------------------------------------------
16. SEARCH BAR
--------------------------------------------------------------*/
.search-container {
  position: relative;
  margin-bottom: 40px;
}

#search-bar {
  width: 100%;
  padding: 15px 20px 15px 50px; /* Add padding for the icon */
  border-radius: 50px;
  border: 2px solid var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 18px;
  transition: all 0.3s ease;
}

#search-bar:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.search-container::before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2300ffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 20px;
}

/*--------------------------------------------------------------
New: VERIFY LINK (for Certifications page)
--------------------------------------------------------------*/
.verify-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
.verify-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}