* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
}

header {
    position: static;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 122, 204, 0.1);
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    min-height: 2.5rem;
}

.logo.blue {
    color: #007acc;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: #007acc;
    background: rgba(0, 122, 204, 0.1);
    transform: translateY(-2px);
}

nav a.active {
    color: #007acc;
    background: rgba(0, 122, 204, 0.15);
    font-weight: 600;
}

nav a.active::after {
    width: 80%;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007acc, #0056b3);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

main {
    margin-top: 0;
    flex: 1;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 1rem 2rem 1rem 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 122, 204, 0.1) 0%, transparent 70%);
    transform: translateX(-50%);
    z-index: -1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #333 0%, #007acc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero span {
    color: #007acc;
    text-shadow: 0 0 20px rgba(0, 122, 204, 0.3);
}

.mobile-break {
    display: none;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #007acc 0%, #0056b3 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 122, 204, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.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;
}

.cta-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 122, 204, 0.4);
}

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

.hero-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.about, .contact {
    text-align: center;
}

.about h2, .experience h2, .contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007acc, #0056b3, #007acc);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: #007acc;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    background: rgba(0, 122, 204, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-icon:hover {
    background: #007acc;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 122, 204, 0.3);
    border-color: #007acc;
}

.contact-icon svg {
    transition: transform 0.3s ease;
}

.contact-icon:hover svg {
    transform: scale(1.1);
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.project-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

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

.project-image {
    width: 100%;
    border-radius: 5px;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
}
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}
.gallery-item {
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    transform-origin: center;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item.video-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
    transition: all 0.3s ease;
}
.gallery-item.video-item:hover::after {
    background: rgba(0, 122, 204, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
.gallery-image, .gallery-video {
    max-height: 300px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}
.gallery-caption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}
.fullscreen-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button {
    display: none !important;
}
video::-moz-media-controls-volume-slider,
video::-moz-media-controls-mute-button {
    display: none !important;
}
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-fullscreen-button {
    display: block !important;
}
video {
    outline: none;
}
video::-webkit-media-controls {
    display: flex !important;
}
video::-webkit-media-controls-panel {
    display: flex !important;
}
.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

/* Resume Section */
.resume {
    padding: 4rem 2rem 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.resume h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.resume-buttons {
    display: flex;
    gap: 1rem;
}
.view-btn, .download-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.view-btn {
    background: linear-gradient(135deg, #007acc 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 122, 204, 0.3);
}
.download-btn {
    background: transparent;
    color: #007acc;
    border: 2px solid #007acc;
}
.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 122, 204, 0.4);
}
.download-btn:hover {
    background: #007acc;
    color: white;
    transform: translateY(-2px);
}

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

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

.about {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.project-grid {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.contact {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@media (max-width: 768px) {
    .resume-buttons {
        justify-content: flex-start;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    nav {
        height: auto;
        padding: 0 1rem;
        justify-content: center;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 1rem;
        padding: 0.4rem 1rem;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        transition: all 0.2s ease;
        outline: none;
    }
    
    nav a:active {
        background: rgba(0, 122, 204, 0.3);
        transform: scale(0.98);
    }
    
    nav a:focus {
        outline: none;
        box-shadow: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .mobile-break {
        display: block;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-card {
        margin: 1rem 0;
    }
    
    .project-detail {
        padding: 1rem 0.5rem;
    }
    
    .project-gallery {
        gap: 0.25rem;
        margin: 0.75rem 0;
    }
    
    .gallery-image, .gallery-video {
        max-height: 200px;
    }
}