* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    color: #333;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 35px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav {
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 8px;
}

nav a {
    text-decoration: none;
    color: #666;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

nav a:hover {
    animation: gentleJump 0.4s ease;
}

@keyframes gentleJump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.5px); }
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #222;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.page-title:hover {
    color: #0066cc;
    transform: scale(1.03);
    text-shadow: 2px 2px 8px rgba(0, 102, 204, 0.5);
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #222;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 8px;
    margin-top: 30px;
    text-transform: capitalize;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin: 20px 0 10px;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #444;
}

a {
    color: #0066cc;
    text-decoration: underline;
}

.highlight {
    background-color: #f0f7ff;
    background-color: rgba(0, 102, 204, 0.1);
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #0066cc;
}

section {
    background: #ffffff;
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    border: 1px solid rgba(0, 102, 204, 0.05);
    margin: 30px 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -15px rgba(0, 102, 204, 0.08);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 102, 204, 0.15);
}

#intro {
    background: #ffffff;
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    border: 1px solid rgba(0, 102, 204, 0.05);
    margin: 30px 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -15px rgba(0, 102, 204, 0.08);
}

#intro:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 102, 204, 0.15);
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 400;
    margin: 0 0 10px;
    color: #222;
    border-bottom: none;
}

.hero-text .title {
    font-size: 1.2rem;
    color: #0066cc;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.interest-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px -10px rgba(0, 102, 204, 0.05);
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 102, 204, 0.15);
}

.interest-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: #333;
    margin-bottom: 20px;
}

.interest-card ul {
    list-style: none;
    padding: 0;
}

.interest-card ol {
    list-style-type: decimal;
    list-style-position: inside;
    padding-left: 20px;
}

.interest-card li {
    margin-bottom: 12px;
    color: #444;
}

.interest-card dt {
    font-weight: 600;
    color: #444;
    margin-top: 15px;
}

.interest-card dd {
    margin-left: 0;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

figure {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    background: #fafafa;
}

figure:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.15);
}

figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

figure:hover img {
    transform: scale(1.05);
}

figcaption {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
    text-align: center;
    background: #fafafa;
}

.project-links {
    margin-top: 20px;
}

.project-links a {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.project-links a:hover {
    background-color: white;
    color: #0066cc;
    border-color: #0066cc;
    transform: translateY(-2px);
}

ul, ol {
    margin: 10px 0;
    padding-left: 20px;
}

ul {
    list-style-type: disc;
    list-style-position: inside;
}

ol {
    list-style-type: decimal;
    list-style-position: inside;
}

li {
    margin-bottom: 8px;
    color: #444;
}

dl {
    margin: 15px 0;
}

dt {
    font-weight: 600;
    color: #444;
    margin-top: 18px;
}

dd {
    margin-left: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 2px solid #f0f0f0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 500;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

button[type="submit"], button[type="reset"] {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

button[type="submit"] {
    background: #0066cc;
    color: white;
}

button[type="submit"]:hover {
    background: white;
    color: #0066cc;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    border: 1px solid #0066cc;
}

button[type="reset"] {
    background: #f0f0f0;
    color: #555;
}

button[type="reset"]:hover {
    background: #ddd;
    transform: translateY(-2px);
}

blockquote {
    margin: 0;
    padding: 20px;
    background: #f8f8f8;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    font-style: italic;
    color: #555;
    transition: all 0.3s;
}

blockquote:hover {
    background: #f0f0f0;
    border-left-width: 6px;
}

footer {
    background-color: #5c8fba;
    color: #ffffff;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
    border-top: none;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #d4e6f1;
}

main {
    width: 90vw;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        margin-bottom: 15px;
    }
    
    nav ul li {
        margin-right: 20px;
    }
    
    nav ul li:last-child {
        margin-right: 0;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    section, #intro {
        padding: 25px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}