/* Custom TechCrux Styling */

/* Background images for sections */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

#intro {
    background-color: #1a1a2e;
    position: relative;
}

#intro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../../images/my-studio-pix.JPG');
    background-size: contain;
    background-position: right top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

@media screen and (max-width: 980px) {
    #intro::after {
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        opacity: 0.2;
    }
}

#intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.85);
}

#intro .inner {
    position: relative;
    z-index: 1;
}

.wrapper.style1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    position: relative;
}

.wrapper.style1::before {
    display: none;
}

.wrapper.style1 .inner {
    position: relative;
    z-index: 1;
}

.wrapper.style3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    background-attachment: fixed;
}

.wrapper.style3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.15);
}

.wrapper.style3 .inner {
    position: relative;
    z-index: 1;
}

/* Enhanced typography */
h1 {
    font-size: 3.5em !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700 !important;
}

h2 {
    font-size: 2.2em !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 600 !important;
}

h3 {
    font-size: 1.4em !important;
    font-weight: 600 !important;
}

p {
    font-size: 1.15em !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

@media screen and (max-width: 736px) {
    h1 {
        font-size: 2em !important;
    }
    h2 {
        font-size: 1.5em !important;
    }
    h3 {
        font-size: 1.1em !important;
    }
    p {
        font-size: 1em !important;
    }
}

/* Sidebar enhancement */
#sidebar {
    background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
}

#sidebar nav a {
    font-weight: 800 !important;
    font-size: 0.7em !important;
    letter-spacing: 0.3em !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

#sidebar nav a:hover {
    color: #60a5fa !important;
}

#sidebar nav a.active {
    color: #60a5fa !important;
}

#sidebar nav a:before {
    background: #1e293b !important;
}

#sidebar nav a:after {
    background-image: linear-gradient(to right, #3b82f6, #60a5fa) !important;
}

/* Button enhancements */
.button {
    background: linear-gradient(135deg, #5e42a6 0%, #b74e91 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(183, 78, 145, 0.4);
    transition: all 0.3s ease !important;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 78, 145, 0.6);
}

/* Feature cards enhancement */
.features section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.features section:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

/* Spotlight sections */
.spotlights > section {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 500px;
}

.spotlights > section > .image {
    width: 50% !important;
    flex: 0 0 50%;
}

.spotlights > section > .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlights > section > .content {
    width: 50% !important;
    flex: 0 0 50%;
    background: transparent !important;
    padding: 4em 5em 2em 5em;
}

.spotlights > section:nth-child(even) {
    flex-direction: row-reverse !important;
}

@media screen and (max-width: 980px) {
    .spotlights > section {
        display: block !important;
        min-height: auto;
    }
    
    .spotlights > section > .image {
        width: 100% !important;
        height: 50vh !important;
        min-height: 300px;
    }
    
    .spotlights > section > .content {
        width: 100% !important;
        background: rgba(30, 20, 50, 0.9) !important;
        padding: 2em 1.5em 1em 1.5em !important;
    }
}

/* Form inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-size: 1.05em !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #b74e91 !important;
    box-shadow: 0 0 0 2px rgba(183, 78, 145, 0.3) !important;
}

/* Icon enhancements */
.icon.major {
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    width: 2.5em !important;
    height: 2.5em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    margin: 0 0 1em 0 !important;
    font-size: 1em !important;
    line-height: 1 !important;
}

.icon.major:before {
    display: none;
}

/* Footer */
#footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
}

/* Mobile responsive fixes */
@media screen and (max-width: 980px) {
    .wrapper.style1::before,
    .wrapper.style3::before {
        background-attachment: scroll;
    }
    
    #intro::before {
        background: rgba(10, 10, 20, 0.8);
    }
}

@media screen and (max-width: 736px) {
    /* Mobile navigation - make sidebar visible */
    #sidebar {
        display: block !important;
        height: auto !important;
        position: relative !important;
        width: 100% !important;
        padding: 1em 0 !important;
        background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
    }
    
    #sidebar .inner {
        display: block !important;
        min-height: auto !important;
    }
    
    #sidebar nav ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 0.4em !important;
        padding: 0 1em;
    }
    
    #sidebar nav ul li {
        margin: 0 !important;
        display: inline-block !important;
        flex: 0 0 auto;
    }
    
    #sidebar nav a {
        padding: 0.5em 1em !important;
        font-size: 0.55em !important;
        background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
        border-radius: 1.2em;
        display: inline-block;
        width: auto !important;
        letter-spacing: 0.2em !important;
        white-space: nowrap;
    }
    
    .button {
        width: 100%;
        display: block;
        margin: 0.5em 0 !important;
        font-size: 0.7em !important;
    }
    
    .actions {
        display: block !important;
    }
    
    .actions li {
        display: block;
        width: 100%;
        margin: 0.5em 0 !important;
    }
    
    /* Fix spotlight images on mobile */
    .spotlights > section > .image {
        height: 40vh !important;
        min-height: 250px !important;
    }
    
    .spotlights > section > .content {
        padding: 2em 1.5em 1em 1.5em !important;
    }
}
