/* Open Source Banner */
.open-source-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #487bb8 !important;
    color: white !important;
    padding: 0.75rem 1rem;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 10001 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    min-height: 50px;
}

.open-source-banner.hidden {
    transform: translateY(-100%);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.banner-content p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.github-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.github-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.banner-close svg {
    width: 20px;
    height: 20px;
}

/* Adjust navigation position when banner is visible */
.navbar {
    position: fixed;
    top: calc(1.5rem + 60px); /* Adjust based on banner height */
    left: 50%;
    max-width: 24rem;
    width: auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 1000;
    padding: 0.25rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    animation: slideInFromTop 1s ease-out 1s forwards;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    overflow-x: hidden;
}

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

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: block;
    cursor: pointer;
}

.nav-link:hover {
    color: #1a1a1a;
    background-color: rgba(229, 231, 235, 0.5);
}

/* Dropdown Menus */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1001;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: block;
}

.dropdown-link:hover {
    color: #1a1a1a;
    background-color: #f3f4f6;
}

/* Projects Grid for Dropdown */
.projects-grid-dropdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    min-width: 320px;
}

.project-card-dropdown {
    background: #fafafa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-card-dropdown:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.project-card-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}

.project-card-description {
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Hero Section with Split Header and Center Card */
.hero {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    overflow: hidden;
    z-index: -1;
}

/* Split Header */
.split-header {
    display: flex;
    width: 100%;
    height: 100%;
}

.header-left {
    width: 50%;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.header-name {
    font-size: clamp(9rem, 6vw, 12rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 0.8;
    margin-top: 4rem;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 1.2s ease-out 0.3s forwards;
}

.header-name.loaded {
    transition: font-size 0.6s ease, transform 0.6s ease, margin-top 0.6s ease;
}

.header-name.loaded.scrolled {
    font-size: clamp(7rem, 5vw, 9rem);
    margin-top: 2rem;
    transform: translateX(0) translateY(-20px);
}

.header-title {
    font-size: 6rem;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: -0.01em;
    line-height: 0.8;
    align-self: flex-start;
    opacity: 0;
    transform: translateX(-80px);
    animation: slideInFromLeft 1.2s ease-out 0.6s forwards;
}

.header-right {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.header-image-2 {
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-image-2.slide-up {
    transform: translateY(0);
}

.header-right {
    position: relative;
    overflow: hidden;
}
    animation: slideInFromRight 1.4s ease-out 0.4s forwards;
}

.header-image:not([src]),
.header-image[src=""] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    font-weight: 600;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100px) scale(1.1);
    animation: slideInFromRight 1.4s ease-out 0.4s forwards;
}

.header-image:not([src]):before,
.header-image[src=""]:before {
    content: "CS";
}

/* Center Card */
.center-card {
    width: min(800px, 90vw);
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    padding: 2rem;
    margin: 0 auto;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: fadeInUp 1.2s ease-out 0.8s forwards;
}

.card-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0;
}

.card-icon {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.card-icon:not([src]),
.card-icon[src=""] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.card-icon:not([src]):before,
.card-icon[src=""]:before {
    content: "CS";
}

.card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 110px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.email-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.email-button:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cv-button:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-button span {
    font-size: 0.875rem;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    text-transform: none;
}

.card-position {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 700;
}

.card-contact {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.card-contact p {
    margin: 0.1rem 0;
    line-height: 1.2;
}

.card-contact a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-contact a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}


.card-description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.card-description p {
    margin: 0;
}

/* Scrolling Container */
.scrolling-container {
    position: absolute;
    top: 100vh;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    min-height: 100vh;
}

/* Content Area */
.content-area {
    background: transparent;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 50;
}

/* Content Cards */
.content-card {
    width: min(800px, 90vw);
    min-height: 300px;
    margin: 0 auto 3rem auto;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-section-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    letter-spacing: -0.01em;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Hero Animation Keyframes */
@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromTop {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Card Scroll Behavior - removed since center card now scrolls normally */

/* Navbar adjustments for new layout - removed duplicate */

/* About Section in Cards */
.about-content {
    max-width: 100%;
}

.about-details {
    display: grid;
    gap: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
}

.about-details p {
    margin: 0;
}

/* Experience Section in Cards */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.company-location {
    color: #6b7280;
    font-size: 0.875rem;
}

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

.position {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.position:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.position-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.position-period {
    font-size: 0.875rem;
    color: #6b7280;
}

.position-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.position-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 1rem 0 0.5rem 0;
}

.position-details h5:first-child {
    margin-top: 0;
}

.position-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.position-details li {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.position-details li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #9ca3af;
    font-weight: bold;
}

/* Skills Section in Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

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

.skill-category li {
    padding: 0.5rem 0;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.3s ease;
}

.skill-category li:hover {
    color: #1a1a1a;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Education Section in Cards */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.education-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.education-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.degree-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.degree-grade {
    font-size: 1rem;
    font-weight: 500;
    color: #059669;
    margin-bottom: 0.25rem;
}

.degree-institution {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.degree-period {
    font-size: 0.875rem;
    color: #6b7280;
}

.awards-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 3rem;
}

.awards-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

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

.award-item {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.award-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.award-item p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Projects Section in Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-item {
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 1.5rem 0.5rem;
}

.project-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 1.5rem 1.5rem;
    line-height: 1.6;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-details p {
    margin: 0;
    font-size: 0.875rem;
}

.contact-details a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #ffffff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: #374151;
    transform: translateY(-1px);
}

.contact-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    background: #d1f2eb;
    color: #27ae60;
    border: 1px solid #a3e9d0;
}

.form-status.error {
    background: #fadbd8;
    color: #e74c3c;
    border: 1px solid #f1948a;
}

.form-status.loading {
    background: #e8f4fd;
    color: #3498db;
    border: 1px solid #aed6f1;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Banner mobile styles */
    .open-source-banner {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .banner-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .github-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .banner-close {
        right: 0.5rem;
        padding: 0.1rem;
    }
    
    .banner-close svg {
        width: 18px;
        height: 18px;
    }
    
    /* REMOVE NAVBAR COMPLETELY ON MOBILE */
    .navbar {
        display: none !important;
    }
    
    .nav-dropdown {
        display: none !important;
    }
    
    .projects-grid-dropdown {
        display: none !important;
    }
    
    /* HIDE HERO SECTION COMPLETELY ON MOBILE */
    .hero {
        display: none !important;
    }
    
    /* CENTER CARD MOBILE REDESIGN */
    .scrolling-container {
        position: static;
        top: 0;
        left: 0;
        right: 0;
        background: #fafafa;
        min-height: 100vh;
        padding-top: 180px; /* Much more space for banner */
        padding-bottom: 2rem;
        overflow-y: auto;
    }
    
    .center-card {
        width: 95vw;
        max-width: 500px;
        height: auto;
        margin: 4rem auto 2rem auto; /* Much larger top margin */
        padding: 2.5rem 1.5rem;
        position: relative;
        transform: none;
        opacity: 1;
        animation: none;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .card-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .card-left {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .card-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto;
        flex-shrink: 0;
        border-radius: 20px;
        display: block;
    }
    
    .card-content {
        text-align: center;
        height: auto;
        width: 100%;
    }
    
    .card-name {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }
    
    .card-position {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        text-align: center;
        color: #4b5563;
        text-transform: uppercase;
        font-weight: 600;
    }
    
    .card-contact {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    .card-contact p {
        margin: 0.3rem 0;
        line-height: 1.5;
    }
    
    .card-contact a {
        color: #3b82f6;
        text-decoration: none;
        font-weight: 500;
    }
    
    .card-contact a:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }
    
    .action-buttons {
        justify-content: center;
        margin-top: 0;
        width: 100%;
        gap: 1rem;
    }
    
    .card-description {
        text-align: left;
        font-size: 1rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: 1rem;
    }
    
    /* CONTENT AREA MOBILE */
    .content-area {
        padding: 1rem;
        background: #fafafa;
    }
    
    .content-card {
        width: 95vw;
        max-width: 500px;
        padding: 1.5rem;
        margin: 0 auto 2rem auto;
        border-radius: 12px;
    }
    
    .card-section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .card-section-number {
        text-align: left;
        font-size: 0.875rem;
    }
    
    /* LEFT ALIGN ALL CONTENT FOR BETTER MOBILE READING */
    .about-details {
        text-align: left;
    }
    
    .about-details p {
        text-align: left;
    }
    
    /* EXPERIENCE SECTION MOBILE - LEFT ALIGNED */
    .experience-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .company-name {
        font-size: 1.125rem;
        text-align: left;
    }
    
    .company-location {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .position-title {
        font-size: 1rem;
        text-align: left;
    }
    
    .position-period {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    /* SKILLS SECTION MOBILE - LEFT ALIGNED */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        text-align: left;
    }
    
    .skill-category h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    /* PROJECTS SECTION MOBILE - LEFT ALIGNED */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-item {
        max-width: none;
    }
    
    .project-title {
        text-align: left;
        font-size: 1.25rem;
    }
    
    .project-description {
        text-align: left;
        font-size: 1rem;
    }
    
    /* GALLERY MOBILE - DISABLE CLICKS */
    .gallery-image {
        cursor: default !important;
        pointer-events: none !important;
        width: 100%;
        height: auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }
    
    /* CONTACT SECTION MOBILE - LEFT ALIGNED */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        text-align: left;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
        text-align: left;
    }
    
    .contact-details {
        text-align: left;
    }
    
    .contact-form {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    /* EDUCATION MOBILE - LEFT ALIGNED */
    .education-item {
        text-align: left;
        padding: 1rem 0;
    }
    
    .degree-title {
        font-size: 1.125rem;
        text-align: left;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .award-item {
        text-align: left;
        padding: 1rem;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 480px) {
    .header-name {
        font-size: 2.5rem !important;
    }
    
    .header-title {
        font-size: 1.5rem !important;
    }
    
    .center-card {
        width: 90vw;
        padding: 1rem;
        margin: -2rem auto 1.5rem auto;
    }
    
    .content-card {
        width: 90vw;
        padding: 1rem;
    }
    
    .card-name {
        font-size: 1.25rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .email-button,
    .cv-button {
        width: 100%;
        justify-content: center;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effects */
.nav-link,
.project-item,
.skill-category li {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
.nav-link:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* PiP World Gallery Styles */
.pip-gallery {
    width: 100%;
    margin: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-image {
    width: 252px;
    height: 145px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 145%;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.6);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-prev {
    left: 2rem;
}

.modal-next {
    right: 2rem;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1001;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 300px;
    }
    
    .gallery-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .modal-image {
        transform: scale(0.6);
    }
    
    .modal-nav {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .modal-prev {
        left: 1rem;
    }
    
    .modal-next {
        right: 1rem;
    }
}

/* Project Modal Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.project-modal.active {
    display: flex;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    animation: overlayFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-modal-container {
    position: relative;
    width: min(900px, 95vw);
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    transform: scale(0.8) translateY(40px);
    opacity: 0;
    animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.project-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    transform: scale(1.1);
}

.project-modal-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 100%;
    max-height: 600px;
}

.project-modal-image {
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-modal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

.project-modal-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    animation: iconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
}

.project-modal-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.project-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.project-modal-description {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.project-modal-stats {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.project-modal-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

.project-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.project-tag {
    padding: 0.5rem 1rem;
    background: rgba(103, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(103, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transform: scale(0.8);
    animation: tagPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.project-tag:nth-child(2) { animation-delay: 0.1s; }
.project-tag:nth-child(3) { animation-delay: 0.2s; }
.project-tag:nth-child(4) { animation-delay: 0.3s; }
.project-tag:nth-child(5) { animation-delay: 0.4s; }

.project-modal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.project-modal-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

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

.project-modal-cta-button:hover {
    transform: translateY(-1px);
    background: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-modal-cta-secondary {
    background: rgba(26, 26, 26, 0.1);
    color: #374151;
    border: 1px solid rgba(26, 26, 26, 0.2);
}

.project-modal-cta-secondary:hover {
    background: rgba(26, 26, 26, 0.15);
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.3);
}

.project-modal-cta-button:hover::before {
    left: 100%;
}

/* Project Modal Animations */
@keyframes modalFadeIn {
    to {
        backdrop-filter: blur(20px);
    }
}

@keyframes overlayFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPop {
    to {
        transform: scale(1);
    }
}

@keyframes tagPop {
    to {
        transform: scale(1);
    }
}

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

/* Responsive Project Modal */
@media (max-width: 768px) {
    .project-modal {
        align-items: flex-start;
        padding: 1rem;
    }
    
    .project-modal-container {
        max-height: 90vh;
        overflow-y: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .project-modal-content {
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .project-modal-image {
        height: 200px;
    }
    
    .project-modal-details {
        padding: 2rem 1.5rem;
    }
    
    .project-modal-title {
        font-size: 1.5rem;
    }
    
    .project-modal-description {
        font-size: 1rem;
    }
    
    .project-modal-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Enhanced project item hover for modal trigger */
.project-item {
    cursor: pointer;
    position: relative;
}

.project-item::after {
    content: 'Click to view details';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.project-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .contact-form,
    .pip-gallery,
    .project-modal {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
}
