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

/* Hide scrollbar but keep scrolling functionality */
html {
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #010B13;
    color: #f0f0f0;
    line-height: 1.6;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    padding-bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    color: #ff8c00;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

nav a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-transform: uppercase;

}

nav a:hover {
    color: #FFB302;
}

/* Hero section styles */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
}

.particle-grid {
    width: 100%;
    height: 100%;
    position: relative;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(128, 128, 128, 0.3);
    border-radius: 50%;
    transition: background-color 0.001s ease, box-shadow 0.02s ease;
    transform: scale(1) translate(0px, 0px);
    pointer-events: auto;
}

.particle.hovered {
    transition: background-color 0.001s ease, transform 0.001s ease, box-shadow 0.02s ease;
}

.particle:hover {
    background-color: #ff8c00;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.greeting {
    font-size: 4rem;
    color: #f0f0f0;
    font-weight: 400;
    white-space: nowrap;
}

.name {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.name-first {
    color: #ff8c00;
    position: relative;
    display: inline-block;
    animation: colorShift 4s linear infinite, flameBurst 3s linear forwards;
    text-shadow: 0 0 40px rgba(255, 140, 0, 0.4),
                 0 0 80px rgba(255, 140, 0, 0.3),
                 0 0 120px rgba(255, 140, 0, 0.2);
}

@keyframes flameBurst {
    0% {
        text-shadow: 0 0 20px rgba(255, 140, 0, 1),
                     0 0 40px rgba(255, 140, 0, 0.9),
                     0 0 60px rgba(255, 140, 0, 0.8),
                     0 0 80px rgba(255, 140, 0, 0.7),
                     0 0 100px rgba(255, 140, 0, 0.6);
    }
    20% {
        text-shadow: 0 0 30px rgba(255, 140, 0, 1),
                     0 0 60px rgba(255, 140, 0, 0.9),
                     0 0 90px rgba(255, 140, 0, 0.8),
                     0 0 120px rgba(255, 140, 0, 0.7),
                     0 0 150px rgba(255, 140, 0, 0.6);
    }
    40% {
        text-shadow: 0 0 25px rgba(255, 140, 0, 0.9),
                     0 0 50px rgba(255, 140, 0, 0.8),
                     0 0 75px rgba(255, 140, 0, 0.7),
                     0 0 100px rgba(255, 140, 0, 0.6),
                     0 0 125px rgba(255, 140, 0, 0.5);
    }
    60% {
        text-shadow: 0 0 30px rgba(255, 140, 0, 0.7),
                     0 0 60px rgba(255, 140, 0, 0.6),
                     0 0 90px rgba(255, 140, 0, 0.5),
                     0 0 120px rgba(255, 140, 0, 0.4),
                     0 0 150px rgba(255, 140, 0, 0.3);
    }
    80% {
        text-shadow: 0 0 35px rgba(255, 140, 0, 0.5),
                     0 0 70px rgba(255, 140, 0, 0.4),
                     0 0 105px rgba(255, 140, 0, 0.3),
                     0 0 140px rgba(255, 140, 0, 0.2),
                     0 0 175px rgba(255, 140, 0, 0.1);
    }
    100% {
        text-shadow: 0 0 40px rgba(255, 140, 0, 0.4),
                     0 0 80px rgba(255, 140, 0, 0.3),
                     0 0 120px rgba(255, 140, 0, 0.2);
    }
}

@keyframes colorShift {
    0% {
        color: #ff7300;
        text-shadow: 0 0 40px rgba(255, 77, 0, 0.4),
                     0 0 80px rgba(255, 77, 0, 0.3),
                     0 0 120px rgba(255, 77, 0, 0.2);
    }
    25% {
        color: #FF8C00;
        text-shadow: 0 0 40px rgba(255, 140, 0, 0.4),
                     0 0 80px rgba(255, 140, 0, 0.3),
                     0 0 120px rgba(255, 140, 0, 0.2);
    }
    50% {
        color: #FFB302;
        text-shadow: 0 0 40px rgba(255, 179, 2, 0.4),
                     0 0 80px rgba(255, 179, 2, 0.3),
                     0 0 120px rgba(255, 179, 2, 0.2);
    }
    75% {
        color: #ff9035;
        text-shadow: 0 0 40px rgba(255, 107, 53, 0.4),
                     0 0 80px rgba(255, 107, 53, 0.3),
                     0 0 120px rgba(255, 107, 53, 0.2);
    }
    100% {
        color: #ff7300;
        text-shadow: 0 0 40px rgba(255, 77, 0, 0.4),
                     0 0 80px rgba(255, 77, 0, 0.3),
                     0 0 120px rgba(255, 77, 0, 0.2);
    }
}

.name-last {
    color: #f0f0f0;
}

.title {
    font-size: 1.8rem;
    color: #f0f0f0;
    margin-bottom: 3rem;
    font-weight: 400;
    position: relative;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-text {
    position: relative;
    display: inline-block;
    min-height: 1.2em;
    white-space: nowrap;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    top: 0;
    animation: blink 1s infinite;
    color: #ff8c00;
    font-weight: bold;
}

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

.cta-button {
    background-color: transparent;
    color: #FFB302;
    border: 2px solid #FFB302;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
    position: relative;
    padding-right: 2.5rem;
    max-width: 300px;
}

.cta-button::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #FFB302;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(255, 140, 0, 0.1);
    color: #FFB302;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.6);
}

.cta-button:hover::after {
    border-top-color: #FFB302;
    transform: translateY(-50%) translateY(2px);
}

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

/* Section base styles */
section {
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* About section styles */
.about-section {
    background: none;
    position: relative;
}

.about-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-image {
    position: relative;
    flex-shrink: 0;
    flex: 0 0 20%;
    align-items: right;
}

.profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0e0e0;
    box-shadow: 0 0 30px rgba(224, 224, 224, 0.4);
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #333;
    border: 4px solid #e0e0e0;
    box-shadow: 0 0 30px rgba(224, 224, 224, 0.4);
}

.about-text {
    flex: 0 0 60%;
    text-align: left;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #FFB302;
    text-align: left;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    text-align: left;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.about-text li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #cccccc;
    line-height: 1.6;
}

.about-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #FFB302;
    border-radius: 50%;
}

/* Experience section styles */
.experience-section {
    background-color: transparent;
}

.experience-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #FFB302;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #FFB302;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: 16px;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: #FFB302;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    letter-spacing: 1px;
}

.timeline-content .date {
    display: block;
    font-size: 1rem;
    color: #FFB302;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
    color: #cccccc;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
}

/* Skills section styles */

.skills-section {
    background-color: none;
}

.skills-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #FFB302;
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;   /* row gap, column gap */
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.skill-tag {
    display: inline-flex;       /* size to content */
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    background-color: #4b4b4b7e;
    border-radius: 7px;       /* pill look (optional) */
    transition: all 0.3s ease;
}

.skill-tag.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-tag:hover {
    background-color: #FFB302;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

.skill-icon {
    max-width: 20px;
    max-height: 20px;
    background-color: #666;
    border-radius: 4px;
    overflow: hidden;
}

.skill-icon img{
    width: 100%;
    height: 100%;
}

.skill-tag span {
    color: #f0f0f0;
    font-weight: 500;
}

/* Row container */
.project-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;                 /* base spacing */
    margin: 4rem 0;
    position: relative;        /* so z-index works nicely */
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(245, 244, 242, 0.459);
}

.project-row:last-child {
    border-bottom: none;
    padding-bottom: 2rem;
}

.projects-section > .container > h2 {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 0 3rem;
    color: #FFB302;
}

.projects-section > .container > h2 {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 0 3rem;
    color: #FFB302;
  }

/* Light image card */
.media {
    flex: 1 1 560px; 
    width: auto;          /* grows a bit more than the info card */
    height: 400px;
    background: #c3c3c3e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 6px 10px rgba(0,0,0,.12);
    z-index: 1;
    padding: 15px;
}

.media:hover {
    box-shadow: #ffffffb0;
}

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

/* Orange description card */
.info {
    flex: 0 1 600px;
    max-width: 550px;
    background: #ffcc54eb;
    color: #111;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 6px 10px rgba(0,0,0,.12);
    position: relative;
    z-index: 2;
    /* overlap: pull the orange card over the white card */
    margin-left: -100px;
}

.info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info ul {
    padding-left: 1.5rem;
}

.info li {
    margin-left: 0.5rem;
}

/* Flip sides on even rows */
.project-row:nth-child(even) {
    flex-direction: row-reverse;
}
.project-row:nth-child(even) .info {
    margin-left: 0;
    margin-right: -160px;      /* overlap the other way */
}

/* Hover polish (optional) */
.project-row:hover .info { transform: translateY(-2px); transition: transform .2s ease; }

/* Responsive: stack without overlap */
@media (max-width: 800px) {
    .project-row {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .info {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: none;
        flex: none;
    }
    
    .media { 
        width: 100%; 
        flex: none;
        height: 300px;
    }
    
    /* Remove the flip effect on mobile */
    .project-row:nth-child(even) {
        flex-direction: column;
    }
    
    .project-row:nth-child(even) .info {
        margin-right: 0;
    }
}
  

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .name {
        font-size: 2.8rem;
    }
    
    .title {
        font-size: 1.8rem;
        min-height: 2.2rem;
    }
    
    .greeting {
        font-size: 2.8rem;
    }

    /* Section responsive */
    section {
        padding: 2rem 0;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-image img,
    .profile-placeholder {
        width: 200px;
        height: 200px;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

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

    .timeline-item {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: 11px;
    }

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

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

    .project-card {
        height: 150px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.2rem;
        min-height: 1.8rem;
    }
    
    .greeting {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Main element styles */
main {
    max-width: 100%;
}
/* Footer styles */
.footer {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0 0.8rem 0;
    margin-top: 1.5rem;
}

.footer-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 1.2rem;
    color: #FFB302;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.footer-content p {
    color: #cccccc;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.contact-info {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.email-link:hover {
    background-color: rgba(255, 140, 0, 0.1);
    border-color: #FFB302;
    color: #FFB302;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.email-icon {
    font-size: 0.9rem;
}

.footer-text {
    color: #888888;
    font-size: 0.7rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 0.8rem 0 0.6rem 0;
    }
    
    .footer-content h3 {
        font-size: 1.1rem;
    }
    
    .footer-content p {
        font-size: 0.8rem;
    }
    
    .email-link {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
    
    .email-icon {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .email-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        gap: 0.3rem;
    }
    
    .email-icon {
        font-size: 0.75rem;
    }
}

/* Additional mobile responsive styles for projects */
@media (max-width: 600px) {
    .project-row {
        margin: 1.5rem 0;
        gap: 1rem;
        padding-bottom: 2rem;
    }
    
    .media {
        height: 250px;
        padding: 10px;
    }
    
    .info {
        padding: 1rem 1.2rem;
    }
    
    .info h3 {
        font-size: 1.5rem;
    }
    
    .projects-section > .container > h2 {
        font-size: 2rem;
        margin: 0 0 2rem;
    }
}

@media (max-width: 480px) {
    .project-row {
        margin: 1rem 0;
        gap: 0.8rem;
    }
    
    .media {
        height: 200px;
        padding: 8px;
    }
    
    .info {
        padding: 0.8rem 1rem;
    }
    
    .info h3 {
        font-size: 1.3rem;
    }
    
    .info ul {
        padding-left: 1rem;
    }
    
    .info li {
        margin-left: 0.3rem;
        font-size: 0.9rem;
    }
}