* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 33%, #0039e5 66%, #091b36 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
ul {
    color: #a0a9c0;
}


/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00d4ff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #a0a9c0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #00d4ff, #7c3aed);
    color: white;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0e1a;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Projects & Certificates Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: linear-gradient(145deg, rgba(26, 31, 53, 0.8), rgba(10, 14, 26, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed, #00d4ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card p {
    color: #a0a9c0;
    margin-bottom: 1.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.card-links {
    display: flex;
    gap: 1rem;
}

.card-links a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-links a:hover {
    color: #ffffff;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

/* Image circle rotation and glow effect START*/

.about-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00d4ff, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* Keep this for the rotating border */
  /* Ambient glow effect */
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.3),
    0 0 40px rgba(124, 58, 237, 0.2),
    0 0 60px rgba(0, 57, 229, 0.1);
  transition: all 0.4s ease;
}

/* Orbiting border layer - ambient effect */
.about-image::before {
  content: '';
  position: absolute;
  inset: -12px; /* Larger for ambient glow */
  border-radius: 50%;
  background: conic-gradient(
    #0039e5 0deg,
    #7c3aed  60deg,
    #00d4ff 120deg,
    #0039e5 180deg,
    #7c3aed 240deg,
    #00d4ff  300deg,
    #0039e5  360deg
  );
  animation: spin 4s linear infinite;
  z-index: 0;
  opacity: 0.1; /* Subtle ambient glow always visible */
  filter: blur(8px); /* Creates soft ambient effect */
  transition: all 0.4s ease;
}

/* Enhanced effects on hover */
.about-image:hover {
  /* Enhanced ambient glow */
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.6),
    0 0 60px rgba(124, 58, 237, 0.4),
    0 0 90px rgba(0, 57, 229, 0.3),
    0 0 120px rgba(0, 212, 255, 0.1);
}

/* More visible rotating border on hover */
.about-image:hover::before {
  opacity: 0.8;
}

/* Mask to create border effect - subtle ambient always visible */
.about-image::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: white; /* or whatever your page background color is */
  border-radius: 50%;
  z-index: 1;
  opacity: 0.3; /* Subtle mask always visible */
  transition: all 0.4s ease;
}

/* Enhance mask on hover */
.about-image:hover::after {
  opacity: 0.8; /* More visible border on hover */
  inset: 6px; /* Thicker border effect */
}

.hero-image img {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2; /* Ensure image appears above pseudo-elements */
}


/* Image circle rotation and glow effect END*/

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-text p {
    color: #a0a9c0;
    margin-bottom: 1.5rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.skill {
  background: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 6px rgba(124, 58, 237, 0.1);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: default;
  animation: fadeIn 0.5s ease-in-out;
}

.skill:hover {
  background: #7c3aed;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(124, 58, 237, 0.3);
}

.skill:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}



/* Contact Section */
.contact {
    background: linear-gradient(145deg, rgba(26, 31, 53, 0.5), rgba(10, 14, 26, 0.8));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a9c0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Don't forget to add the spin animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
