* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace;
}

html {
    scroll-padding-top: 70px; /* Matches navbar height + padding */
}

body {
    line-height: 1.6;
    color: #2f2f2f;
    background: url('https://www.transparenttextures.com/patterns/paper-fibers.png') repeat, #f9e9d8;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1d5c63;
    padding: 1rem 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    color: #f9e9d8;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f9c66f;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 30px;
    height: 3px;
    background: #f9e9d8;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Header */
header {
    position: relative;
    text-align: center;
    padding: 5rem 1rem 7rem;
    background: linear-gradient(135deg, #417d7a 0%, #1d5c63 100%);
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.wave-bg path {
    fill: rgba(255, 255, 255, 0.1);
    animation: wave 10s infinite alternate;
}

@keyframes wave {
    0% { d: path("M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,122.7C960,128,1056,160,1152,170.7C1248,181,1344,171,1392,165.3L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"); }
    100% { d: path("M0,192L48,160C96,128,192,128,288,138.7C384,149,480,171,576,176C672,181,768,171,864,149.3C960,128,1056,96,1152,106.7C1248,117,1344,171,1392,186.7L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"); }
}

.header-content {
    position: relative;
    z-index: 1;
}

#typewriter {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    color: #f9c66f;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: 1.4rem;
    color: #f0f0f0;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.btn {
    background: #d9534f;
    color: white;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    transform: skew(-10deg);
    transition: all 0.3s ease;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: #f9c66f;
    color: #1d5c63;
    transform: skew(-10deg) scale(1.1);
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.3);
}

.card {
    background: rgba(255, 255, 255, 0.95);
    margin: 2rem auto 2rem;
    padding: 2rem;
    max-width: 700px;
    border-radius: 20px 0 20px 20px;
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    border: 2px solid #f9c66f;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
}

/* Asymmetrical layout for larger screens */
@media (min-width: 769px) {
    .card:nth-child(odd) {
        transform: translateX(-10%);
    }
    .card:nth-child(even) {
        transform: translateX(10%);
    }
}

h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.8rem;
    color: #1d5c63;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #417d7a;
    margin-bottom: 0.5rem;
}

#about p {
    font-size: 1.1rem;
    color: #4a4a4a;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.skill {
    background: #417d7a;
    color: #f9e9d8;
    padding: 0.7rem 1.5rem;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    transform: rotate(-2deg);
    transition: transform 0.3s, background 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.skill:hover {
    background: #1d5c63;
    transform: rotate(0deg) scale(1.2);
}

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

.project-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    font-size: 1.6rem;
    color: #417d7a;
    margin-bottom: 0.8rem;
}

.project-card p {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #d9534f;
    text-decoration: none;
    font-size: 1rem;
}

.project-link:hover {
    color: #f9c66f;
    text-decoration: underline;
}

/* Experience Section */
.experience {
    margin-bottom: 1.5rem;
}

.experience p {
    font-size: 1rem;
    color: #4a4a4a;
}

.experience p em {
    font-size: 0.9rem;
    color: #6b6b6b;
}

/* Fun Section */
#fun p {
    margin-bottom: 1.5rem;
    color: #4a4a4a;
    text-align: center;
}

.spin-circle {
    width: 200px;
    height: 200px;
    margin: 1.5rem auto;
    background: linear-gradient(45deg, #f9c66f, #d9534f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 1s ease-out;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.spin-circle.spin {
    transform: rotate(360deg);
}

#fun-fact {
    font-size: 1.1rem;
    color: #1d5c63;
    padding: 0 1rem;
}

/* Contact Section */
#contact a {
    color: #d9534f;
    text-decoration: none;
    font-weight: 500;
}

#contact a:hover {
    color: #f9c66f;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1d5c63;
        padding: 1rem 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.3rem;
    }
    header {
        padding: 3rem 1rem 4rem;
    }
    #typewriter {
        font-size: 3rem;
    }
    .header-content p {
        font-size: 1.2rem;
    }
    .card {
        max-width: 90%;
        margin: 1rem auto;
        transform: none;
    }
    h2 {
        font-size: 2.2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 0.6rem 1.4rem;
        font-size: 1.1rem;
    }
    .spin-circle {
        width: 150px;
        height: 150px;
    }
    .projects-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 0.5rem 3rem;
    }
    #typewriter {
        margin-top: 1rem;
        font-size: 2rem;
    }
    .header-content p {
        font-size: 1rem;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    .card {
        padding: 1.5rem;
    }
    .skills-container {
        gap: 0.8rem;
    }
    .skill {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .project-card p, .experience p {
        font-size: 0.9rem;
    }
    .spin-circle {
        width: 120px;
        height: 120px;
    }
    #fun-fact {
        font-size: 0.6rem;
    }
}