/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

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

:root {
    --accent-color: #5271ff;
    --black: #000000;
    --white: #ffffff;
    --light-grey: #f5f5f5;
    --medium-grey: #999999;
    --dark-grey: #333333;
    --border-grey: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Mouse Trail Effect */
.trail {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    z-index: 9998;
    font-size: 20px;
    color: var(--accent-color);
    animation: trailFade 0.6s ease-out forwards;
}

.trail::before {
    content: '✦';
}

@keyframes trailFade {
    0% {
        opacity: 0.9;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-grey);
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8;
}

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

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem 2rem;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    text-align: left;
}

.hero-content .greeting {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero-content .name-highlight {
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 5.5rem;
    position: relative;
    display: inline-block;
}

.star {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin: 0 0.8rem;
    display: inline-block;
    animation: twinkle 2s ease-in-out infinite;
}

.star:nth-child(2) {
    animation-delay: 0.3s;
}

.star:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-content h2 {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 1600px;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--medium-grey);
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--black);
    padding-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.arrow {
    font-size: 1.3rem;
}

/* Portfolio Page */
.portfolio-page {
    padding: 8rem 2rem 4rem 2rem;
    max-width: 100%;
    margin: 0 auto;
}

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

.portfolio-header h1 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.portfolio-subtitle {
    font-size: 1.2rem;
    color: var(--medium-grey);
    margin-bottom: 2rem;
}

.portfolio-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--dark-grey);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Tabs */
.tab-container {
    margin-top: 4rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 2rem;
    background-color: var(--white);
    border: 1px solid var(--border-grey);
    color: var(--black);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.tab-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-button.active {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-card {
    background-color: var(--white);
    border: 1px solid var(--border-grey);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.card-placeholder {
    background-color: var(--light-grey);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-grey);
    font-size: 1.1rem;
}

.card-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.portfolio-card h3 {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.portfolio-link {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--accent-color);
}

.portfolio-card p {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--medium-grey);
    font-size: 0.95rem;
}

/* Content Page */
.content-page {
    padding: 8rem 2rem 4rem 2rem;
    max-width: 100%;
    margin: 0 auto;
}

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

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--medium-grey);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 3rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid var(--border-grey);
    transition: all 0.3s ease;
}

.project-item:hover {
    border-color: var(--accent-color);
}

.project-image {
    width: 100%;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.project-info {
    display: flex;
    flex-direction: column;
}

.image-placeholder {
    background-color: var(--light-grey);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-grey);
    font-size: 1.1rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.project-features {
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.project-features strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.project-features ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.project-features li {
    margin-bottom: 0.5rem;
}

.project-features ul ul {
    margin-top: 0.3rem;
    margin-left: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    gap: 1rem;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-grey);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.github-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: var(--light-grey);
}

.github-link svg {
    flex-shrink: 0;
}

.tag {
    padding: 0.4rem 1rem;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    font-size: 0.85rem;
    border: 1px solid var(--border-grey);
}

/* About Section */
.about-section {
    max-width: 1400px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

.about-text {
    margin-bottom: 5rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--dark-grey);
    line-height: 1.8;
    font-size: 1.5rem;
}

.skills-section {
    margin-top: 5rem;
}

.skills-section h2 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.skill-category h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.8rem 0;
    color: var(--dark-grey);
    border-bottom: 1px solid var(--border-grey);
    font-size: 1.3rem;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content .greeting {
        font-size: 3.5rem;
    }

    .hero-content .name-highlight {
        font-size: 4.5rem;
    }

    .hero-content h2 {
        font-size: 3.8rem;
    }

    .portfolio-header h1,
    .page-header h1 {
        font-size: 2.8rem;
    }

    .project-item {
        grid-template-columns: 1fr;
    }

    .project-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 2.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-image {
        height: 65px;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 6rem 1.5rem 3rem 1.5rem;
    }

    .hero-content .greeting {
        font-size: 2.8rem;
    }

    .hero-content .name-highlight {
        font-size: 3.5rem;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .star {
        font-size: 1.9rem;
        margin: 0 0.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1.3rem;
    }

    .portfolio-page,
    .content-page {
        padding: 6rem 1.5rem 3rem 1.5rem;
    }

    .portfolio-header h1,
    .page-header h1 {
        font-size: 2.8rem;
    }

    .about-content h1 {
        font-size: 3rem;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .skills-section h2 {
        font-size: 2.5rem;
    }

    .skill-category h3 {
        font-size: 1.5rem;
    }

    .skill-category li {
        font-size: 1.1rem;
    }

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

    .tabs {
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

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

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .logo-image {
        height: 50px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero-content .greeting {
        font-size: 2.2rem;
    }

    .hero-content .name-highlight {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .star {
        font-size: 1.5rem;
        margin: 0 0.4rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 1.2rem;
    }

    .portfolio-header h1,
    .page-header h1 {
        font-size: 2.2rem;
    }

    .about-content h1 {
        font-size: 2.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .skills-section h2 {
        font-size: 2rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
    }

    .skill-category li {
        font-size: 1rem;
    }
}