/* About Page Specific Styles - Mobile First */
.about-main {
    padding-top: 20px;
    overflow-x: hidden;
    min-height: 100vh;
}

.about-lead {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    color: #fff;
    opacity: 1;
    margin-top: 10px;
    transition: opacity 0.3s ease;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--orange);
    font-weight: bold;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange) 0%, #ffb34f 100%);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* Hero Section - Mobile First */
.about-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    position: relative;

}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    padding: 0;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: var(--primary-font);
    color: var(--orange);
    margin-top: -200px;
    position: relative;
    transition: color 0.3s ease;
    background: linear-gradient(45deg, var(--orange), #ffb34f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
    line-height: 1.1;
}

/* Desktop Hero Layout */
@media (min-width: 768px) {
    .about-hero {
        min-height: 100vh;
        padding: 80px 5%;
    }
    
    .hero-content {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 50px;
        text-align: left;
    }
    
    .hero-text {
        padding-right: 20px;
    }
}

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

/* Role Text - Mobile Optimized */
.role-text {
    font-family: var(--secondary-font);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #fff;
    margin-bottom: 30px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Typewriter effect - only on larger screens for performance */
@media (min-width: 768px) {
    .typewriter {
        border-right: 2px solid var(--orange);
        white-space: nowrap;
        overflow: hidden;
        animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    }
    
    @keyframes typing {
        from { width: 0 }
        to { width: 100% }
    }
    
    @keyframes blink-caret {
        from, to { border-color: transparent }
        50% { border-color: var(--orange) }
    }
}

/* Mobile: Simple fade-in instead of typewriter */
@media (max-width: 767px) {
    .role-text {
        animation: fadeIn 1s ease forwards;
    }
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--orange);
    font-weight: bold;
}

/* Profile Image Section */
.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 20px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.image-wrapper:hover .about-avatar {
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(206, 79, 10, 0.3), transparent);
    mix-blend-mode: overlay;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0.1;
    animation: float 6s infinite ease-in-out;
}

.shape1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: -30px;
    animation-delay: 0s;
}

.shape2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: -20px;
    animation-delay: -2s;
}

.shape3 {
    width: 80px;
    height: 80px;
    bottom: -40px;
    left: 50%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Journey Section */
.about-journey {
    padding: 100px 5%;
    position: relative;
    background: rgba(34, 34, 34, 0.3);
}

.section-title {
    font-size: 2.5rem;
    color: var(--orange);
    text-align: center;
    margin-bottom: 60px;
    font-family: var(--primary-font);
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.timeline-item {
    background: rgba(34, 34, 34, 0.9);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--orange);
    opacity: 0.7;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-content {
    position: relative;
}

.timeline-content h3 {
    color: var(--orange);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: var(--primary-font);
}

.timeline-content h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    color: #bbb;
    line-height: 1.6;
    font-size: 1rem;
}

/* Cards Section */
.about-cards {
    padding: 100px 5%;
    background: rgba(0, 0, 0, 0.2);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: rgba(34, 34, 34, 0.9);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(206, 79, 10, 0.2);
}

.card-content h3 {
    color: var(--orange);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.philosophy-list,
.approach-list {
    list-style: none;
    padding: 0;
}

.philosophy-list li,
.approach-list li {
    color: #fff;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.philosophy-list li::before,
.approach-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--orange);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.interests-grid span {
    color: #fff;
    padding: 8px;
    text-align: center;
    background: rgba(206, 79, 10, 0.1);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.interests-grid span:hover {
    background: rgba(206, 79, 10, 0.2);
}

/* Skills Section */
.about-skills {
    padding: 60px 5%;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 40px;
}

.skills-category h3 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--primary-font);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

.skill-item {
    background: rgba(34, 34, 34, 0.9);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
}

.skill-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-info {
    flex-grow: 1;
}

.skill-name {
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.skill-level {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 8px;
}

.skill-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #ffb34f);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease;
}

/* Skill level data attributes */
.skill-item[data-skill="Figma"] .skill-level::before { width: 95%; }
.skill-item[data-skill="Photoshop"] .skill-level::before { width: 90%; }
.skill-item[data-skill="Illustrator"] .skill-level::before { width: 85%; }
.skill-item[data-skill="HTML5"] .skill-level::before { width: 90%; }
.skill-item[data-skill="CSS3"] .skill-level::before { width: 88%; }
.skill-item[data-skill="JavaScript"] .skill-level::before { width: 75%; }
.skill-item[data-skill="Blender"] .skill-level::before { width: 80%; }
.skill-item[data-skill="After Effects"] .skill-level::before { width: 85%; }
.skill-item[data-skill="Premiere Pro"] .skill-level::before { width: 88%; }
.skill-item[data-skill="Unity"] .skill-level::before { width: 70%; }

/* Contact Section */
.about-contact {
    padding: 100px 5%;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    font-family: var(--primary-font);
    font-size: 1.1rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.about-btn.primary {
    background: var(--orange);
    color: #fff;
}

.about-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--orange);
}

.about-btn:hover {
    transform: translateY(-5px);
}

.about-btn.primary:hover {
    background: #e65a0a;
}

.about-btn.secondary:hover {
    background: rgba(206, 79, 10, 0.1);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.about-btn:hover .btn-icon {
    transform: translateX(5px);
}

.about-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(206, 79, 10, 0.1);
    border: 1px solid rgba(206, 79, 10, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.social-link img {
    width: 18px;
    height: 18px;
    filter: invert(48%) sepia(100%) saturate(2455%) hue-rotate(6deg) brightness(99%) contrast(102%);
    transition: filter 0.3s ease;
    object-fit: contain;
    display: block;
    margin: auto;
}

.social-hover {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(34, 34, 34, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    white-space: nowrap;
}

.social-link:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(206, 79, 10, 0.3);
}

.social-link:hover img {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.social-link:hover .social-hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hero-content p {
    min-width: 1200px;
    font-size: 70px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 100vh;
        padding: 60px 5% 40px 5%;
    }
    
    .hero-content {
        gap: 20px;
        text-align: center;
    }

    .hero-content p {
        min-width: 10px;
        font-size: 30px;
    }
    
    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 12vw, 3.5rem);
        margin-bottom: 12px;
        text-align: center;
        width: 100%;
    }
    
    .role-text {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 18px;
        text-align: center;
        width: 100%;
    }
    
    .about-lead {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        padding: 0 5px;
        line-height: 1.5;
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2rem);
        margin-bottom: 40px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-item {
        padding: 15px;
    }

    .about-socials {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    
    .timeline-item {
        margin-left: -35px;
        padding: 20px;
        overflow: visible;
        word-wrap: break-word;
    }
    
    .timeline-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .timeline-content h3 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 12px;
        word-wrap: break-word;
    }
    
    .timeline-content h4 {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 12px;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .timeline-content p {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.5;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .about-main {
        padding-top: 5px;
    }
    
    .about-hero {
        padding: 50px 3% 30px 3%;
        min-height: 95vh;
    }
    
    .hero-content {
        gap: 15px;
    }
    
    .hero-text h1 {
        font-size: clamp(1.8rem, 15vw, 3rem);
        margin-bottom: 8px;
        line-height: 1.05;
    }
    
    .role-text {
        font-size: clamp(0.9rem, 5vw, 1.2rem);
        margin-bottom: 12px;
    }
    
    .about-lead {
        font-size: clamp(0.85rem, 4vw, 1rem);
        padding: 0 8px;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 1.8rem);
        margin-bottom: 25px;
    }
    
    .about-skills {
        padding: 35px 3%;
    }
    
    .skills-category {
        margin-bottom: 25px;
    }
    
    .skills-category h3 {
        font-size: clamp(1.2rem, 6vw, 1.4rem);
        margin-bottom: 15px;
    }
    
    .skill-item {
        padding: 10px;
        gap: 12px;
    }
    
    .skill-item img {
        width: 32px;
        height: 32px;
    }
    
    .timeline {
        padding: 0 3px;
        gap: 15px;
    }
    
    .timeline-item {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 8px;
    }
    
    .timeline-content h4 {
        font-size: clamp(0.95rem, 4.5vw, 1.1rem);
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .timeline-content p {
        font-size: clamp(0.8rem, 3.8vw, 0.95rem);
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .about-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

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

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.7;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    margin-top: 10px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::before {
    content: '';
    width: 8px;
    height: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-bottom: 2px solid var(--orange);
    border-right: 2px solid var(--orange);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* MOBILE RESPONSIVENESS - Comprehensive */
@media (max-width: 767px) {
    .about-main {
        padding-top: 10px;
    }
    
    /* Hero optimizations */
    .about-hero {
        min-height: 80vh;
        padding: 40px 20px;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 15px;
    }
    
    .role-text {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .about-lead {
        font-size: 1rem;
        margin-top: 15px;
        text-align: center;
    }
    
    /* Journey section */
    .about-journey {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 40px;
    }
    
    .timeline {
        padding-left: 0;
        margin-left: 20px;
    }
    
    .timeline-item {
        margin-bottom: 40px;
        padding-left: 40px;
    }
    
    .timeline-content h3 {
        font-size: 1.5rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Cards section */
    .about-cards {
        padding: 60px 20px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-card {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .philosophy-list,
    .approach-list {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .interest-item {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    /* Contact section */
    .about-contact {
        padding: 60px 20px;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .about-btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .about-socials {
        margin-top: 40px;
        justify-content: center;
        gap: 30px;
    }
    
    .social-link img {
        width: 28px;
        height: 28px;
    }
    
    /* Reduce animations on mobile for performance */
    .floating-shapes,
    .shape {
        display: none;
    }
    
    /* Simplify scroll indicator */
    .scroll-indicator {
        bottom: 20px;
        font-size: 0.8rem;
    }
    
    .scroll-arrow {
        width: 25px;
        height: 25px;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes,
    .shape {
        display: none;
    }
}
