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

:root {
    --primary: #00A6FF;       /* Bright blue */
    --secondary: #0058B0;     /* Deep blue */
    --accent: #00EEFF;        /* Cyan accent */
    --dark: #0A0A0A;          /* Nearly black */
    --dark-gradient: #121218; /* Dark blue-black for gradients */
    --light: #F5F5F5;         /* Off-white */
    --text: #E0E0E0;          /* Light gray text */
    --card-bg: rgba(12, 12, 18, 0.8);
    --glass: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 166, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 88, 176, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    cursor: none; /* Hide default cursor for custom cursor */
    overflow-x: hidden;
}

a, button, input, textarea, .video-item {
    cursor: none; /* Hide default cursor on interactive elements */
}

/* Custom cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-dot.cursor-active {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
}

.cursor-outline.cursor-active {
    width: 30px;
    height: 30px;
    border-color: var(--accent);
}

/* Touch devices - hide custom cursor */
@media (hover: none) {
    body, a, button, input, textarea, .video-item {
        cursor: auto;
    }
    
    .cursor-dot, .cursor-outline {
        display: none;
    }
    
    /* Improved touch experience */
    .video-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    .platform-tab {
        padding: 10px 18px;  /* Larger tap target */
    }
    
    /* Ensure videos are properly sized on mobile */
    .video-container.portrait {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .video-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Improve mobile intro layout */
    .intro-section {
        min-height: auto;
        padding: 60px 0 80px;
    }
}

/* Ensure videos play properly on touch devices */
@media (hover: none) {
    .video-item:hover .video-container video {
        transform: none;
    }
    
    .video-container.portrait video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

a {
    text-decoration: none;
    color: var(--primary);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding-top: 0; /* Removing padding that was accounting for fixed header */
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Three.js background */
#three-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.8s ease;
    z-index: 0;
}

/* Intro overlay for better text readability */
.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 14, 0.85) 0%, rgba(12, 12, 24, 0.6) 100%);
    z-index: 1;
}

.intro-container {
    position: relative;
    z-index: 2;
}

/* Perfect alignment for intro content */
.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap; /* Keep image and text side-by-side on larger screens */
}

/* Adjust text container for better balance */
.intro-text {
    flex: 1;
    max-width: 600px;
    padding-left: 20px;
}

/* New approach for circular image */
.intro-image {
    width: 400px; /* Set fixed width */
    height: 400px; /* Set fixed height */
    aspect-ratio: 1/1; /* Ensure 1:1 aspect ratio */
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 
                0 0 0 10px rgba(0, 238, 255, 0.3);
    position: relative;
    z-index: 5;
    margin-right: 30px; /* Keep margin for desktop */
    flex-shrink: 0; /* Prevent shrinking in flex container */

    /* --- ADDED: Hide initially to prevent layout flash --- */
    visibility: hidden;
}

.intro-image img {
    display: block; /* Ensure image behaves like a block element */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for maintaining aspect ratio */
    object-position: center center; /* Explicitly center */
    transition: transform 0.3s ease;
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* Update media queries for intro-image and intro-content */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column; /* Stack image and text */
        gap: 30px;
        text-align: center;
        flex-wrap: wrap; /* Allow wrapping if needed */
    }

    .intro-image {
        width: 350px;
        height: 350px;
        margin-right: 0; /* Remove margin for centered mobile layout */
        margin-bottom: 20px; /* Add some space below image */
        flex-shrink: 0; /* Ensure it doesn't shrink */
    }

    .intro-text {
        padding-left: 0;
        max-width: 90%; /* Adjust max-width for text */
    }

    .intro-greeting {
        justify-content: center;
    }

    .location, .company {
        justify-content: center;
    }

    .intro-bio p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .intro-content {
         gap: 25px;
    }

    .intro-image {
        width: 280px;
        height: 280px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .intro-content {
         gap: 20px;
    }

    .intro-image {
        width: 240px;
        height: 240px;
        border-width: 4px;
        margin-bottom: 10px;
    }

    .intro-bio p {
        font-size: 0.95rem; /* Slightly smaller for very small screens */
        line-height: 1.6;
    }
}

/* Remove unused reflection animations */
@keyframes reflection {
    /* Empty to override anything else */
}

/* Remove any additional unused animations */
@keyframes shimmer {
    /* Empty to override anything else */
}

/* Header styles - removing completely */
/* ... existing code ... */

/* Mobile menu styles - removing completely */
/* ... existing code ... */

/* Gallery heading styles */
.gallery-heading {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.gallery-heading h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 180, 255, 0.5);
    font-weight: 700;
    line-height: 1.2;
    color: var(--light);
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--light);
    letter-spacing: 3px;
    opacity: 0.9;
}

/* Video Gallery */
.video-gallery {
    padding: 0 0 80px;
    background-color: var(--dark);
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
    padding: 0 20px;
}

@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    border: 1px solid transparent;
}

.video-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Remove the shimmer overlay effect */
.video-item .shimmer-overlay {
    display: none !important;
}

.video-item:hover .shimmer-overlay {
    display: none !important;
    animation: none !important;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 166, 255, 0.2);
    border-color: rgba(0, 166, 255, 0.2);
}

.video-container {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 177.77%;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #1a1a1a;
}

.video-container.portrait {
    padding-bottom: 177.77%;
}

.video-container.portrait video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item:hover .video-container video {
    transform: scale(1.05);
}

/* Video play button for mobile */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 180, 255, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.video-play-button:hover {
    background: rgba(0, 180, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--light);
    padding-left: 10px;
    align-self: flex-start;
}

.video-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
    line-height: 1.5;
    color: var(--text);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 10px;
    align-self: flex-start;
}

.tags span {
    font-size: 0.8rem;
    padding: 5px 12px; /* Slightly increased padding */
    border-radius: 4px;
    background-color: rgba(0, 166, 255, 0.1);
    color: var(--primary);
    margin-right: 5px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 166, 255, 0.2);
}

/* Style company tags consistently - these are specific company names */
.tags span:not(:first-child) {
    /* More subtle style for company/client tags */
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Remove the company-specific styling to keep everything consistent */
.video-item.ar .tags span:first-child {
    /* Remove the special styling */
    color: var(--primary);
    border-color: var(--primary);
}

.video-item.web-ar .tags span:first-child {
    /* Remove the special styling */
    color: var(--primary);
    border-color: var(--primary);
}

.video-item.vr .tags span:first-child {
    /* Remove the special styling */
    color: var(--primary);
    border-color: var(--primary);
}

.video-item.ai .tags span:first-child {
    /* Remove the special styling */
    color: var(--primary);
    border-color: var(--primary);
}

/* Video types - REMOVING LEFT BORDERS */
.video-item.ar {
    /* Remove the left border */
    border-left: none;
}

.video-item.web-ar {
    /* Remove the left border */
    border-left: none;
}

.video-item.vr {
    /* Remove the left border */
    border-left: none;
}

.video-item.ai {
    /* Remove the left border */
    border-left: none;
}

.video-item.other {
    /* Remove the left border */
    border-left: none;
}

/* About section styles have been removed */

/* Contact section */
#contact {
    padding: 120px 20px 80px; /* Increased top padding */
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 40px; /* Add space above */
}

#contact .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px; /* Increased from 20px */
    position: relative;
    padding-bottom: 20px; /* Add padding here too */
}

#contact .section-title::after {
    /* Remove this duplicate style to prevent conflicts */
    display: none;
}

#contact .intro-bio {
    max-width: 600px;
    margin: 0 auto 30px;
}

#contact .intro-bio p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
    max-width: 600px; /* Prevent excessively long text lines */
}

#contact .contact-info {
    margin-bottom: 40px;
}

#contact .contact-info p {
    margin-bottom: 8px;
    font-size: 1rem;
}

#contact .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

#contact .social-link {
    display: inline-block;
    background-color: rgba(0, 166, 255, 0.1);
    color: var(--text);
    padding: 12px 25px;
    border-radius: 50px;
    margin: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 166, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

#contact .social-link:hover {
    background-color: rgba(0, 166, 255, 0.2);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

#contact .social-link.linkedin {
    border-color: rgba(0, 119, 181, 0.3);
}

#contact .social-link.instagram {
    border-color: rgba(195, 42, 163, 0.3);
}

#contact .social-link.snapchat {
    border-color: rgba(255, 252, 0, 0.3);
}

#contact .social-link.tiktok {
    border-color: rgba(0, 0, 0, 0.3);
}

#contact .social-link.linkedin:hover {
    background-color: rgba(0, 119, 181, 0.1);
    border-color: rgba(0, 119, 181, 0.6);
}

#contact .social-link.instagram:hover {
    background-color: rgba(195, 42, 163, 0.1);
    border-color: rgba(195, 42, 163, 0.6);
}

#contact .social-link.snapchat:hover {
    background-color: rgba(255, 252, 0, 0.1);
    border-color: rgba(255, 252, 0, 0.6);
}

#contact .social-link.tiktok:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
    background-color: rgba(5, 5, 10, 0.9);
    color: var(--text);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive design */
@media (max-width: 992px) {
    .gallery-heading h1 {
        font-size: 2.5rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        padding: 0 20px;
        gap: 20px;
    }
    
    .intro-image {
        width: 350px;
        height: 350px;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .gallery-heading {
        padding: 40px 20px;
    }
    
    .gallery-heading h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .contact-text p {
        font-size: 1rem;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        margin-bottom: 40px;
        font-size: 2.2rem;
    }
    
    .platform-tabs-section {
        padding: 60px 20px 60px;
    }
    
    .section-divider {
        margin: 60px 0;
    }
    
    #contact {
        padding: 80px 15px 60px;
    }
    
    .intro-image {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .gallery-heading {
        padding: 30px 20px;
    }
    
    .gallery-heading h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        aspect-ratio: 4 / 3;
    }
    
    .video-container.portrait {
        aspect-ratio: 9 / 16;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .intro-image {
        width: 240px;
        height: 240px;
    }
    
    .intro-image {
        border-width: 4px;
    }
}

/* Section titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--light);
    margin-top: 40px;
    margin-bottom: 60px;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(
        90deg,
        var(--light) 0%,
        var(--primary) 50%,
        var(--accent) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    padding-bottom: 20px; /* Add padding to create space for the underline */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; /* Changed from -10px to 0 */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

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

/* Improve intro section overall layout and centering */
.intro-section {
    height: auto;
    min-height: 100vh;
    padding: 80px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.intro-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 150px);
}

/* Perfect alignment for intro content */
.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* Adjust text container for better balance */
.intro-text {
    flex: 1;
    max-width: 600px;
    padding-left: 20px;
}

.intro-greeting {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.wave-emoji {
    font-size: 1.8rem;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 10;
}

.wave-emoji.waving {
    /* Use a custom bezier for smoother easing and slightly longer duration */
    animation: wave 2s infinite cubic-bezier(0.455, 0.030, 0.515, 0.955);
}

.shimmer-effect {
    display: none !important;
    content: none !important;
    background: none !important;
    animation: none !important;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(14deg); } /* Slightly less rotation */
    50% { transform: rotate(-8deg); } /* Slightly less rotation */
    75% { transform: rotate(14deg); } /* Slightly less rotation */
    100% { transform: rotate(0deg); }
}

.wave-emoji.waving {
    /* Use a custom bezier for smoother easing and slightly longer duration */
    animation: wave 2s infinite cubic-bezier(0.455, 0.030, 0.515, 0.955);
}

.intro-greeting h1 {
    font-size: 3.5rem;
    color: var(--light);
}

.job-title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.location, .company {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.location-icon, .company-icon, .flag {
    margin-right: 10px;
    vertical-align: middle; /* Align emojis better with text */
}

/* Add left margin specifically to the flag to create space */
.flag {
    margin-left: 6px; /* Adjust this value as needed for desired spacing */
}

.intro-bio {
    margin-top: 25px;
}

.intro-bio p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
    max-width: 600px;
}

/* Platform Tabs Section */
.platform-tabs-section {
    padding: 60px 20px 80px;
    margin-top: 40px;
    background-color: var(--dark);
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.platform-tabs-section .section-title {
    margin-top: 0;
}

.platform-tabs-section .section-title::after {
    /* Remove this duplicate style to prevent conflicts */
    display: none;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    flex-wrap: wrap;
    padding: 0 10px;
}

.platform-tab {
    background-color: transparent;
    color: var(--text);
    border: 2px solid rgba(0, 166, 255, 0.2);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.platform-tab:hover {
    background-color: rgba(0, 166, 255, 0.1);
    color: var(--primary);
}

.platform-tab.active {
    background-color: rgba(0, 166, 255, 0.2);
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.platform-panel {
    display: none;
}

.platform-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.platform-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.platform-info h3 {
    font-size: 1.8rem;
    color: var(--light);
    margin-bottom: 10px;
}

.platform-info p {
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.9;
}

/* Responsive adjustments for the improved layout */
@media (max-width: 1200px) {
    .intro-container {
        padding: 0 30px;
    }
    
    .intro-image {
        flex: 0 0 350px;
        height: 350px;
        min-width: 330px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .intro-container {
        padding: 30px 20px;
    }
    
    .intro-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .intro-image {
        margin-right: 0;
        flex: 0 0 350px;
        height: 350px;
        width: 350px;
        min-width: 350px;
        aspect-ratio: 1/1;
    }
    
    .intro-text {
        padding-left: 0;
        max-width: 100%;
    }
    
    .intro-greeting {
        justify-content: center;
    }
    
    .location, .company {
        justify-content: center;
    }
    
    .intro-bio p {
        margin: 0 auto 15px;
    }
    
    .job-title {
        font-size: 1.8rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .intro-container {
        padding: 20px 15px;
    }
    
    .intro-section {
        padding: 40px 0 60px;
        height: auto;
        min-height: auto;
    }
    
    .intro-greeting h1 {
        font-size: 2.6rem;
    }
    
    .intro-image {
        flex: 0 0 280px;
        height: 280px;
        width: 280px;
        min-width: 280px;
        aspect-ratio: 1/1;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 25px;
        padding: 0 15px;
    }
    
    .platform-tabs {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .platform-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .intro-greeting h1 {
        font-size: 2rem;
    }
    
    .job-title {
        font-size: 1.4rem;
    }
    
    .intro-image {
        flex: 0 0 240px;
        height: 240px;
        width: 240px;
        min-width: 240px;
        border-width: 4px;
        aspect-ratio: 1/1;
    }
    
    .intro-bio p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .platform-tabs {
        gap: 8px;
    }
    
    .platform-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .platform-info h3 {
        font-size: 1.4rem;
    }
    
    .platform-info p {
        font-size: 0.95rem;
    }
    
    .location, .company {
        font-size: 1rem;
    }
}

/* Fix to ensure videos load correctly in each tab panel */
.platform-panel.active video {
    opacity: 1;
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.video-container.portrait {
    aspect-ratio: 9/16;
}

.video-container.portrait video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure contact section is properly spaced */
#contact {
    padding: 120px 20px 80px; /* Increased top padding */
}

@media (max-width: 768px) {
    #contact {
        padding: 80px 15px 60px;
    }
    
    #contact .social-links {
        gap: 10px;
    }
    
    #contact .social-link {
        padding: 10px 20px;
        min-width: 130px;
        margin: 5px;
    }
}

/* Section transitions */
.section {
    position: relative;
}

/* Gradient overlays for section transitions */
.section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(10, 10, 20, 0), var(--dark));
    z-index: 1;
    pointer-events: none;
}

/* Section divider */
.section-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 80px 0;
    opacity: 0.3;
    clear: both;
}

/* Removed View Work button styles */

/* Scroll down arrow - fix positioning */
.scroll-arrow {
    position: absolute;
    bottom: -50px; /* Position it below the content container */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.arrow-down {
    width: 15px;
    height: 15px;
    border-right: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    transform: rotate(45deg);
    opacity: 1; /* Increased from 0.8 for better visibility */
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;
}

/* Maintain our fixed arrow animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Fix scroll arrow positioning for mobile - keep it below content */
@media (max-width: 768px) {
    .scroll-arrow {
        bottom: -50px; /* Increased to ensure it's below content on mobile */
    }
    
    .arrow-down {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
}

/* Add gold reflection to image */
.intro-image::after {
    display: none !important;
    content: none !important;
    background: none !important;
    animation: none !important;
}

@keyframes reflection {
    /* Empty to override anything else */
}

/* Improve video item hover effect */
.video-item::before {
    display: none !important;
}

/* Smoother diagonal animation with GPU acceleration */
@keyframes smooth-diagonal-shine {
    /* Empty to override anything else */
}

/* Remove old shimmer implementation */
@keyframes diagonal-shine {
    /* Empty to override anything else */
}

@keyframes shine-effect {
    /* Empty to override anything else */
}

/* Fix for sections to ensure proper spacing */
.platform-tabs-section {
    padding: 60px 20px 80px;
}

.section-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 80px 0;
    opacity: 0.3;
    clear: both;
}

/* Fix for intro bio text */
.intro-bio p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
    max-width: 600px; /* Prevent excessively long text lines */
}

@media (max-width: 992px) {
    .intro-bio p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Fix for the shimmer effect */
.shimmer-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 166, 255, 0.5) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    mix-blend-mode: overlay;
    animation: shimmer 1s linear forwards;
}

/* Fix scroll arrow positioning for mobile */
@media (max-width: 768px) {
    .arrow-down {
        border-right: 2px solid var(--primary);
        border-bottom: 2px solid var(--primary);
    }
}

/* Social links updates */
#contact .social-link {
    display: inline-block;
    background-color: rgba(0, 166, 255, 0.1);
    color: var(--text);
    padding: 12px 25px;
    border-radius: 50px;
    margin: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 166, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

#contact .social-link:hover {
    background-color: rgba(0, 166, 255, 0.2);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Fix for focus outline on interactive elements */
a:focus, button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Make sure all shimmer animations are disabled */
@keyframes smooth-diagonal-shine {
    /* Empty to override anything else */
}

@keyframes diagonal-shine {
    /* Empty to override anything else */
}

@keyframes shine-effect {
    /* Empty to override anything else */
}

/* Clean up any leftover shimmer effects */
.shimmer-overlay {
    display: none !important;
}

/* Video loading spinner */
.video-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: none;
}

/* Video error message */
.video-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b6b;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    z-index: 6;
    text-align: center;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mute button styles - Updated */
.mute-button {
    position: absolute;
    bottom: 15px; /* Changed from top to bottom */
    right: 15px;
    background: rgba(255, 255, 255, 0.8); /* White semi-transparent background */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border */
    border-radius: 50%;
    width: 36px; /* Slightly larger */
    height: 36px;
    color: #333; /* Darker icon color */
    font-size: 18px; /* Adjusted icon size */
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
    padding: 0; /* Remove any padding that might affect icon positioning */
}

/* Style for the icon images inside the button */
.mute-icon {
    width: 18px; /* Size of the icon */
    height: 18px;
    display: block; /* Ensure proper display */
    object-fit: contain; /* Maintain aspect ratio */
}

.mute-button:hover {
    background: rgba(255, 255, 255, 1); /* Solid white on hover */
    transform: scale(1.05); /* Keep slight scale */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Style for when unmuted - could make icon slightly bolder or change background subtly */
.mute-button.unmuted {
    /* Maybe slightly less transparent or a different icon color if needed */
     background: rgba(255, 255, 255, 0.9);
}

.mute-button.unmuted:hover {
    background: rgba(255, 255, 255, 1);
}

/* Ensure video container has relative positioning for absolute mute button */
.video-container {
    position: relative;
} 