:root {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --accent-green: #64ffda;
    --accent-blue: #00d4ff;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}
/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 50px;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: center;  /* Center the navigation items */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-green);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger icon (for mobile view) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav items by default on mobile */
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 80px;
        background: rgba(10, 25, 47, 0.8);
        width: 100%;
        left: 0;
        padding: 20px 0;
        text-align: center;
    }
    .nav-links.active {
        display: flex; /* Show nav items when active */
    }
    .hamburger {
        display: flex; /* Show hamburger icon on mobile */
    }
}

/* Optional: Add animation to slide in the menu */
.nav-links {
    transition: all 0.3s ease;
}


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

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-green);
    margin-bottom: 20px;
    opacity: 0;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
}

.typewriter {
    border-right: 2px solid var(--accent-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--accent-green); }
    51%, 100% { border-color: transparent; }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

.btn {
    padding: 15px 30px;
    border: 2px solid var(--accent-green);
    background: transparent;
    color: var(--accent-green);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-green);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.btn-primary::before {
    background: var(--accent-blue);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-green);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
    }
    40% {
    transform: translateX(-50%) translateY(-10px);
    }
    60% {
    transform: translateX(-50%) translateY(-5px);
    }
}

/* Particle Background */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* About Section */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    border: 2px solid var(--glass-border);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--accent-green);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text .highlight {
    color: var(--accent-green);
    font-weight: 600;
}

/* Expertise Section */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.item-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.item-card:hover::before {
    transform: scaleX(1);
}

.item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
}

.item-icon {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.item-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
    text-decoration: none;
    color: inherit;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 15px;
    color: var(--accent-blue);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--accent-green);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.social-link:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

/* 🔆 General-purpose continuous hover-style glow */
.glow {
  animation: hover-glow 2s ease-in-out infinite;
}

/* Smooth pulsing animation mimicking your hover effect */
@keyframes hover-glow {
  0%, 100% {
    background: var(--glass-bg);
    color: var(--accent-green);
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(100, 255, 218, 0);
  }
  50% {
    background: var(--accent-green);
    color: var(--bg-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
  }
}

/* ✋ When hovered, stop animation and use the normal hover style */
.glow:hover {
  animation: none;
  background: var(--accent-green);
  color: var(--bg-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}



/* Floating position: bottom-right, above other UI */
.fab-floating {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 0px);
  z-index: 9999;
  /* ensure same size & style as your social-link circles */
  width: 60px;
  height: 60px;
}

/* On hover, behave exactly like before (your hover style) */
.fab-floating:hover {
  /* this relies on your existing .social-link:hover styling */
  /* no extra styles needed because .glow:hover already locks the hover state */
}

/* Optional: tweak size on small screens for better tap target & spacing */
@media (max-width: 480px) {
  .fab-floating {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 0px);
    width: 56px;
    height: 56px;
    font-size: 1.4rem; /* slightly smaller icon if desired */
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glow {
    animation: none !important;
  }
}




/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
    padding: 15px 20px;
    }

    .nav-links {
    display: none;
    }

    .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    }

    .cta-buttons {
    flex-direction: column;
    align-items: center;
    }

    .btn {
    width: 200px;
    }

    .social-links {
    flex-wrap: wrap;
    gap: 20px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s ease;
}

/* Style for social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between the icons */
  flex-wrap: wrap;
}

/* Style for each individual social icon */
.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #64FFDA; /* Set default icon color to an accent green */
  font-size: 30px; /* Set icon size */
  text-decoration: none;
  transition: box-shadow 0.3s ease; /* Only transition the box-shadow */
}

/* Only apply the shadow on hover, without changing the icon itself */
.social-link:hover {
  box-shadow: 0 0 10px 5px rgba(37, 211, 102, 0.7); /* Brighter green shadow on hover */
}

/* Inherit the color for the icon from the parent without transition */
.social-link i {
  color: inherit;  /* Inherit color from .social-link */
  transition: none; /* No transition for color change */
}

/* Optional: Customize WhatsApp color if you want it different */
.social-link.whatsapp-btn i {
  color: #25D366; /* WhatsApp default green color */
}

.social-link.whatsapp-btn:hover i {
  color: #25D366; /* WhatsApp green color remains the same */
  box-shadow: 0 0 10px 5px rgba(37, 211, 102, 0.7); /* Green shadow effect */
}
