/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Enhancement */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: none;
}

body.dark-mode header {
    background-color: rgba(26, 26, 26, 0.95);
}

/* Smooth shadow transition on scroll */
header.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    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: linear-gradient(135deg, #4f46e5, #7c3aed);
    transition: width 0.3s ease;
}

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

body.dark-mode .nav-links a {
    color: #e0e0e0;
}

.nav-links a:hover {
    color: #4f46e5;
}

/* Theme Toggle */
.theme-toggle {
    margin-left: 2rem;
}

#theme-switch {
    display: none;
}

.toggle-label {
    position: relative;
    display: block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

#theme-switch:checked + .toggle-label {
    background-color: #4f46e5;
}

#theme-switch:checked + .toggle-label::after {
    transform: translateX(26px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

body.dark-mode .hamburger span {
    background-color: #e0e0e0;
}

/* 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: 600px;
}

.hero-title {
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
}

body.dark-mode .hero-subtitle {
    color: #ccc;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: #5865f2;
    transform: translateY(-3px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    z-index: 1;
}

body.dark-mode .hero-bg {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2));
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* About Section */
.about-content-new {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}

body.dark-mode .about-content-new {
    color: #e0e0e0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
    border: 4px solid #4f46e5;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode .profile-pic {
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
    border-color: #7c3aed;
}

.profile-pic:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.4);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-name {
    font-size: 2.5rem;
    color: #4f46e5;
    font-weight: 800;
    line-height: 1.2;
}

body.dark-mode .about-name {
    color: #a78bfa;
}

.about-title {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

body.dark-mode .about-title {
    color: #b0b0b0;
}

.about-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

body.dark-mode .about-bio {
    color: #d0d0d0;
}

.about-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff, #f5edff);
    color: #4f46e5;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    border: 2px solid transparent;
}

body.dark-mode .social-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2));
    color: #a78bfa;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-icon:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.4);
    border-color: #4f46e5;
}

body.dark-mode .social-icon:hover {
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.5);
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.skills {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

body.dark-mode .skill-bar {
    background-color: #333;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Projects Section */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

body.dark-mode .filter-btn {
    border-color: #7c3aed;
    color: #7c3aed;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transition: left 0.5s ease;
    z-index: -1;
}

body.dark-mode .filter-btn::before {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5);
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .project-card {
    background: #2a2a2a;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-stack span {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

body.dark-mode .tech-stack span {
    background: #333;
    color: #ccc;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #7c3aed;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    border: 4px solid white;
}

body.dark-mode .timeline-marker {
    border-color: #1a1a1a;
}

.timeline-content {
    margin-left: 80px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .timeline-content {
    background: #2a2a2a;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.company {
    color: #4f46e5;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

body.dark-mode .date {
    color: #ccc;
}

/* Certifications Section */
.certifications {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    padding: 5rem 0;
}

body.dark-mode .certifications {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
}

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

.cert-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

body.dark-mode .cert-card {
    background: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.2);
}

body.dark-mode .cert-card:hover {
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.cert-card h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 1.2rem;
}

body.dark-mode .cert-card h3 {
    color: #f3f4f6;
}

.cert-issuer {
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

body.dark-mode .cert-issuer {
    color: #7c3aed;
}

.cert-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

body.dark-mode .cert-description {
    color: #b0b0b0;
}

.cert-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cert-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f0f4ff, #f5edff);
    color: #4f46e5;
}

body.dark-mode .cert-badge {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2));
    color: #a78bfa;
}

.cert-badge.completed {
    background: linear-gradient(135deg, #d1fae5, #e0f7f4);
    color: #059669;
}

body.dark-mode .cert-badge.completed {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(16, 185, 129, 0.2));
    color: #10b981;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

body.dark-mode .social-link {
    background: #333;
    color: #e0e0e0;
}

.social-link:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.1);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .contact-form {
    background: #2a2a2a;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
}

body.dark-mode footer {
    background: #1a1a1a;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    body.dark-mode .nav-links {
        background: #1a1a1a;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .about-content,
    .about-content-new,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content-new {
        align-items: center;
        text-align: center;
    }

    .profile-pic {
        width: 220px;
        height: 220px;
    }

    .about-name {
        font-size: 2rem;
    }

    .about-social {
        justify-content: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 10px;
    }

    .timeline-content {
        margin-left: 60px;
    }

    .filter-buttons {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

    .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ===== Skills Section ===== */
.skills-cards {
  padding: 5rem 1.5rem;
  max-width: 1300px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #000000;
}

/* ===== Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

/* ===== Glass Card ===== */
.skill-card {
  position: relative;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

body.dark-mode .skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Subtle glow border */
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(174, 178, 190, 0.25),
    rgba(255, 255, 255, 0.35)
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

/* Hover effect */
.skill-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

body.dark-mode .skill-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.skill-card:hover::before {
  opacity: 1;
}

/* ===== Card Title ===== */
.skill-card h3 {
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  color: #000000;
  position: relative;
  z-index: 1;
}

body.dark-mode .skill-card h3 {
  color: #ffffff;
}

/* ===== Badge Group ===== */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

/* Badge sizing */
.badge-group img {
  height: 32px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

body.dark-mode .badge-group img {
  filter: brightness(0.9) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.badge-group img:hover {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}


.hero-modern {
  height: 100vh;
  background: #5865f2; /* Discord-like blue */
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  padding: 0 6rem;
  position: relative;
  overflow: hidden;
}

/* LEFT */
.hero-left h1 {
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 800;
  color: white;
  line-height: 0.95;
}

.hero-left .accent {
  color: #e0e7ff;
}

.hero-role {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #e5e7eb;
}

.hero-role span {
  opacity: 0.9;
}

/* Buttons */
.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: #5865f2;
}

.btn-outline {
  border: 2px solid white;
  color: white;
}

/* RIGHT */
.hero-right {
  display: flex;
  justify-content: center;
}

.hero-right img {
  width: 420px;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
}

/* Scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  writing-mode: vertical-rl;
  color: white;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Floating Card Animation */
.floating-card {
  position: relative;
  animation: float-smooth 6s ease-in-out infinite;
}

.hero-image {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  transition: filter 0.3s ease;
}

.floating-card:hover .hero-image {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
}

/* Enhanced Floating animation */
@keyframes float-smooth {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-25px) rotate(1deg); }
  50% { transform: translateY(-35px) rotate(0deg); }
  75% { transform: translateY(-20px) rotate(-1deg); }
}

/* Hero Title Animation */
.hero-title-animated {
  animation: title-pop-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes title-pop-in {
  0% { 
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% { 
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Fade-in delays for sequential animation */
.fade-in-delay {
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
  animation: fade-in-up 0.8s ease-out 0.4s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Role highlight styling */
.role-highlight {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Project Card Enhancements */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .project-card {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.05);
}

.project-image {
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translate(-100%, -100%) rotate(45deg); }
  100% { transform: translate(100%, 100%) rotate(45deg); }
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.dark-mode .project-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4f46e5;
  transition: width 0.3s ease;
}

.project-link:hover::after {
  width: 100%;
}

/* Form Enhancement */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: #333;
  border-color: #555;
  color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  transform: scale(1.01);
}

.form-error {
  display: none;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-error.show {
  display: block;
  animation: shake 0.5s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.btn-submit {
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-modern {
    grid-template-columns: 1fr;
    padding: 6rem 3rem 3rem 3rem;
    text-align: center;
    align-items: flex-start;
    justify-items: center;
    padding-top: max(6rem, 15vh);
  }

  .hero-left h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
  }

  .hero-right img {
    width: 300px;
    margin-top: 2rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-modern {
    padding: max(5rem, 12vh) 2rem 2rem 2rem;
  }

  .hero-left h1 {
    font-size: clamp(2rem, 4vw, 3rem);
  }
}

@media (max-width: 480px) {
  .hero-modern {
    padding: max(4rem, 10vh) 1.5rem 2rem 1.5rem;
    height: auto;
    min-height: 100vh;
  }

  .hero-left h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-right img {
    width: 250px;
    margin-top: 1.5rem;
  }
}
