/* Custom styles */
/* Full height sections */
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 80px; /* Add padding to body to account for fixed navbar */
    color: #1f2937; /* Default text color similar to Tailwind's gray-800 */
}

section {
    min-height: calc(100vh - 80px); /* Subtract navbar height from section height */
    padding-top: 2rem; /* Reduced padding since we're handling space with body padding */
    margin-top: 0; /* Remove negative margin */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    position: relative;
    scroll-margin-top: 80px; /* Match body padding for proper scroll positioning */
}

/* iPhone frame styling */
.iphone-frame {
    position: relative;
    width: 300px;
    margin: 0 auto;
    border-radius: 40px;
    background-color: #000;
    padding: 12px;
    padding-top: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Home indicator */
.iphone-frame::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 4px;
    background-color: #555;
    border-radius: 4px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Status bar */
.iphone-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 10px;
    background-color: #000;
    border-radius: 0 0 15px 15px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.iphone-frame img {
    display: block;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
}

/* Portfolio slide styles */
.portfolio-slide {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    flex: 0 0 100%;
}

.portfolio-slide.active {
    opacity: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .portfolio-slide.active {
        flex-direction: row;
        align-items: center;
    }
}

.portfolio-details {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.portfolio-details.active {
    display: block;
    opacity: 1;
}

/* Slide indicators */
.slide-indicator {
    transition: all 0.3s ease;
    opacity: 0.5;
    width: 16px;
    height: 16px;
    background-color: rgba(100, 100, 100, 0.5);
}

.slide-indicator.active {
    opacity: 1;
    background-color: #374151; /* Darker gray */
    transform: scale(1.2);
}

/* Tubelight Navbar Styles */
.tubelight-navbar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    z-index: 100;
}

.tubelight-navbar a {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    z-index: 1;
    color: #6b7280; /* Default text color */
    text-decoration: none;
}

.tubelight-navbar a.active {
    color: #111827; /* Darker color when active */
    font-weight: 600;
}

.tubelight-indicator {
    position: absolute;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: rgba(243, 244, 246, 0.9);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    z-index: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    top: 0.5rem; /* Position vertically centered */
}

.tubelight-navbar a:hover {
    color: #111827;
}

/* Glow effect for the indicator */
.tubelight-indicator::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, rgba(243, 244, 246, 0.6), rgba(243, 244, 246, 0.1));
    border-radius: 9999px;
    z-index: -1;
    filter: blur(2px);
}

/* Fixed navbar on scroll */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 0.75rem 0;
}

/* Carousel container */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 5rem; /* Increased padding for indicators */
}

.carousel-slides {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Social media icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #e5e7eb;
    transform: scale(1.1);
}

.social-icon:hover img {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Less padding on mobile */
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    section {
        padding-top: 1rem;
        min-height: calc(100vh - 60px);
        scroll-margin-top: 60px;
    }
    
    #portfolio img {
        max-height: 30vh;
    }
    
    .iphone-frame {
        width: 240px;
        padding: 10px;
        padding-top: 14px;
    }
    
    .iphone-frame::before {
        width: 100px;
        height: 3px;
        bottom: 6px;
    }
    
    .iphone-frame::after {
        width: 50px;
        height: 8px;
    }
    
    .iphone-frame img {
        border-radius: 22px;
    }
    
    .slide-indicator {
        width: 12px;
        height: 12px;
    }
    
    .tubelight-navbar {
        width: fit-content;
        max-width: 90%;
        overflow-x: auto;
        padding: 0.5rem 1rem;
        gap: 1rem;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
        position: relative;
        margin: 0 auto;
    }
    
    .tubelight-navbar::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome, Safari and Opera */
    }
    
    .tubelight-navbar a {
        white-space: nowrap;
        padding: 0.5rem 0.5rem;
    }
    
    /* Ensure indicator is visible on mobile */
    .tubelight-indicator {
        display: block !important;
    }
}

html {
    scroll-behavior: smooth;
} 