/* ==========================================================
   The IdeaGen Technologies & Sainath Reddy
   Custom Stylesheet (Premium Redesign)
   ========================================================== */

:root {
    /* Brand Overrides for Premium Aesthetic */
    --primary: #1d4ed8;       /* Prestigious Cobalt Sapphire */
    --primary-dark: #1e40af;
    --secondary: #0f172a;
    --heading: #030712;       /* Clean Slate Black */
    --text: #475569;          /* Softer text grey */
    --border: #f1f5f9;        /* Soft Border */
    
    /* Dark Theme Variables */
    --dark-blue: #030712;     /* Midnight Space Navy */
    --navy-blue: #090d16;     /* Deep Slate Secondary */
    --light-navy: #111827;    /* Slate Dark Card Background */
    --accent-blue: #3b82f6;   /* Electric Cyber Blue Accent */
    --accent-glow: rgba(59, 130, 246, 0.12);
    --border-light: rgba(255, 255, 255, 0.06);
    --text-dark: #030712;
    --text-light: #f9fafb;
    --text-muted-dark: #64748b;
    --text-muted-light: #94a3b8;
}

/* ==========================================
   GLOBAL & LAYOUT OVERRIDES & PREMIUM TWEAKS
   ========================================== */
body {
    background-color: var(--white);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Card Upgrades */
.card, .project-card {
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.card:hover, .project-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px -15px rgba(2, 6, 23, 0.08) !important;
    border-color: rgba(29, 78, 216, 0.15) !important;
}

/* Premium Button Upgrades */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(29, 78, 216, 0.15) !important;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 rgba(29, 78, 216, 0.3) !important;
}

.btn-secondary {
    border-radius: 8px !important;
}

/* Premium Dark Sections */
.bg-premium-dark {
    background-color: var(--dark-blue);
    background-image: linear-gradient(to bottom, rgba(10, 25, 47, 0.82), rgba(10, 25, 47, 0.95)), url('../projects/cyber_hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
}

.bg-premium-dark h1,
.bg-premium-dark h2,
.bg-premium-dark h3,
.bg-premium-dark h4,
.bg-premium-dark h5,
.bg-premium-dark h6 {
    color: var(--white);
}

.bg-premium-dark p {
    color: var(--text-muted-light);
}

/* Section Spacing Adjustments */
.section-padding {
    padding: var(--space-8) 0;
}

/* ==========================================
   NAVBAR (STICKY GLASSMORPHIC)
   ========================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header-nav.bg-dark-nav {
    background: rgba(10, 25, 47, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--heading);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hamburger mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--heading);
    border-radius: 3px;
    transition: 0.3s ease;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 35px;
        transition: 0.4s ease;
        box-shadow: var(--shadow-md);
    }
    .nav-menu.active {
        left: 0;
    }
}

/* ==========================================
   TRUSTED MARQUEE CAROUSEL
   ========================================== */
.marquee-container {
    overflow: hidden;
    padding: 30px 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--background), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--background), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    gap: 60px;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 140px;
}

.marquee-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s ease;
}

.marquee-item:hover img {
    filter: none;
    opacity: 1;
}

/* ==========================================
   INTERACTIVE CYBER TERMINAL
   ========================================== */
.terminal-wrapper {
    background: #050a12;
    border: 1px solid #1e2d4a;
    border-radius: var(--radius-md);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: #0f1a2e;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e2d4a;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    color: #4b5d78;
    font-size: 13px;
    font-weight: bold;
}

.terminal-body {
    padding: 25px;
    height: 380px;
    overflow-y: auto;
    color: #38bdf8;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 10px;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-prompt {
    color: #4ade80;
    font-weight: bold;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

/* ==========================================
   PORTFOLIO AND CARDS
   ========================================== */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.portfolio-tab-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid var(--border);
    font-weight: 700;
    cursor: pointer;
    background: var(--white);
    color: var(--heading);
    transition: 0.3s ease;
}

.portfolio-tab-btn.active,
.portfolio-tab-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    display: none;
}

.portfolio-card.show {
    display: block;
}

.project-tag {
    background: #EFF6FF;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

/* ==========================================
   TIMELINE (LEARNING AND RECOGNITIONS)
   ========================================== */
.custom-timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding-left: 50px;
}

.custom-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 5px;
    height: calc(100% - 30px);
    width: 3px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot-indicator {
    position: absolute;
    left: -50px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    z-index: 2;
}

.timeline-content-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Minimal timeline style for Recognitions */
.minimal-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.minimal-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.minimal-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.minimal-timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}

.minimal-timeline-step:hover .minimal-timeline-dot {
    background: var(--primary);
    color: var(--white);
}

.minimal-timeline-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .minimal-timeline {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
        padding-left: 40px;
    }
    .minimal-timeline::before {
        top: 0;
        bottom: 0;
        left: 20px;
        width: 2px;
        height: 100%;
    }
    .minimal-timeline-step {
        flex-direction: row;
        gap: 20px;
    }
}

/* ==========================================
   ACCORDIONS (FAQS)
   ========================================== */
.accordion-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
}

.accordion-icon {
    font-size: 18px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-content p {
    padding: 15px 0 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* ==========================================
   MASONRY GALLERY
   ========================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--background);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    background: var(--white);
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
    border-top: 1px solid var(--border);
}

@media (max-width: 991px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .gallery-masonry {
        column-count: 1;
    }
}

/* ==========================================
   LIGHTBOX MODAL
   ========================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 80%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: var(--white);
    font-size: 35px;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-caption {
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================
   JOURNEY SECTION AND SIDEBAR
   ========================================== */
.journey-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 50px;
}

.journey-content {
    line-height: 1.8;
}

.journey-content p {
    font-size: 16px;
    margin-bottom: 25px;
    text-align: justify;
}

.journey-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    font-style: italic;
    font-size: 20px;
    color: var(--heading);
    margin: 35px 0;
}

.journey-sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.profile-avatar-wrapper {
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}
.profile-avatar-wrapper img {
    width: 100%;
    display: block;
    transform: scale(1.08); /* Zooms photo to crop bottom */
    transform-origin: top center; /* Focuses zoom on face and crops bottom portion */
    transition: transform 0.3s ease;
}
.profile-avatar-wrapper:hover img {
    transform: scale(1.12); /* Interactive hover zoom */
}

.profile-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
}

.profile-subtitle {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 700;
}

.profile-info-value {
    font-size: 15px;
    color: var(--heading);
    font-weight: 600;
}

@media (max-width: 991px) {
    .journey-grid {
        grid-template-columns: 1fr;
    }
    .journey-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

/* ==========================================
   TESTIMONIALS CAROUSEL
   ========================================== */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-card-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.testimonial-meta h5 {
    font-size: 16px;
    margin-bottom: 2px;
}

.testimonial-meta span {
    font-size: 13px;
    color: var(--muted);
}

/* ==========================================
   INPUTS AND CONTACT FORMS
   ========================================== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--heading);
    transition: 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 45px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FOOTER STYLING
   ========================================== */
.footer-link {
    color: var(--text-muted-light) !important;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-blue) !important;
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted-light);
    font-size: 14px;
}

.footer-contact-item i {
    color: var(--accent-blue);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Logo Company Name Styling */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text-title {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.header-nav.bg-dark-nav .logo-text-title {
    color: var(--white) !important;
}

.logo-text-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 3.5px;
    line-height: 1;
    margin-top: 2px;
}

/* ==========================================
   SCROLLING TESTIMONIALS
   ========================================== */
.testimonial-scroller-row {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.testimonial-scroller-track {
    display: flex;
    width: max-content;
    gap: 30px;
}

.left-scroll .testimonial-scroller-track {
    animation: testimonialScrollLeft 60s linear infinite;
}

.right-scroll .testimonial-scroller-track {
    animation: testimonialScrollRight 60s linear infinite;
}

.testimonial-scroller-row:hover .testimonial-scroller-track {
    animation-play-state: paused;
}

.testimonial-card-scroll {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px;
    width: 420px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-header-scroll {
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.testimonial-logo-scroll {
    height: 35px;
    width: 35px;
    object-fit: contain;
    border-radius: 4px;
}

.testimonial-title-scroll {
    font-size: 15px;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 2px;
}

.testimonial-sub-scroll {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.testimonial-quote-scroll {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

@keyframes testimonialScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes testimonialScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


