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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.nav-logo a:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}

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

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: #cbd5e1;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Home Section */
.home {
    height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 8vh;
}

.home-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.2) 0%, rgba(30, 41, 59, 0.3) 100%),
        url('images/university-background.jpg') center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, rgba(30, 41, 59, 0.5) 100%);
    z-index: 2;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    z-index: 3;
}

.home-content {
    position: relative;
    z-index: 4;
}

.home-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 7rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.highlight {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    color: #e2e8f0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.home-content p {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    color: #f8fafc;
    line-height: 1.8;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    background: rgba(15, 23, 42, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.home-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    color: white;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 2px solid rgba(59, 130, 246, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #3b82f6;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* About Section */
.about {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.05), transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
}

.headshot {
    width: 350px;
    height: 350px;
    border-radius: 24px;
    object-fit: cover;
    transition: all 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid transparent;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    background-clip: padding-box;
}

.headshot:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(59, 130, 246, 0.3);
}

.about-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about-info p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.skills-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skills-column {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.skills-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skills-column:hover::before {
    opacity: 1;
}

.skills-column:hover {
    transform: translateY(-12px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.skills-column h3 {
    color: #f8fafc;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.skill-tag:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Cards Section Styles */
.cards-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.cards-section:nth-of-type(even) {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.03), transparent 70%);
    pointer-events: none;
}

/* Scroll Controls */
.scroll-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    padding: 0 2rem;
}

.scroll-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.scroll-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.horizontal-scroll-container {
    position: relative;
    margin-top: 4rem;
    overflow: hidden;
}

.scroll-content {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    width: max-content;
}

.card {
    min-width: 380px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.card:hover {
    transform: translateY(-16px) scale(1.03);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 40px 80px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.card-header {
    display: flex;
    align-items: flex-start;
    padding: 2.5rem;
    gap: 1.5rem;
    position: relative;
}

.logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    flex-shrink: 0;
    /* Fallback styling for when images don't load */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3b82f6;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.card-title {
    flex: 1;
}

.card-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.company-name {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.date-range, .project-tech {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.toggle-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toggle-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.1);
}

.toggle-btn.active {
    transform: rotate(180deg);
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #8b5cf6;
}

.card-body {
    display: none;
    padding: 0 2.5rem 2.5rem;
    list-style: none;
    overflow: hidden;
    max-height: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.card-body.active {
    display: block;
    max-height: 250px;
    overflow-y: auto;
}

.card-body li {
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
}

.card-body li::before {
    content: '→';
    color: #3b82f6;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Certifications Section */
.certifications {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.05), transparent 70%);
    pointer-events: none;
}

.cert-card {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    cursor: pointer;
    position: relative;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.cert-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.cert-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.cert-card h3 {
    color: #f8fafc;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.cert-card p {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cert-card a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
}

.cert-card a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.03), transparent 70%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-info a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

#contactForm {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(20px);
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #94a3b8;
}

#contactForm button {
    width: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) rotate(-45deg);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) rotate(-45deg);
    }
}

/* Typing Animation */
#typing-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 2px solid #3b82f6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #3b82f6; }
    51%, 100% { border-color: transparent; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .home-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    .home-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .home-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .headshot {
        width: 280px;
        height: 280px;
    }
    
    .skills-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .card {
        min-width: 320px;
        max-width: 320px;
    }
    
    .cert-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .card-header {
        padding: 2rem;
        gap: 1rem;
    }
    
    .card-body {
        padding: 0 2rem 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }

    .scroll-controls {
        position: relative;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 0;
    }

    .scroll-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .home-content h1 {
        font-size: 2rem;
    }
    
    .home-content h2 {
        font-size: 1.2rem;
    }
    
    .card {
        min-width: 300px;
    }
    
    .cert-card {
        min-width: 260px;
        padding: 2rem;
    }
    
    .card-header {
        padding: 2rem;
    }
    
    .card-body {
        padding: 0 2rem 2rem;
    }
    
    .skills-section {
        grid-template-columns: 1fr;
    }
}

/* Enhanced animations and transitions */
.scroll-content {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-content.auto-scrolling {
    animation: autoScroll 30s linear infinite;
}

.scroll-content.paused {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Professional loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Enhanced focus states for better accessibility */
.toggle-btn:focus-visible,
.scroll-btn:focus-visible,
.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Professional hover effects */
.card:hover .logo {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Enhanced typography for better readability */
.card-body li {
    text-align: justify;
    hyphens: auto;
}

/* Professional spacing improvements */
.section-title {
    margin-bottom: 5rem;
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
    .home-content h1 {
        font-size: 3.2rem;
        line-height: 1.1;
    }
    
    .home-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .home-content p {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
        margin-bottom: 3rem;
    }
    
    .card {
        min-width: 320px;
        max-width: 320px;
    }
    
    .card-header {
        padding: 2rem;
        gap: 1rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .card-title h3 {
        font-size: 1.3rem;
    }
    
    .company-name {
        font-size: 0.95rem;
    }
    
    .date-range, .project-tech {
        font-size: 0.85rem;
    }
    
    .skills-column {
        padding: 2rem;
    }
    
    .skill-tag {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Enhanced card animations */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Smooth toggle animations */
.card-body {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-body.active {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Enhanced button animations */
.toggle-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.toggle-btn.active {
    transform: rotate(180deg) scale(1.1);
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #8b5cf6;
}

/* Enhanced scroll button animations */
.scroll-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.scroll-btn:active {
    transform: scale(0.95);
}

/* Smooth navbar transitions */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced skill tag animations */
.skill-tag {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Enhanced section animations */
section {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .cert-card, .scroll-btn, .toggle-btn {
    will-change: transform;
}

.scroll-content {
    will-change: transform;
}

/* Enhanced focus states for accessibility */
.nav-link:focus,
.btn:focus,
.toggle-btn:focus,
.scroll-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Improved scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

/* Floating particles animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-particle:nth-child(2n) {
    animation-delay: -2s;
    background: rgba(139, 92, 246, 0.6);
}

.floating-particle:nth-child(3n) {
    animation-delay: -4s;
    background: rgba(236, 72, 153, 0.6);
}

/* Video Demo Section Styles */
.video-demo-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.video-title {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.project-video {
    width: 100%;
    height: auto;
    display: block;
    background: #1e293b;
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 2px dashed rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.play-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
}

.video-placeholder p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}