/* 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', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Google-style Loading Screen */
.google-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.google-loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loading-container {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.loading-logo {
    margin-bottom: 40px;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.logo-letter {
    display: inline-block;
    animation: letterBounce 1.5s ease-in-out infinite;
    color: #ffffff;
}

.logo-letter:nth-child(1) { animation-delay: 0.1s; color: #ffffff; }
.logo-letter:nth-child(2) { animation-delay: 0.2s; color: #ffffff; }
.logo-letter:nth-child(3) { animation-delay: 0.3s; color: #ffffff; }
.logo-letter:nth-child(4) { animation-delay: 0.4s; color: #ffffff; }
.logo-letter:nth-child(5) { animation-delay: 0.5s; color: #ffffff; }
.logo-letter:nth-child(6) { animation-delay: 0.6s; color: #ffffff; }
.logo-letter:nth-child(7) { animation-delay: 0.7s; color: #ffffff; }

@keyframes letterBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Google Spinner */
.google-spinner {
    width: 50px;
    height: 50px;
    position: relative;
    margin: 0 auto 30px;
}

.spinner-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-color: transparent;
}

.spinner-blue { border-top-color: #4285f4; }
.spinner-red { border-right-color: #ea4335; }
.spinner-yellow { border-bottom-color: #fbbc05; }
.spinner-green { border-left-color: #34a853; }

.circle-clipper {
    display: inline-block;
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.circle-clipper .circle {
    width: 200%;
    height: 100%;
    border-width: 3px;
    border-style: solid;
    border-color: inherit;
    border-bottom-color: transparent !important;
    border-radius: 50%;
    animation: rotate 1.4s ease-in-out infinite;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
}

.circle-clipper.left .circle {
    left: 0;
    border-right-color: transparent !important;
    transform: rotate(129deg);
}

.circle-clipper.right .circle {
    left: -100%;
    border-left-color: transparent !important;
    transform: rotate(-129deg);
}

.gap-patch {
    position: absolute;
    top: 0;
    left: 45%;
    width: 10%;
    height: 100%;
    overflow: hidden;
    border-color: inherit;
}

.gap-patch .circle {
    width: 1000%;
    left: -450%;
    border-color: inherit;
    border-bottom-color: transparent !important;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 1s ease;
}

.container.visible {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 0.9;
}

.contact-info {
    font-size: 18px;
    margin-bottom: 25px;
    color: #888888;
}

.contact-info a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4a9eff;
}

.contact-info span {
    margin: 0 15px;
    color: #444444;
}

.social-links {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.social-links a {
    color: #888888;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a:hover {
    color: #ffffff;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #4a9eff;
    transition: width 0.3s ease;
}

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

/* Resume Corner Link */
.resume-corner {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    animation: fadeInCorner 1s ease 3.5s forwards;
}

.resume-link {
    color: #4a9eff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.resume-link:hover {
    color: #ffffff;
    transform: translateX(-5px);
}

.resume-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a9eff;
    transition: width 0.3s ease;
}

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

@keyframes fadeInCorner {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Section */
.intro {
    padding: 80px 0;
    max-width: 900px;
    font-size: 22px;
    line-height: 1.7;
    color: #cccccc;
}

.intro p {
    margin-bottom: 35px;
}

.intro strong {
    color: #ffffff;
    font-weight: 600;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    border-top: 1px solid #1a1a1a;
}

.experience h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 60px;
    color: #ffffff;
}

.experience-item {
    margin-bottom: 50px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.experience-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    min-width: 300px;
}

.duration {
    font-size: 0.95rem;
    color: #888888;
    font-weight: 500;
    white-space: nowrap;
}

.position {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.gpa {
    color: #888888;
    font-size: 1rem;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    border-top: 1px solid #1a1a1a;
}

.skills h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 60px;
    color: #ffffff;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.skill-item {
    font-size: 1.1rem;
    color: #cccccc;
    padding: 15px 0;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.3s ease;
}

.skill-item:hover {
    color: #ffffff;
    transform: translateX(10px);
    border-color: #4a9eff;
}

/* Projects Section */
.projects-section {
    border-top: 1px solid #1a1a1a;
    padding-top: 80px;
}

.project-item {
    margin-bottom: 120px;
}

.project-content {
    display: grid;
    gap: 40px;
}

.project-header {
    margin-bottom: 40px;
}

.project-header h3 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    display: inline;
    line-height: 1.2;
}

.project-header h4 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #888888;
    display: inline;
    line-height: 1.2;
}

/* Project Media - Fixed Image Issues */
.project-media {
    margin: 40px 0;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #1a1a1a;
}

.project-image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: scale(1.1);
}

.project-image.loaded {
    opacity: 1;
    transform: scale(1);
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(74, 158, 255, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: #ffffff;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-image-container:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content p {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Project Description */
.project-description {
    color: #cccccc;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 40px 0;
}

.project-description p {
    margin-bottom: 25px;
}

.project-description ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.project-description li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.project-description li::before {
    content: '•';
    color: #4a9eff;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.project-description strong {
    color: #ffffff;
    font-weight: 600;
}

/* Project Credits */
.project-credits {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
}

.project-credits p {
    font-size: 0.95rem;
    color: #888888;
    margin-bottom: 10px;
    line-height: 1.6;
}

.project-credits strong {
    color: #ffffff;
    font-weight: 600;
}

.project-credits a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-credits a:hover {
    color: #ffffff;
}

/* Footer */
.footer {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-top: 1px solid #333;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a9eff, transparent);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}



.footer-info {
    margin-bottom: 30px;
}

.footer-info p {
    color: #cccccc;
    font-size: 1rem;
    margin: 0;
}

.footer-info strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
}

.footer-tagline {
    margin-bottom: 30px;
}

.footer-tagline p {
    color: #34a853;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-contact a {
    color: #888888;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
}

.footer-contact a:hover {
    color: #ffffff;
    background: rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-image-container {
        height: 400px;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .intro {
        padding: 60px 0;
        font-size: 20px;
    }
    
    .experience, .skills {
        padding: 60px 0;
    }
    
    .projects-section {
        padding-top: 60px;
    }
    
    .project-item {
        margin-bottom: 80px;
    }
    
    .experience h2, .skills h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .project-header h3, .project-header h4 {
        font-size: 2rem;
        display: block;
        margin-bottom: 10px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .experience-header h3 {
        min-width: auto;
        font-size: 1.2rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 25px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 25px;
    }
    
    .project-image-container {
        height: 300px;
    }
    
    .skills-list {
        gap: 20px;
    }
    
    .skill-item {
        font-size: 1rem;
    }
    
    .loading-logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-info {
        font-size: 16px;
    }
    
    .contact-info span {
        display: block;
        margin: 8px 0;
    }
    
    .intro {
        font-size: 18px;
    }
    
    .project-header h3, .project-header h4 {
        font-size: 1.8rem;
    }
    
    .project-image-container {
        height: 250px;
    }
    
    .overlay-content p {
        font-size: 1.2rem;
    }
    
    .loading-logo {
        font-size: 2rem;
    }
    
    .resume-corner {
        top: 20px;
        right: 20px;
    }
    
    .resume-link {
        font-size: 1rem;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .intro, .experience, .skills, .project-item {
    animation: fadeInUp 1s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a9eff;
}

/* Intersection Observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}