* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-gradient-start: #e8f4f8;
    --bg-gradient-end: #f5f5f5;
    --header-gradient-start: #87ceeb;
    --header-gradient-end: #b0d4e3;
    --text-primary: #333;
    --text-secondary: #555;
    --text-tertiary: #666;
    --card-bg: white;
    --section-bg: white;
    --accent-color: #4a90a4;
    --accent-light: #87ceeb;
    --skill-bg-start: #e8f4f8;
    --skill-bg-end: #f0f8fc;
    --border-color: #87ceeb;
    --shadow-color: rgba(0,0,0,0.1);
}

body.dark-mode {
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    --header-gradient-start: #0f3460;
    --header-gradient-end: #16213e;
    --text-primary: #e8e8e8;
    --text-secondary: #c4c4c4;
    --text-tertiary: #a8a8a8;
    --card-bg: #1e2a3a;
    --section-bg: #1e2a3a;
    --accent-color: #5dade2;
    --accent-light: #5dade2;
    --skill-bg-start: #253447;
    --skill-bg-end: #2a3f5f;
    --border-color: #5dade2;
    --shadow-color: rgba(0,0,0,0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    transition: all 0.3s ease;
}

/* Header/Navigation */
header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

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

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: rgba(255, 255, 255, 0.5);
}

input:checked + .slider:before {
    transform: translateX(24px);
    content: "🌙";
}

.slider:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: #4a90a4;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--accent-light);
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-color);
    background: var(--accent-light);
    color: white;
}

/* Section Styles */
section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--section-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

section h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent-color));
    border-radius: 2px;
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-more {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.about-more.expanded {
    max-height: 2000px;
    transition: max-height 0.7s ease-in;
}

.read-more-btn {
    background: linear-gradient(135deg, #87ceeb 0%, #4a90a4 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(135, 206, 235, 0.4);
    background: linear-gradient(135deg, #4a90a4 0%, #87ceeb 100%);
}

.read-more-btn:active {
    transform: translateY(-1px);
}

/* Skills Section */
.skills-section {
    margin-bottom: 2.5rem;
}

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

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fc 100%);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    color: #4a90a4;
    font-weight: 500;
    border: 2px solid #87ceeb;
    transition: all 0.3s;
    cursor: default;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #87ceeb 0%, #b0d4e3 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.3);
}

/* Hobbies Section */
.hobbies-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hobby-tag {
    background: linear-gradient(135deg, #87ceeb 0%, #b0d4e3 100%);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
    cursor: default;
}

.hobby-tag:hover {
    background: linear-gradient(135deg, #4a90a4 0%, #87ceeb 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

.hobbies-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.3);
    border-color: #87ceeb;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8f4f8 0%, #b0d4e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wave-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

.project-placeholder {
    font-size: 4rem;
    color: #4a90a4;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fc 100%);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: #4a90a4;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #87ceeb;
}

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

.project-btn {
    background: linear-gradient(135deg, #87ceeb 0%, #4a90a4 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
    background: linear-gradient(135deg, #4a90a4 0%, #87ceeb 100%);
}

.project-btn i {
    font-size: 0.9rem;
}

/* Image Carousel Styles */
.project-image-carousel {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    display: none;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.carousel-slide.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(135, 206, 235, 0.8);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: rgba(74, 144, 164, 0.9);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #87ceeb;
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fc 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(135, 206, 235, 0.3);
}

.contact-card i {
    font-size: 2.5rem;
    color: #4a90a4;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: #4a90a4;
    text-decoration: none;
    word-break: break-all;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

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

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-social a:hover {
    background: white;
    color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #87ceeb 0%, #b0d4e3 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .theme-switch {
        width: 45px;
        height: 24px;
    }

    .slider:before {
        height: 18px;
        width: 18px;
        font-size: 10px;
    }

    input:checked + .slider:before {
        transform: translateX(21px);
    }

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

    .hero .subtitle {
        font-size: 1.1rem;
    }

    section {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-tags {
        gap: 0.8rem;
    }

    .skill-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .hobbies-tags {
        gap: 0.8rem;
    }

    .hobby-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .hobbies-description {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-image-carousel {
        height: 220px;
    }

    .carousel-btn {
        font-size: 1.5rem;
        padding: 0.3rem 0.7rem;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .about-content {
        font-size: 1rem;
    }

    .skills-tags, .hobbies-tags {
        gap: 0.6rem;
    }

    .skill-tag, .hobby-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
