:root {
    /* Light Theme - Oceanic */
    --primary-light: #1a73e8;
    --secondary-light: #34a853;
    --accent-light: #fbbc05;
    --dark-light: #0f3460;
    --light-light: #e8f4f8;
    --text-light: #333;
    --bg-light: #e8f4f8;
    --card-light: #ffffff;
    
    /* Dark Theme - Deep Ocean */
    --primary-dark: #4dabf7;
    --secondary-dark: #69db7c;
    --accent-dark: #ffd43b;
    --dark-dark: #1a1a2e;
    --light-dark: #16213e;
    --text-dark: #f8f9fa;
    --bg-dark: #0f3460;
    --card-dark: #1a1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
}

body.light-mode {
    --primary: var(--primary-light);
    --secondary: var(--secondary-light);
    --accent: var(--accent-light);
    --dark: var(--dark-light);
    --light: var(--light-light);
    --text: var(--text-light);
    --bg: var(--bg-light);
    --card: var(--card-light);
}

body.dark-mode {
    --primary: var(--primary-dark);
    --secondary: var(--secondary-dark);
    --accent: var(--accent-dark);
    --dark: var(--dark-dark);
    --light: var(--light-dark);
    --text: var(--text-dark);
    --bg: var(--bg-dark);
    --card: var(--card-dark);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: none;
    color: var(--text);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    right: 20px;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 10px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-item {
    margin: 10px 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item i {
    font-size: 1.2rem;
    color: var(--text);
}

.nav-item.active {
    background: var(--primary);
}

.nav-item.active i {
    color: white;
}

.nav-item:hover:not(.active) {
    background: rgba(26, 115, 232, 0.2);
}

.nav-tooltip {
    position: absolute;
    right: 60px;
    background: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.nav-item:hover .nav-tooltip {
    opacity: 1;
    right: 70px;
}

/* Sections */
section {
    min-height: 100vh;
    width: 100%;
    padding: 100px 10%;
    position: relative;
    overflow: hidden;
}

/* Home Section */
#home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.home-content {
    max-width: 600px;
    z-index: 10;
}

.home-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    word-wrap: break-word;
}

.home-content h1 span {
    color: var(--primary);
}

.home-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text);
}

.home-content p {
    margin-bottom: 40px;
    color: var(--text);
    word-wrap: break-word;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.btn:hover {
    background: var(--dark);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.home-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid var(--card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ocean Life Decorations */
.ocean-life {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* .fish {
    position: absolute;
    width: 50px;
    height: 30px;
    background: var(--accent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: swim 15s linear infinite;
    opacity: 0.8;
}

.fish::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: var(--accent);
    border-radius: 50%;
}

.fish::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 5px;
    width: 10px;
    height: 5px;
    background: var(--dark);
    border-radius: 50%;
} */

.bubble {
    position: absolute;
    background: #1a73e8;
    border-radius: 50%;
    animation: float linear infinite;
}

.seaweed {
    position: absolute;
    width: 10px;
    background: var(--secondary);
    border-radius: 5px 5px 0 0;
    bottom: 0;
    z-index: 1;
}

.seaweed::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    top: -10px;
    left: -5px;
}

@keyframes swim {
    0% {
        transform: translateX(-100px) rotateY(0deg);
    }
    50% {
        transform: translateX(calc(100vw + 100px)) rotateY(0deg);
    }
    51% {
        transform: translateX(calc(100vw + 100px)) rotateY(180deg);
    }
    100% {
        transform: translateX(-100px) rotateY(180deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

@keyframes sway {
    0% {
        transform: skewX(5deg);
    }
    100% {
        transform: skewX(-5deg);
    }
}

/* Skills Section */
#skills {
    background: var(--bg);
    position: relative;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--card);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    word-wrap: break-word;
}

.skill-category h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    width: 80px;
}

.skill-item.show {
    opacity: 1;
    transform: translateY(0);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 15px;
    margin-bottom: 10px;
}

.skill-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.skill-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.skill-item span {
    font-size: 0.8rem;
    text-align: center;
    color: var(--text);
    word-wrap: break-word;
    max-width: 100%;
}

/* Projects Section */
#projects {
    position: relative;
    background: var(--bg);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    z-index: 2;
    position: relative;
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    word-wrap: break-word;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.2rem;
}

.project-content .date {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.project-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-item {
    background: var(--light);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.project-links a i {
    margin-right: 5px;
}

.project-links a:hover {
    color: var(--text);
}

/* Achievements & Experience Section */
#achievements {
    background: var(--bg);
    position: relative;
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--card);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    border-left: 4px solid var(--primary);
    z-index: 2;
    position: relative;
    word-wrap: break-word;
}

.achievement-card.show {
    opacity: 1;
    transform: translateY(0);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.achievement-card h3 {
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.achievement-card h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.achievement-card .date {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.achievement-card p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text);
}

.achievement-card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.achievement-card ul li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text);
}

/* Education Section */
#education {
    position: relative;
    background: var(--bg);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

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

.timeline-content {
    padding: 20px;
    background: var(--card);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    word-wrap: break-word;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--card);
    top: 30px;
    transform: rotate(45deg);
    box-shadow: 5px -5px 10px rgba(0, 0, 0, 0.05);
}

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

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

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.1rem;
}

.timeline-content .date {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    top: 30px;
    z-index: 2;
}

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

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

/* Contact Section */
#contact {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.contact-container {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--card);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 0;
    transform: translateY(50px);
}

.contact-item.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1rem;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    word-wrap: break-word;
    max-width: 100%;
}

.contact-item a:hover {
    color: var(--primary);
}

.section-content {
    position: relative;
    z-index: 2;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content h3 {
        font-size: 1.2rem;
    }

    .home-image {
        width: 300px;
        height: 300px;
    }

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

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

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

    .achievements-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 100px 5%;
    }

    .home-content {
        text-align: center;
        margin-bottom: 50px;
    }

    .home-image {
        margin: 0 auto;
    }

    .btn-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .social-icons {
        justify-content: center;
    }

    .nav-container {
        right: 10px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
}

@media (max-width: 576px) {
    .home-content h1 {
        font-size: 2rem;
    }

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

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

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

    .achievements-container {
        grid-template-columns: 1fr;
    }

    .skill-item {
        width: 100px;
    }
}