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

:root {
    --primary-bg: #9DD9F3;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --highlight-yellow: #fff176;
    --highlight-pink: #ff9999;
    --highlight-blue: #b3e5fc;
    --highlight-green: #c8e6c9;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0077b5, #00a0dc);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #0077b5;
    transform: translateY(-2px);
}

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

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

.social-icon {
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #0077b5;
    transform: translateY(-3px) scale(1.1);
}

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

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #87CEEB 100%);
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.hero-image {
    flex: 0 0 300px;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px var(--card-shadow);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.hero-greeting {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: wave 1s ease-in-out 2;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(14deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    40% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

.hero-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-title {
    font-size: 1.3rem;
    color: var(--text-gray);
    line-height: 1.8;
    min-height: 4.8rem;
    display: block;
}

#typing-text::after {
    content: '|';
    color: #0077b5;
    font-weight: bold;
    animation: blink 0.7s infinite;
}

#typing-text.typing-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* About Section */
.about {
    background: var(--white);
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.highlight {
    background: linear-gradient(transparent 60%, var(--highlight-yellow) 60%);
    padding: 0 4px;
    font-weight: 600;
}

/* Experience Section */
.experience {
    background: var(--primary-bg);
    padding: 6rem 0;
}

.timeline {
    max-width: 800px;
    margin: 3rem auto;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    bottom: -50px;
    width: 2px;
    background: #ddd;
}

.timeline-icon {
    flex-shrink: 0;
}

.company-logo {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Keep text-based logo styling for any remaining text logos */
.timeline-icon > div.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white);
    font-size: 16px;
}

.kryplin-logo {
    background: #FF6B35;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--card-shadow);
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.company-info {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.company-name {
    font-weight: 600;
}

.separator {
    margin: 0 0.5rem;
}

.date-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.job-description {
    margin-top: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.nested-role {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: var(--primary-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-description-preview p {
    margin-top: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.job-description-full {
    margin-top: 1rem;
}

.achievement-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.achievement-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00A94F;
    font-weight: bold;
    font-size: 1.2rem;
}

.view-more-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 2px solid var(--text-dark);
    border-radius: 20px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

.view-more-btn.expanded {
    background: var(--text-dark);
    color: var(--white);
}

/* Portfolio Section */
.portfolio {
    background: var(--white);
    padding: 6rem 0;
    overflow: hidden;
}

.portfolio-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.portfolio-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 3rem;
}

.portfolio-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
    will-change: transform;
}

.portfolio-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

/* Mobile: Enable manual scrolling */
@media (max-width: 768px) {
    .portfolio-carousel {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .portfolio-carousel::-webkit-scrollbar {
        display: none;
    }

    .portfolio-track {
        animation: none;
        padding: 0 1rem;
    }

    .portfolio-track:hover {
        animation-play-state: running;
    }
}

.portfolio-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 350px;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-image.netflix {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

.portfolio-image.contractor {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.portfolio-image.upi {
    background: linear-gradient(135deg, #097939 0%, #05521f 100%);
}

.portfolio-image.instagram {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
}

.netflix-logo,
.upi-logo,
.instagram-logo {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -2px;
}

.upi-logo {
    font-size: 5rem;
}

.instagram-logo {
    font-size: 3rem;
    font-family: 'Brush Script MT', cursive;
}

.contractor-illustration {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect x="50" y="80" width="100" height="80" fill="%23fff" opacity="0.3"/><path d="M 60 100 L 100 60 L 140 100" stroke="%23fff" stroke-width="4" fill="none"/></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-content {
    padding: 1.5rem;
}

.bootcamp-badge {
    display: inline-block;
    background: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 3.6rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.view-more {
    text-align: center;
    margin-top: 2rem;
}

/* Services Section */
.services {
    background: var(--primary-bg);
    padding: 6rem 0;
}

.services-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--text-dark);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: #0077b5;
    transform: scale(1.05);
}

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

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hamburger Menu Mobile Styles */
    .hamburger {
        display: flex;
        order: 1;
    }

    .nav-content {
        position: relative;
    }

    .nav-links-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .nav-link {
        margin: 0;
        font-size: 1.2rem;
        padding: 1rem;
    }

    .social-links {
        order: 2;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-image {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }

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

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

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