/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* Base styles */
:root {
    --primary-color: #000000;
    --background-color: #ffffff;
    --text-color: #2d2e32;
    --secondary-color: #767676;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: none !important;
}

a, button, .project, [data-cursor="hover"] {
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.7;
}

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

/* Custom Cursor */
.custom-cursor {
    width: 24px;
    height: 24px;
    background: #AEC6CF;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: exclusion;
    transition: width 0.2s ease, height 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 80px;
    height: 80px;
    background: #AEC6CF;
    mix-blend-mode: difference;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    padding-bottom: 4px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

.logo:hover::after {
    width: 100%;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

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

/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 2rem;
    position: relative;
    overflow: visible;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-text {
    max-width: 800px;
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #AEC6CF;
    padding-top: 1rem;
    white-space: nowrap;
}

.typing-effect {
    display: inline;
    position: relative;
}

.typing-effect::after {
    content: '|';
    position: absolute;
    right: -0.05em;
    color: #AEC6CF;
    animation: blink 0.7s infinite;
    opacity: 1;
}

.typing-effect.typing::after {
    opacity: 1;
    animation: blink 0.7s infinite;
}

.typing-effect.done::after {
    opacity: 0;
    animation: none;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--secondary-color);
    max-width: 600px;
    margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 1240px) {
    .hero-content {
        padding-left: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-left: 1rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        white-space: normal;
    }
    
    .subtitle {
        margin: 1.5rem auto;
    }
}

/* Work Section */
#work {
    padding: 8rem 0;
    background: #fafafa;
}

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

.project {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.98);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project.visible {
    transform: scale(1);
    opacity: 1;
}

.project:hover {
    transform: translateY(-10px);
}

.project-content {
    padding: 2rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    margin-top: 1rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

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

/* About Section */
#about {
    padding: 8rem 0;
    background: var(--background-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2.5rem;
    position: relative;
}

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

.about-image {
    position: relative;
    width: 100%;
    max-width: 400px; /* Increased from 300px */
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        max-width: 350px; /* Increased from 250px for mobile view */
        margin-top: 2rem;
    }
}

/* Skills Section */
#skills {
    background: var(--background-color);
    padding: 8rem 0;
}

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

.skill-card {
    background: #fafafa;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(174, 198, 207, 0.1), rgba(174, 198, 207, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 2rem;
    color: #AEC6CF;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(174, 198, 207, 0.1);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(174, 198, 207, 0.2);
}

.skill-tag:hover {
    background: #AEC6CF;
    color: white;
    transform: translateY(-2px);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .skill-card {
        background: #1a1a1a;
    }
    
    .skill-tag {
        background: rgba(174, 198, 207, 0.05);
        border-color: rgba(174, 198, 207, 0.1);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        text-align: center;
    }
    
    .skill-tags {
        justify-content: center;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .skill-category {
        background: #1a1a1a;
    }
    
    .skill-bar {
        background: rgba(174, 198, 207, 0.1);
    }
}

/* Resume Button */
.resume-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--text-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.resume-button:hover {
    transform: translateY(-2px);
    background: var(--secondary-color);
}

/* Scroll Effects */
.scroll-section {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-section.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Contact Section */
.contact-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-link {
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

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

/* Footer */
footer {
    padding: 8rem 0 2rem 0;
    margin-top: 6rem;
    text-align: center;
    position: relative;
}

.footer-content {
    position: relative;
    bottom: 0;
}

footer p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Media Queries */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .contact-links {
        justify-content: center;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #111111;
        --text-color: #ffffff;
        --secondary-color: #a0a0a0;
    }
    
    nav {
        background: rgba(17, 17, 17, 0.9);
    }
    
    #work {
        background: #161616;
    }
    
    .project {
        background: #1a1a1a;
    }
}

/* Consistent section spacing */
section {
    padding: 8rem 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2.5rem;
}