/* =================================================================
   HERO & PROFILE STYLES (Cleaned & Consolidated)
   ================================================================= */

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('profile.jpg') center/cover no-repeat;
    z-index: -2;
    transform: scale(1.1);
    animation: slow-zoom 20s ease-in-out infinite;
    filter: brightness(0.3) saturate(0.6) contrast(1.1);
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.hero-lighting-overlay {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle at 70% 30%,
        rgba(255, 69, 0, 0.15) 0%,
        rgba(255, 69, 0, 0.05) 40%,
        transparent 70%
    );
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: pulse-spotlight 8s ease-in-out infinite;
}

@keyframes pulse-spotlight {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

@keyframes slow-zoom {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.12); }
}

/* Cinematic Content Layout */
.hero.cinematic {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--spacing-xl) 5% var(--spacing-xl) 0;
    overflow: hidden;
}

.hero-content.asymmetric {
    text-align: left;
    max-width: 1200px;
    width: 100%;
    z-index: 2;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-title-group {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 4rem;
    width: 100%;
    margin-bottom: 2rem;
}

.hero-name-huge {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.85;
    font-weight: 900;
    margin: 0;
    letter-spacing: -4px;
}

.hero-profile-container {
    flex-shrink: 0;
    animation: float-profile 6s ease-in-out infinite;

}

.hero-profile-container .about-image {
    width: auto;
    height: clamp(6.8rem, 25.5vw, 20.4rem); /* Matches 1.7 * name font-size */
    aspect-ratio: 1;
    margin-top: 0;
}

.vibrant-text {
    color: var(--color-primary);
    text-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
}

.hero-subtext {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.design-label {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text);
    background: #FF4500; /* Reference Orange */
    padding: 0.5rem 1rem;
    margin: 0;
    letter-spacing: 2px;
}

.hero-title-thin {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

/* Footer Actions */
.hero-footer-actions {
    margin-top: 5rem;
}

.action-grid {
    display: flex;
    gap: 4rem;
}

.action-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.action-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text);
    letter-spacing: 2px;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.action-item:hover .action-label {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.action-item:hover .action-num {
    color: var(--color-primary);
}

/* Responsive Cinematic Adjustments */
@media (max-width: 1024px) {
    .hero.cinematic {
        padding: var(--spacing-xl) 5%;
    }
    .hero-subtext {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero.cinematic {
        align-items: center;
        padding-top: 8rem;
    }
    .hero-title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .hero-profile-container .about-image {
        width: 180px;
        height: 180px;
    }
    .hero-name-huge {
        font-size: clamp(3rem, 12vw, 6rem);
        letter-spacing: -2px;
    }
    .hero-subtext {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .action-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-name-huge {
        font-size: 3rem;
    }
    .design-label {
        font-size: 0.9rem;
    }
    .hero-title-thin {
        font-size: 0.8rem;
    }
}

/* =================================================================
   CREATIVE ABOUT ME SECTION - ROW LAYOUT
   ================================================================= */
.about-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Align image and text to top */
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1000px;
    gap: 4rem; /* Generous gap between image and text */
}

/* 1. Profile Image Styling (Hexagonal) */
.about-image {
    width: 300px; /* Specific width for the row layout */
    height: 300px;
    position: relative;
    flex-shrink: 0; /* Prevent shrinking */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(0, 0, 0, 0.2); /* Slight dark backing */
    padding: 5px;
    animation: float-profile 6s ease-in-out infinite;
    margin-top: 1rem; /* Visual alignment with text */
}

/* Gradient Border for Hexagon */
.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-cyan), #00b8cc);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Holographic Overlay (Clean Cyan) */
.about-image .holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 229, 255, 0.2) 90deg,
        rgba(0, 229, 255, 0.2) 180deg,
        rgba(0, 184, 204, 0.2) 270deg,
        transparent 360deg
    );
    animation: holographicRotate 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes float-profile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes holographicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 2. Text Box Styling (White Background) */
.about-text {
    flex: 1; /* Take remaining space */
    position: relative;
    background: #ffffff; /* FORCE WHITE BACKGROUND */
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.1), /* Soft shadow */
        inset 0 0 0 1px rgba(0, 229, 255, 0.05); /* Very subtle inner cyan hint */
    padding: 3.5rem;
    border-radius: 12px;
    text-align: left;
    overflow: hidden; /* Contain the background pseudo-element */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

/* Faint Background Image Layer */
.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%; /* Positioned horizontally on the right side */
    height: 100%;
    background: url('profile.jpg') center/cover no-repeat;
    opacity: 0.08; /* Very faint so text is visible */
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
    z-index: 0;
}

.about-text:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(0, 229, 255, 0.1);
}

/* Text Styling for White Background */
.about-text p {
    margin-bottom: 1.8rem;
    line-height: 1.9;
    font-size: 1.15rem;
    color: #333333; /* Dark Gray for readability */
    position: relative;
    z-index: 1; /* Stay above the background image */
    padding-left: 1.5rem;
    border-left: 3px solid rgba(0, 229, 255, 0.3); /* Cyan accent */
    transition: all 0.3s ease;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Interactive Text Effect */
.about-text p:hover {
    border-left-color: var(--color-cyan);
    color: #000000; /* Pure Black on hover */
    padding-left: 2rem;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), transparent);
}

.about-text strong {
    color: var(--color-cyan); /* Cyan highlights */
    font-weight: 700;
}

/* Corner Accents (Cyan) - Restored and adjusted */
.about-text-accents {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.about-text-accents::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 20px;
    height: 20px;
    border-top: 3px solid var(--color-cyan);
    border-left: 3px solid var(--color-cyan);
}

.about-text-accents::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid var(--color-cyan);
    border-right: 3px solid var(--color-cyan);
}

/* Responsive Design */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column; /* Stack on smaller screens */
        align-items: center;
        gap: 2rem;
    }
    
    .about-image {
        width: 250px;
        height: 250px;
        margin-top: 0;
    }

    .about-text {
        text-align: center;
        padding: 2.5rem;
    }

    /* Adjust borders for centered text on mobile */
    .about-text p {
        padding-left: 0;
        border-left: none;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    }
    
    .about-text p:hover {
        padding-left: 0;
        background: none;
        color: #000000;
    }

    /* Move corner accents for mobile */
    .about-text::before, .about-text::after {
        display: none;
    }
}
