/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */

:root {
    --primary-color: #006064;
    --primary-light: #00838f;
    --primary-dark: #004d52;
    --secondary-color: #ff6b6b;
    --accent-color: #ffd700;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
    --primary-color: #00a9b5;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-light: #1a1a1a;
    --bg-gray: #242424;
    --border-color: #404040;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
    position: relative;
    z-index: 2;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.resume-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, transparent, rgba(0, 96, 100, 0.05));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.title-word {
    display: inline-block;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.title-word:nth-child(1) {
    animation-delay: 0.1s;
}

.title-word:nth-child(2) {
    animation-delay: 0.2s;
}

.title-word:nth-child(3) {
    animation-delay: 0.3s;
}

.title-word.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease-out;
}

.floating-card {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    animation: rotate 8s linear infinite;
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.skill-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

.card-content p {
    font-size: 18px;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 14px;
    color: var(--text-light);
}

.scroll-indicator i {
    color: var(--primary-color);
    font-size: 20px;
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: 2px;
    animation: slideIn 0.8s ease-out 0.2s both;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: linear-gradient(135deg, transparent, rgba(0, 96, 100, 0.05));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease-out;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out;
}

.stat:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.stat h4 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    padding: 30px;
    background: var(--bg-gray);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.info-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-lg);
}

.info-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.info-card:hover i {
    color: white;
    transform: scale(1.2);
}

.info-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-card p {
    margin: 0;
    font-size: 14px;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.experience {
    background: linear-gradient(135deg, transparent, rgba(0, 96, 100, 0.05));
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    margin-bottom: 50px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.timeline-item:nth-child(odd) {
    padding-right: 52%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 52%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--bg-light);
    border-radius: 50%;
    top: 30px;
    box-shadow: 0 0 0 4px rgba(0, 96, 100, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.5);
    background: var(--secondary-color);
}

.timeline-content {
    padding: 30px;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content .company {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.timeline-content .date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.experience-list {
    list-style: none;
    padding: 0;
}

.experience-list li {
    padding-left: 25px;
    margin-bottom: 12px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.experience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-gray);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    display: none;
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    animation: rotate 8s linear infinite;
}

.project-image.syndrome {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.project-image.nirvana {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.project-image.twist {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.project-image.daiser {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.tech-stack {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.project-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--primary-light);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills {
    background: linear-gradient(135deg, transparent, rgba(0, 96, 100, 0.05));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    padding: 30px;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.skill-category:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.skill-category:hover h3 {
    color: white;
}

.skill-category i {
    font-size: 24px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 18px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.skill-category:hover .skill-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.skill-tag:hover {
    transform: scale(1.1);
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */

.certifications {
    background: linear-gradient(135deg, transparent, rgba(0, 96, 100, 0.05));
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-group {
    padding: 30px;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    border-left: 4px solid var(--primary-color);
}

.cert-group:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cert-group h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cert-group i {
    font-size: 24px;
}

.cert-group ul {
    list-style: none;
}

.cert-group li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.3s ease;
}

.cert-group li:hover {
    color: var(--primary-color);
    padding-left: 35px;
}

.cert-group li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */

.publications {
    background: linear-gradient(135deg, transparent, rgba(0, 96, 100, 0.05));
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pub-card {
    padding: 40px;
    background: var(--bg-gray);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out;
}

.pub-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pub-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
    transition: all 0.3s ease;
}

.pub-card:hover .pub-icon {
    transform: scale(1.2) rotate(10deg);
}

.pub-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pub-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.pub-venue {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.pub-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pub-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: linear-gradient(135deg, transparent, rgba(0, 96, 100, 0.05));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease-out;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(10deg);
    background: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.contact-form-container {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-gray);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 96, 100, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 40px 0;
    text-align: center;
    animation: slideInUp 0.8s ease-out;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

.footer-text {
    font-size: 15px;
    font-weight: 500;
}

.footer-text i {
    color: var(--secondary-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 40px;
    }

    .nav-container {
        padding: 1rem 40px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-light);
        padding: 20px;
        gap: 10px;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    section {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    .floating-card {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding: 0;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-right: 0;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-marker {
        left: 3px;
        transform: translateX(0);
    }

    .timeline-item:hover .timeline-marker {
        transform: translateX(0) scale(1.3);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .resume-btn {
        display: inline-flex;
        width: auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .pub-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 1rem 20px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

    .floating-card {
        width: 200px;
        height: 200px;
    }

    .skill-icon {
        font-size: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-text h3 {
        font-size: 24px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: -8px;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-item i {
        font-size: 20px;
    }

    .pub-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   TRANSITIONS FOR DARK MODE
   ============================================ */

body,
.navbar,
section,
.container,
.btn,
.nav-link,
.theme-toggle,
.resume-btn,
.info-card,
.skill-category,
.cert-group,
.project-card,
.timeline-content,
.pub-card,
.social-icon,
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}
