* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 50%, #ffffff 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 3px solid #0277bd;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #0277bd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: "🐧";
    font-size: 36px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #0277bd;
}

.nav-resume-btn {
    background: linear-gradient(135deg, #0277bd 0%, #01579b 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-resume-btn:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 119, 189, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0277bd;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 95px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
}

.penguin-hero {
    font-size: 120px;
    margin-bottom: 20px;
    animation: waddle 2s ease-in-out infinite;
}

.penguin-hero img {
    width: 20%;
    height: 20%;
    object-fit: cover;
    clip-path: inset(5% 0 0 0); /* crop out top 5% of the image */
}



@keyframes waddle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    color: #0277bd;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: 20px !important;
    font-weight: 600;
    color: #0277bd !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #0277bd 0%, #01579b 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 119, 189, 0.3);
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #b3e5fc;
    font-size: 20px;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

section {
    padding: 80px 0;
    background: white;
    position: relative;
    z-index: 2;
}

section:nth-child(even) {
    background: #f0f9ff;
}

h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: #0277bd;
    position: relative;
}

h2::after {
    content: "🐧";
    display: block;
    font-size: 32px;
    margin-top: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #b3e5fc;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(2, 119, 189, 0.2);
    border-color: #0277bd;
}

/*cool descendant to change hover color of border bottom too*/
.project-card:hover .project-img {
    border-bottom-color: #0277bd;
}

.project-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4fc3f7 0%, #0277bd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    border-bottom: 3px solid #b3e5fc;
}


.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: #0277bd;
}

.project-content p {
    color: #546e7a;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #e1f5fe;
    color: #01579b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #b3e5fc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 2px solid #b3e5fc;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #0277bd;
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.skill-card h3 {
    color: #0277bd;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 3px solid #b3e5fc;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(2, 119, 189, 0.2);
    border-color: #0277bd;
}

.contact-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: #0277bd;
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-card p {
    color: #546e7a;
    font-size: 16px;
    word-break: break-word;
}

footer {
    background: linear-gradient(135deg, #01579b 0%, #0277bd 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer::before {
    content: "🐧🐧🐧";
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

.ice-shelf {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, transparent 0%, rgba(179, 229, 252, 0.3) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.penguin-avatar {
    font-size: 200px;
    animation: float 3s ease-in-out infinite;
}

.penguin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.about-text p {
    margin-bottom: 20px;
    color: #546e7a;
    font-size: 17px;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.experience-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #b3e5fc;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(2, 119, 189, 0.2);
    border-color: #0277bd;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e1f5fe;
}

.experience-header h3 {
    color: #0277bd;
    font-size: 20px;
}

.experience-org {
    color: #546e7a;
    font-weight: 600;
    margin-top: 4px;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 4px;
}

.experience-date {
    background: #e1f5fe;
    color: #01579b;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.experience-location {
    color: #90a4ae;
    font-size: 13px;
}

.experience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience-list li {
    color: #546e7a;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.experience-list li::before {
    content: "❄";
    position: absolute;
    left: 0;
    color: #0277bd;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.course-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #b3e5fc;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(2, 119, 189, 0.2);
    border-color: #0277bd;
}

.course-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.course-card h3 {
    color: #0277bd;
    margin-bottom: 12px;
    font-size: 20px;
}

.course-card p {
    color: #546e7a;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #e1f5fe;
}

.course-year {
    background: #e1f5fe;
    color: #01579b;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }

    .penguin-hero {
        font-size: 80px;
    }

    nav ul {
        gap: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .penguin-avatar {
        font-size: 120px;
    }

    .experience-header {
        flex-direction: column;
    }

    .experience-meta {
        align-items: flex-start;
        text-align: left;
    }

    .nav-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom: 3px solid #0277bd;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li {
        text-align: center;
        border-top: 1px solid #e1f5fe;
    }

    nav ul li a {
        display: block;
        padding: 16px 0;
    }

    nav ul li .nav-resume-btn {
        display: inline-block;
        padding: 10px 24px;
        margin: 10px 0;
    }
}