/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--pastel-blue-light) 0%, var(--ivory) 50%, var(--light-blue-light) 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Color Palette Variables */
:root {
    --pastel-blue: #7DD3FF;
    --pastel-blue-light: #E0F5FF;
    --pastel-blue-dark: #6BC7F0;
    --soft-blue: #8BD3E6;
    --soft-blue-light: #D4F0FF;
    --ivory: #F0F9FF;
    --light-blue: #9DD9FF;
    --light-blue-light: #E6F7FF;
    --accent-blue: #5BB8E8;
    --accent-blue-light: #C7EDFF;
    --text-primary: #1e2a3a;
    --text-secondary: #2c3e50;
    --text-light: #34495e;
    --white: #fefefe;
    --soft-white: #fafbfc;
    --shadow-light: rgba(125, 211, 255, 0.15);
    --shadow-medium: rgba(125, 211, 255, 0.25);
    --shadow-dark: rgba(125, 211, 255, 0.35);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pastel-blue-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo .logo-text {
    font-family: "ohno-softie-variable", sans-serif;
    font-style: normal;
    font-weight: 900;
    font-variation-settings: "wght" 1000;
    font-size: 22px;
    color: var(--pastel-blue-dark);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--pastel-blue) 50%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    filter: contrast(1.1);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--pastel-blue-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--pastel-blue) 50%, var(--light-blue) 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--pastel-blue-dark);
    font-weight: 600;
}

/* Modern Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Force show on mobile screens - Lower breakpoint */
@media screen and (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(254, 254, 254, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.mobile-nav.active {
    display: flex !important;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Ensure mobile nav is available on mobile screens - Lower breakpoint */
@media screen and (max-width: 900px) {
    .mobile-nav {
        display: none;
    }
    
    .mobile-nav.active {
        display: flex !important;
    }
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav li:nth-child(6) { transition-delay: 0.6s; }
.mobile-nav li:nth-child(7) { transition-delay: 0.7s; }
.mobile-nav li:nth-child(8) { transition-delay: 0.8s; }

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--pastel-blue-dark);
    background: linear-gradient(135deg, var(--pastel-blue-light), var(--ivory));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-light);
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--pastel-blue), var(--light-blue));
    transition: width 0.3s ease;
}

.mobile-nav a:hover::after,
.mobile-nav a.active::after {
    width: 60%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--light-blue) 50%, var(--soft-blue) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: "Ohno Softie Variable", sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.highlight {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--pastel-blue) 50%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Name Bubbles Animation */
.name-bubbles {
    display: inline-block;
    font-family: "ohno-softie-variable", sans-serif;
    font-style: normal;
    font-variation-settings: "wght" 300;
    font-size: 3.5rem;
    text-transform: uppercase;
    color: var(--white);
    -webkit-text-stroke: 4px #000000;
    text-stroke: 4px #000000;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    letter-spacing: 0.1em;
    line-height: 1.1;
    margin: 0.5rem 0;
}

.name-bubbles span {
    display: inline-block;
    opacity: 0;
    animation: bubblePop 0.6s ease-out forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

@keyframes bubblePop {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-dark);
    background: var(--text-primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--text-primary);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--soft-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px var(--shadow-light);
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pastel-blue), var(--light-blue));
    opacity: 0.3;
    z-index: -1;
}

.image-placeholder i {
    font-size: 8rem;
    color: var(--pastel-blue-dark);
}

/* Profile Photo Styles */
.profile-photo {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-light);
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--pastel-blue), var(--light-blue));
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.hero-portrait, .about-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.hero-portrait:hover, .about-portrait:hover {
    transform: scale(1.05);
}


/* Fallback for missing images */
.profile-photo img:not([src]) {
    display: none;
}

.profile-photo:has(img:not([src]))::after {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--pastel-blue-dark);
}

/* Ensure proper image loading */
.hero-portrait, .about-portrait {
    background-color: var(--soft-blue);
    border: 3px solid var(--pastel-blue-light);
}

/* Loading state */
.hero-portrait[src=""], .about-portrait[src=""] {
    background: linear-gradient(135deg, var(--pastel-blue-light), var(--ivory));
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(248, 252, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pastel-blue-dark);
    font-size: 1.2rem;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--pastel-blue) 50%, var(--light-blue) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 400;
}

/* About Section */
.about {
    background: var(--ivory);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.skills h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-category h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--light-blue) 50%, var(--soft-blue) 100%);
    color: var(--pastel-blue-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--pastel-blue);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--pastel-blue);
    color: white;
    transform: translateY(-2px);
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--pastel-blue-light), var(--ivory));
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pastel-blue-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Projects Section */
.projects {
    background: var(--ivory);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    align-items: start;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--soft-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 800px;
    width: 100%;
    min-width: 380px;
    max-width: 400px;
    justify-self: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.project-image {
    height: 200px;
    background: var(--soft-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(248, 252, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pastel-blue-dark);
    font-size: 2rem;
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    min-height: 0;
}

.project-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding: 0 1rem;
}

.project-description {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
    min-height: 140px;
    max-height: 140px;
    display: flex;
    align-items: flex-start;
    padding: 0 1rem;
    overflow: hidden;
}

.project-stats {
    margin-top: auto;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem 0.5rem 1rem;
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    max-width: 100%;
    padding: 0 1rem;
    margin-top: 2rem;
}

.tech-tag {
    background: var(--white);
    color: var(--pastel-blue);
    border: 1px solid var(--pastel-blue-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tech-tag:hover {
    background: var(--pastel-blue-light);
    color: var(--pastel-blue-dark);
    transform: translateY(-2px);
}

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

.project-link {
    color: var(--pastel-blue-dark);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--soft-blue);
    transform: translateX(5px);
}

/* Experience Section */
.experience {
    background: var(--ivory);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--pastel-blue), var(--soft-blue));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--pastel-blue);
    border: 4px solid var(--ivory);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--pastel-blue-light);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: var(--soft-blue-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: all 0.3s ease;
    text-align: center;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.timeline-date {
    color: var(--pastel-blue-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-company {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--ivory);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--pastel-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.contact-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-primary);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--pastel-blue-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--ivory);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pastel-blue);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--ivory);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pastel-blue-dark);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.social-link:hover {
    background: var(--pastel-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* Mobile Navigation Styles - Lower breakpoint */
@media screen and (max-width: 900px) {
    /* Hide desktop menu on mobile */
    .nav-menu {
        display: none !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 10px !important;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Horizontal Skills Layout */
.skills-horizontal-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.skills-horizontal-container .skills-section {
    flex: 1;
    min-width: 280px;
}

/* Horizontal Tags Layout */
.horizontal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.horizontal-tags .interest-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    margin: 0.15rem;
    flex: 0 1 auto;
    min-width: auto;
    max-width: none;
    text-align: center;
    border-radius: 20px;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .skills-horizontal-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .skills-horizontal-container .skills-section {
        min-width: auto;
    }
}
