:root {
    /* Color Scheme */
    --primary: #00f2ea;
    --secondary: #1a1a1a;
    --accent: #ff6b6b;
    --text: #444;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gradient: linear-gradient(135deg, #00f2ea 0%, #00d6d0 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --section-spacing: 8rem;
    
    /* Animation Variables */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --hover-lift: translateY(-5px);
    --hover-scale: scale(1.05);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'SF Pro Display', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background-color: var(--light);
    color: var(--text);
    overflow-x: hidden;
}

/* Section Common Styles */
section {
    padding: var(--section-spacing) 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--primary) 49%, var(--primary) 51%, transparent 52%);
    opacity: 0.05;
    transform: scale(2);
    pointer-events: none;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    color: var(--secondary);
    text-transform: capitalize;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.4s ease;
}

h2:hover::after {
    width: 120px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: #00d6d0;
    color: #00d6d0;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo::before {
    content: '\1F310'; /* Emoji as portfolio symbol */
    font-size: 1.6rem;
    margin-right: 0.3rem;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

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

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

.nav-links a:hover {
    color: #00f2ea;
}

.resume-btn {
    background: var(--gradient);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.resume-btn:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1001;
}

.nav-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.nav-toggle.active {
    color: var(--primary);
}

/* Hamburger Icon Animation */
.nav-toggle i {
    transition: transform 0.3s ease;
}

.nav-toggle.active i {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 80px 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #f0f5ff 0%, #ffffff 100%);
    overflow: hidden;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
}

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 4px solid #00f2ea;
    overflow: hidden;
    background-color: white;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--primary), #00d6d0, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientMove 5s ease infinite;
}

.wave-emoji {
    display: inline-block;
    animation: float 2s ease-in-out infinite;
}

.role {
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 2rem;
}

.bio {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.bio h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.expertise h4 {
    font-size: 1.2rem;
    color: #00f2ea;
    margin: 1.5rem 0 1rem;
}

.expertise ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    list-style: none;
}

.expertise li {
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
}

.expertise li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.location i {
    color: #00f2ea;
    font-size: 1.25rem;
}

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

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 0;
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: all var(--transition-fast);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover i {
    color: white;
    transform: var(--hover-scale);
}

.social-icon i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icon:hover i {
    color: #00f2ea;
    transform: scale(1.1);
}

.view-work-container {
    width: 100%;
    text-align: center;
    padding: 3rem 0;
    position: absolute;
    bottom: 2rem;
    left: 0;
}

.view-work {
    background-color: #00f2ea;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 242, 234, 0.2);
}


.view-work:hover {
    transform: translateY(-2px);
    background-color: #00d6d0;
    box-shadow: 0 6px 8px rgba(0, 242, 234, 0.3);
}

.view-work i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.view-work:hover i {
    transform: translateY(2px);
}

/* Education Section */
.education {
    padding: 4rem 2rem;
    background-color: #f0f5ff;
}

.education h2 {
    font-size: 2rem;
    color: #1a1a1a;
}

.education-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
}

.education-item h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.education-item .degree {
    font-size: 1.1rem;
    color: #00f2ea;
    margin-bottom: 0.5rem;
}

.education-item .major {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.edu-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Experience Section */
.experience {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
}

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

.experience-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.experience-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-item:hover::after {
    opacity: 1;
}

.experience-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.experience-item .company {
    color: #00f2ea;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.experience-item .duration {
    color: #666;
    font-size: 0.9rem;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Certifications Section */
.certifications {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certifications h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
}

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

.certification-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.certification-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.certification-icon {
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.certification-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    /* cursor: pointer; */ /* Removed as it's now a link */
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: linear-gradient(to right, rgba(0, 242, 234, 0.05), rgba(0, 214, 208, 0.1));
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.certification-item i {
    color: #00f2ea;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.certification-item span {
    color: #1a1a1a;
    font-size: 0.95rem;
    line-height: 1.4;
}

.certification-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.certification-link i {
    color: #00f2ea;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.certification-link:hover {
    color: #00f2ea; /* Change text color on hover */
}

.certification-link:hover i {
    color: #00f2ea; /* Ensure icon color also changes on hover */
}

/* Achievements Section */
.achievements {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .achievements h2 {
    text-align: left;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
  }
  
  .achievement-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
  }
  
  .achievement-badge {
    position: absolute;
    top: 15px;
    right: -25px;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 2rem;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 1;
  }
  
  .achievement-item:hover .achievement-badge {
    animation: badgeFloat 1s ease-in-out infinite;
  }
  
  .achievement-content {
    position: relative;
    z-index: 2;
  }
  
  .achievement-item h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .achievement-item p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .achievement-item ul {
    margin: 0 0 1rem 1rem;
    padding: 0;
    list-style-type: disc;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 0.95rem;
  }
  
  .achievement-item li {
    margin-bottom: 0.5rem;
  }
  
  .lor-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: all var(--transition-fast);
  }
  
  .lor-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
  }
  
  .achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
  }  

@keyframes badgeFloat {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-5px); }
}

/* Skills Section */
.skills {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 234, 0.1);
    backdrop-filter: blur(10px);
}

.skill-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.skill-category:hover::after {
    width: 100%;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient);
    opacity: 0.1;
    transform: rotate(45deg);
    transition: opacity 0.3s ease;
}

.skill-category:hover::before {
    opacity: 0.2;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h3 i {
    font-size: 1.6rem;
    color: var(--primary);
}

.skill-list {
    display: grid;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    position: relative;
    color: var(--text-color);
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.skill-category li::before {
    content: '\f121'; /* Font Awesome Unicode for code icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.skill-category li:hover::before {
    transform: translateY(-50%) rotate(15deg);
    color: var(--secondary);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.skill-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1 !important; /* Force visibility */
}

.projects h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.project-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.filter-btn:hover,
.filter-btn:active {
    color: #00f2ea;
    background-color: rgba(0, 242, 234, 0.1);
}

.filter-btn.active {
    background-color: #00f2ea;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 242, 234, 0.2);
}

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

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-fast);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 0;
    pointer-events: none;
}

.project-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow);
}

.project-card:hover::before {
    opacity: 0.1;
}

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

.project-card:hover .project-info {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.8));
}

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

.project-image h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.project-info {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 2;
    pointer-events: auto;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 242, 234, 0.3);
}

.project-link:hover::before {
    transform: translateX(100%);
}

.project-link:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 242, 234, 0.2);
}

.project-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: rotate(360deg);
}

.project-info h4 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.project-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .profile-image {
        width: 320px;
        height: 320px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .profile-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .hero-content {
        max-width: 600px;
        padding-top: 2rem;
        margin-left: 0; 
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .location {
        justify-content: center !important; /* Changed from center */
        padding-left: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .experience-grid,
    .certifications-grid,
    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 6rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    header {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .role {
        font-size: 1.4rem;
    }

    .expertise ul {
        grid-template-columns: 1fr;
    }

    .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: all var(--transition-fast);
        opacity: 0;
        transform: translateY(-10px);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        max-height: 100vh;
        padding: 1rem;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all var(--transition-fast);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links li:nth-child(7) { transition-delay: 0.4s; }
    .nav-links li:nth-child(8) { transition-delay: 0.45s; }
}
    
    .nav-links.active {
        max-height: 500px;
        padding: 1rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-radius: 8px;
    }
    .nav-links a:hover {
        background: #f0f5ff;
    }

    .nav-toggle {
        display: block;
    }

    .resume-btn {
        width: 100%;
        justify-content: center;
    }
    .experience-grid,
    .certifications-grid,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 2rem !important;
        overflow: visible !important;
    }

    .project-card {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        min-height: auto !important;
        margin-bottom: 2rem !important;
    }

    .project-image {
        height: 200px !important;
    }

    .project-image h3 {
        font-size: 1.25rem;
    }

    [data-animation] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .certification-item {
        padding: 1.25rem;
    }
    
    .project-filters {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        overflow-x: auto;
        width: 100%;
    }

    .filter-btn {
        flex: 1 1 auto;
        min-width: 70px;
        max-width: 120px;
        padding: 0.5rem 0.5rem;
        font-size: 0.95rem;
        margin: 0;
        white-space: nowrap;
    }
    
    .filter-btn.active {
        background-color: #00f2ea;
        color: white;
        border-color: #00f2ea;
    }

    .filter-btn:active {
        transform: scale(0.95);
    }
    
    .education-item {
        padding: 1.5rem;
    }

    .education-item h3 {
        font-size: 1.25rem;
    }

    .education-item .degree {
        font-size: 1rem;
    }

    .edu-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .projects {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .profile-container {
        margin-top: 2.5rem !important;
    }
    .hero-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .nav-toggle {
        display: block !important;
        position: absolute;
        right: 1.5rem;
        top: 1.2rem;
        z-index: 1100;
    }
    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        box-shadow: none;
        padding-top: 56px;
        margin: 0;
        z-index: 1100;
        overflow-y: auto !important;
        max-height: 100vh !important;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .nav-links.active {
        display: flex !important;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.25rem 0;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-radius: 0;
    }
    .nav-links a:hover {
        background: #f0f5ff;
    }
    nav {
        position: relative;
    }
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .profile-container {
        margin-top: 2rem !important;
    }
    .hero-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .nav-toggle {
        display: block !important;
        position: absolute;
        right: 1.5rem;
        top: 1.2rem;
        z-index: 1100;
    }
    .nav-links {
        display: none !important;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding-top: 0;
        margin: 0;
        z-index: 1099;
        width: 100vw;
        max-height: 100vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }
    .nav-links.active {
        display: flex !important;
        max-height: 500px;
        opacity: 1;
        padding: 0;
        pointer-events: auto;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.25rem 0;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-radius: 0;
    }
    .nav-links a:hover {
        background: #f0f5ff;
    }
    nav {
        position: relative;
    }
}

/* Mobile Touch Optimization */
button, a {
    touch-action: manipulation;
}

/* Smooth Transitions */
.nav-links,
.profile-container,
.project-card {
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .view-work {
        padding: 1rem 2rem;
    }

    .project-info {
        padding: 1rem;
    }
    
    .project-info h4 {
        font-size: 1.1rem;
    }
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    margin-top: var(--section-spacing);
}

footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--gradient);
    transform: skewY(-3deg);
    z-index: -1;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
[data-animation] {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s forwards;
}

.animate-scaleUp {
    animation: scaleUp 0.6s forwards;
}

/* Staggered Animations */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Delay for grid items */
.experience-grid > *,
.certifications-grid > *,
.projects-grid > *,
.skills-grid > * {
    transition-delay: calc(var(--index) * 0.1s);
}

.wave-emoji {
    display: inline-block;
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.2em;
}

@keyframes wave {
    0% { transform: rotate(0deg) }
    10% { transform: rotate(-10deg) }
    20% { transform: rotate(12deg) }
    30% { transform: rotate(-10deg) }
    40% { transform: rotate(9deg) }
    50% { transform: rotate(0deg) }
    100% { transform: rotate(0deg) }
}

@media (max-width: 480px) {
    .project-filters {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0.3rem;
        padding: 0.5rem 0;
        overflow-x: auto;
        width: 100%;
    }
    .filter-btn {
        flex: 1 1 auto;
        min-width: 60px;
        max-width: 100px;
        padding: 0.4rem 0.3rem;
        font-size: 0.9rem;
        margin: 0;
        white-space: nowrap;
    }
}

