@import url('./fonts/AlteHaasGroteskRegular.css');

:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --text-color: #1f2937;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --card-shadow: 0 10px 20px rgba(0,0,0,0.1);
    --hover-transform: translateY(-5px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alte Haas Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Add padding for fixed header */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

section {
    min-height: 100vh;
    padding: 7rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    transform: none;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
    padding-top: 70px; /* Match header height */
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: rotate(-45deg);
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    margin: 2rem 0;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button.primary {
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.button.secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.button.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card, .project-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.skill-card::before, .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: 0.5s;
}

.skill-card:hover::before, .project-card:hover::before {
    left: 100%;
}

.skill-card i, .project-card i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.skill-card ul li {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    font-weight: 500;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
}

.skill-card h3, .project-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-card ul {
    list-style: none;
}

.skill-card ul li {
    margin: 0.5rem 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--secondary-color);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    box-shadow: var(--card-shadow);
}

.social-links a:hover {
    transform: var(--hover-transform);
    color: var(--primary-color);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.social-links a i {
    font-size: 1.2rem;
}

/* Experience section styles */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.experience-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.experience-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.experience-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-card h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-card .duration {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-card .experience-details {
    list-style: none;
    margin-top: 1rem;
}

.experience-card .experience-details li {
    margin: 0.75rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.experience-card .experience-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-text {
        margin-bottom: 2rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 0.5rem 1rem;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    nav ul {
        display: flex;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        width: max-content;
        gap: 1.5rem;
    }

    nav ul li {
        margin: 0;
        white-space: nowrap;
    }

    nav ul li a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
}

/* Smooth transition for all interactive elements */
a, button, .skill-card, .project-card {
    transition: all 0.3s ease;
}

/* Enhanced section titles */
section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 4rem;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}
