/* Reset + variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --glow-color: rgba(102, 126, 234, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

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

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

.nav-links a:hover {
    color: var(--text-primary);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
#profile {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    gap: 4rem;
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1400px;
    width: 100%;
}

.profile-image-container {
    position: relative;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: var(--primary-gradient);
    padding: 4px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.profile-image-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.3;
    filter: blur(30px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.profile-text {
    flex: 1;
}

.profile-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.profile-text .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.profile-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Replace your existing .btn-secondary with this */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* shape & size */
  padding: 1rem 2.5rem;    /* same spacing as .btn-primary */
  border-radius: 50px;    /* fully pill-shaped */
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;

  /* create gradient border while keeping an inner dark background */
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--dark-bg), var(--dark-bg)),   /* inner fill (page dark) */
    var(--primary-gradient);                           /* outer gradient for border */

  /* ensure the first layer fills interior while second shows as border */
  background-origin: border-box;
  background-clip: padding-box, border-box;

  /* text color */
  color: var(--text-primary);

  /* smooth transitions */
  transition: all 0.25s ease;
}

/* hover: fill the button with the gradient (matching Download CV look) */
.btn-secondary:hover {
  color: #fff;
  /* make the whole button filled by the gradient */
  background-image: var(--primary-gradient), var(--primary-gradient);
  transform: translateY(-2px);
}

/* optional focus style for keyboard users */
.btn-secondary:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(102,126,234,0.18);
}


.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--glow-color);
}

/* Section Styles */
section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Education */
.education-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 3rem;
    align-items: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.education-image {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--accent-gradient);
    padding: 3px;
}

.education-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.education-details p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.education-details strong {
    color: var(--text-primary);
}

/* Experience */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-gradient);
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 0 20px var(--glow-color);
}

.experience-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.experience-item .role {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.experience-item .date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style: none;
}

.experience-item li {
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #667eea;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-card ul {
    list-style: none;
}

.project-card li {
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.project-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1.2rem;
}
/* Certifications Section */
#certifications {
  padding: 5rem 5%;
  background: var(--dark-bg);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cert-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cert-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px rgba(102,126,234,0.4));
}

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cert-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cert-card .skills {
  color: #9fa7ff;
  font-size: 0.9rem;
}

.credly-link {
  text-align: center;
  margin-top: 3rem;
}

/* Footer */
footer {
    background: rgba(10, 14, 39, 0.8);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-icons a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-text h1 {
        font-size: 3rem;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        padding: 2rem;
        border-radius: 10px;
        width: 250px;
        transition: right 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 20px;
    }

    .hamburger {
        display: flex;
    }

    .profile-text h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 5%;
    }
}
