/* ===================================================
   OLAOLUWA AKINLOTAN - HOMEPAGE STYLES
   Modern Portfolio with IT Background Images
   =================================================== */

/* ===== Color Variables ===== */
:root {
    --primary-dark: #050608;
    --primary-mid: #0b2545;
    --primary-light: #123a6b;
    --accent-cyan: #00b5ff; /* bright cyan/blue */
    --accent-blue: #1e90ff;
    --accent-gold: #f59e0b;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --overlay-dark: rgba(15, 12, 41, 0.85);
    --overlay-gradient: linear-gradient(135deg, rgba(15, 12, 41, 0.88) 0%, rgba(48, 43, 99, 0.82) 100%);
}

/* ===== Hero Section with Image Slider ===== */
.hero-custom {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== Background Image Slider ===== */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-mid);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    animation: zoomIn 8s ease-in-out forwards;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* IT-Related Background Images from Unsplash */
.hero-slide-1 {
    /* Professional blue-technology hero */
    background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2100&q=80');
}

.hero-slide-2 {
    /* Abstract tech lines */
    background-image: url('https://images.unsplash.com/photo-1502880195258-9b7a3b8f1b69?ixlib=rb-4.0.3&auto=format&fit=crop&w=2100&q=80');
}

.hero-slide-3 {
    /* Subtle circuitry / mesh */
    background-image: url('https://images.unsplash.com/photo-1526378723979-8f7a6a3e1f3c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2100&q=80');
}

.hero-slide-4 {
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2072&q=80');
}

.hero-slide-5 {
    background-image: url('https://images.unsplash.com/photo-1504639725590-34d0984388bd?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80');
}

/* Dark Overlay */
.hero-overlay {
    /* Overlay removed for a more natural background flow; keep layer for potential future use */
    display: none;
}

/* ===== Slide Indicators ===== */
.slide-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slide-indicator.active {
    background: var(--accent-cyan);
    border-color: var(--text-white);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent-cyan);
}

/* ===== OA Logo Design ===== */
.logo-container {
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.logo-monogram {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 0 50px rgba(0, 181, 255, 0.45),
                0 0 80px rgba(30, 144, 255, 0.22);
    animation: logoPulse 3s ease-in-out infinite alternate;
}

.logo-monogram::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-gold));
    z-index: -1;
    animation: rotateBorder 6s linear infinite;
}

.logo-monogram::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    z-index: 0;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoPulse {
    from {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.5),
                    0 0 80px rgba(124, 58, 237, 0.3);
    }
    to {
        box-shadow: 0 0 70px rgba(0, 212, 255, 0.7),
                    0 0 100px rgba(124, 58, 237, 0.5);
    }
}

.logo-initials {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 18px rgba(0, 181, 255, 0.6);
}

.logo-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* ===== Hero Content ===== */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* Typing Effect */
.typing-wrapper {
    display: inline-block;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--accent-cyan);
    white-space: nowrap;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-cyan); }
}

/* ===== CTA Buttons ===== */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 181, 255, 0.28);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.5);
    color: var(--text-white);
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    background: transparent;
    border: 2px solid var(--accent-cyan);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
}

/* ===== Social Links ===== */
.hero-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    font-size: 1.3rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-social a:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

/* ===== Tech Stack ===== */
.tech-stack {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-item i {
    font-size: 2rem;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.tech-item:hover {
    color: var(--text-white);
    transform: translateY(-3px);
}

.tech-item:hover i {
    color: var(--accent-blue);
    text-shadow: 0 0 20px var(--accent-blue);
}

/* ===== Profile card (left column) ===== */
.profile-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11,37,69,0.25), rgba(5,6,8,0.6));
    box-shadow: 0 30px 60px rgba(10,20,40,0.45);
}
.profile-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    filter: saturate(0.98) contrast(1.02);
}
.profile-overlay {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    background: linear-gradient(180deg, rgba(3,8,20,0.0), rgba(0,0,0,0.55));
    padding: 18px;
    border-radius: 12px;
    color: var(--text-white);
}
.profile-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.profile-title {
    margin: 4px 0 10px 0;
    color: rgba(255,255,255,0.85);
}
.profile-actions {
    display: flex;
    gap: 10px;
}
.profile-actions .btn-primary-custom,
.profile-actions .btn-secondary-custom {
    padding: 10px 18px;
    font-size: 0.95rem;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

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

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 0.8s ease forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease forwards;
}

/* Animation Delays */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }
.delay-7 { animation-delay: 1.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .logo-monogram {
        width: 120px;
        height: 120px;
    }
    
    .logo-initials {
        font-size: 2.8rem;
    }
    
    .slide-indicators {
        bottom: 80px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .logo-monogram {
        width: 100px;
        height: 100px;
    }
    
    .logo-initials {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .tech-stack {
        gap: 1.5rem;
    }
    
    .tech-item i {
        font-size: 1.6rem;
    }
    
    .slide-indicators {
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo-monogram {
        width: 85px;
        height: 85px;
    }
    
    .logo-initials {
        font-size: 1.8rem;
    }
    
    .logo-name {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
    
    .hero-social a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .slide-indicators {
        bottom: 60px;
        gap: 8px;
    }
    
    .slide-indicator {
        width: 10px;
        height: 10px;
    }
}
