/* ================================
   RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    cursor: none;
}

/* ================================
   CUSTOM CURSOR
   ================================ */
#cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #00ff88;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    height: 140vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    margin-top: 40px;
}
    

/* Profile Image Styles */
.profile-image-container {
    position: relative;
    margin-bottom: 2rem;
    width: 200px;
    height: 200px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00ff88;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.6);
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid #00d4ff;
    animation: rotate-ring 10s linear infinite;
    opacity: 0.5;
}

@keyframes rotate-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.5);
    animation: fadeInScale 1s ease 0.3s forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.glitch-wrapper {
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(45deg, #00ff88, #00d4ff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
    position: relative;
    text-align: center;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #888;
    margin-top: 1rem;
    animation: fadeInUp 1s ease 0.5s both;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #00ff88;
    margin-top: 1.5rem;
    animation: fadeInUp 1s ease 1s both;
    text-align: center;
    padding: 0 20px;
}

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

/* ================================
   FLOATING SHAPES
   ================================ */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: #00ff88;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape2 {
    width: 400px;
    height: 400px;
    background: #00d4ff;
    bottom: 10%;
    right: 10%;
    animation-delay: 7s;
}

.shape3 {
    width: 250px;
    height: 250px;
    background: #ff00ff;
    top: 50%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ================================
   SCROLL INDICATOR
   ================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid #00ff88;
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    background: #00ff88;
    border-radius: 3px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ================================
   INTRODUCTION SECTION
   ================================ */
.intro-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03) 0%, rgba(0, 212, 255, 0.03) 100%);
    min-height: auto;
    padding: 120px 5%;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-paragraph {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.intro-paragraph:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 900;
    float: left;
    line-height: 1;
    margin: 0 10px 0 0;
    color: #00ff88;
}

.intro-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid #00ff88;
    border-radius: 10px;
}

.highlight-icon {
    font-size: 2rem;
}

.highlight-text {
    font-size: 1.2rem;
    color: #00ff88;
    font-weight: 600;
}

/* Diagonal slide animation */
.slide-in-diagonal {
    opacity: 0;
    transform: translate(-100px, 100px) rotate(-5deg);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-diagonal.visible {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
}

/* ================================
   SECTION STYLES
   ================================ */
.section {
    min-height: 100vh;
    padding: 100px 5%;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.section-title.visible::after {
    transform: scaleX(1);
}

/* ================================
   CARDS GRID
   ================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #00ff88;
}

.card:hover::before {
    opacity: 0.1;
}

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.card p {
    color: #aaa;
    line-height: 1.6;
}

/* ================================
   EXPERIENCE TIMELINE
   ================================ */
.timeline {
    position: relative;
    margin-top: 3rem;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00ff88, #00d4ff);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff88;
    border: 4px solid #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: #00ff88;
}

.timeline-role {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1.2rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: #aaa;
    line-height: 1.6;
}

/* ================================
   PROJECTS SECTION
   ================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link:hover .project-card {
    transform: scale(1.05);
    border-color: #00ff88;
}

.project-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-link:hover .project-image-placeholder {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    height: calc(100% - 180px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #00ff88;
}

.project-desc {
    color: #aaa;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

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

.tech-tag {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.project-link-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.project-link:hover .project-link-indicator {
    opacity: 1;
    transform: rotate(45deg);
}

/* ================================
   FUN FACTS SECTION
   ================================ */
.fun-facts {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.fact {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    min-width: 200px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.fact:hover {
    transform: rotate(-5deg) scale(1.1);
    background: rgba(0, 255, 136, 0.1);
}

.fact-number {
    font-size: 3rem;
    font-weight: 900;
    color: #00ff88;
    display: block;
}

.fact-label {
    color: #888;
    margin-top: 0.5rem;
}

/* ================================
   SKILLS SECTION
   ================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: #aaa;
    font-size: 0.95rem;
}

/* ================================
   CODE EXPLANATION SECTION
   ================================ */
.code-explanation {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.code-explanation h3 {
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 1.5rem;
}

.code-explanation p {
    color: #aaa;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.code-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.code-stat {
    text-align: center;
}

.code-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00d4ff;
    display: block;
}

.code-stat-label {
    color: #888;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-text {
    flex: 1;
    min-width: 300px;
}

.contact-text h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #aaa;
}

.contact-item span {
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.5);
}

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

.social-link {
    width: 50px;
    height: 50px;
    border: 2px solid #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #00ff88;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.social-link:hover {
    background: #00ff88;
    color: #000;
    transform: translateY(-5px);
}

/* ================================
   EMOJI RAIN EFFECT
   ================================ */
.emoji {
    position: fixed;
    top: -50px;
    font-size: 2rem;
    animation: fall linear infinite;
    pointer-events: none;
    z-index: 1000;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ================================
   SCROLL ANIMATION CLASSES
   ================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .section {
        padding: 80px 5%;
    }
    
    .contact-content {
        flex-direction: column;
    }

    .timeline {
        padding-left: 30px;
    }
    
    .profile-image-container {
        width: 150px;
        height: 150px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .intro-section {
        padding: 80px 5%;
    }
    
    .intro-paragraph {
        text-align: left;
    }
    
    .intro-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    #cursor,
    #cursor-follower {
        display: none;
    }
}