/* Custom Properties */
:root {
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --color-primary: #0066cc;
    --color-secondary: #50E3C2;
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --color-text: #333333;
    --transition-smooth: all 0.3s ease-in-out;
    --gradient-primary: linear-gradient(90deg, #4A90E2, #50E3C2);
    --gradient-text: linear-gradient(135deg, #4A90E2 0%, #50E3C2 100%);
}

/* General Styles */
body {
    font-family: var(--font-primary), -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    padding-top: 76px;
}

/* Hero Section */
.hero {
    background-image: url('../images/hero-pattern.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    height: 100vh;
    margin-top: -72px; /* Offset for fixed navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.2s;
}

.hero .btn-primary {
    background-color: var(--color-primary);
    border: none;
}

.navbar {
    background-color: var(--color-primary);
    padding: 1rem 0;
}

/* Enhanced navbar toggler for better mobile visibility */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    color: white;
    margin-right: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1050;
    border: 2px solid white;
}

/* iOS specific enhancements */
@supports (-webkit-touch-callout: none) {
    .navbar-toggler {
        border: 2px solid white;
        background-color: rgba(0, 102, 204, 0.8); /* Match your primary color */
        padding: 8px 12px;
        margin-top: 5px;
        margin-bottom: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Fix spacing after span elements */
.session-list span:after,
.content-cell span:after,
.schedule-table span:after,
.card-body span:after,
td span:after,
li span:after,
p span:after,
h1 span:after,
h2 span:after,
h3 span:after,
h4 span:after,
h5 span:after,
h6 span:after {
    content: ' ';
    white-space: pre;
    display: inline;
}

/* Custom toggler icon specifically for iOS */
@supports (-webkit-touch-callout: none) {
    .custom-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 2em;
        height: 2em;
    }
    
    /* Add a text label for the menu on iOS */
    .custom-toggler::after {
        content: 'Menu';
        display: block;
        color: white;
        font-size: 12px;
        margin-top: 2px;
        text-align: center;
    }
}

.navbar-collapse {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .navbar-nav {
        background-color: var(--color-primary);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.25rem;
        color: white !important;
        font-weight: 500;
        display: block;
        margin: 2px 0;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .navbar-collapse.show {
        background-color: var(--color-primary);
        padding: 10px;
        border-radius: 0 0 8px 8px;
    }
}

.hero .btn-outline-light {
    border: 2px solid white;
    background-color: transparent;
}

.hero .btn:hover {
    transform: translateY(-2px);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Case Studies Section */
#case-studies {
    padding: 80px 0;
}

#case-studies .row {
    justify-content: center;
    gap: 40px;
}

#case-studies .col-md-4 {
    max-width: 400px;
}

#case-studies .card {
    border: none;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.card-img-container {
    position: relative;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-img-container:hover .video-overlay {
    opacity: 1;
}

.btn-play {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-play:hover {
    transform: scale(1.05);
    background: var(--color-primary);
    color: white;
}

.btn-play i {
    margin-right: 8px;
}

/* Success message styles */
#successMessage {
  transition: opacity 0.5s ease-in-out;
}

/* Internship Page Styles */
.internship-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.highlight-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.highlight-card h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gain-card {
    padding: 2rem;
    height: 100%;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.gain-card:hover {
    border-color: var(--color-primary);
}

.gain-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.application-steps {
    position: relative;
}

.step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.step p {
    margin-bottom: 0;
    opacity: 0.9;
}

.hero-graphics {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    filter: blur(40px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
    animation: float 12s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* Cards */
.card {
    border: none;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: none !important;
    transform: none !important;
}

.card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.card p {
    color: var(--color-text);
    line-height: 1.6;
}

.card .badge {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #2575EA, #009E72) !important;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: none !important;
    transform: none !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #50E3C2);
    z-index: 2;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

/* Case Study Cards */
#case-studies .card {
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

#case-studies .card-body {
    background: #ffff;
    backdrop-filter: blur(5px);
    width: 100%;
    padding: 2rem;
    transform: translateY(60%);
    transition: transform 0.3s ease;
}

#case-studies .card:hover .card-body {
    transform: translateY(0);
}

#case-studies .card:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1573164713714-d95e436ab8d6?auto=format&fit=crop&w=800&q=80');
}

#case-studies .card:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=800&q=80');
}

#case-studies .card:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=800&q=80');
}

.card:hover {
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 0.8rem;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: #007bff;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px;
    }
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    color: var(--color-dark) !important;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

/* Buttons */
.btn {
    border-radius: 0;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Section Headers */
section h2 {
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #007bff;
}

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

.card, .contact-info {
    animation: fadeIn 1s ease-out;
}

/* Training Page Styles */
.training-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--color-secondary);
}

.benefits-section {
    background: #f8f9fa;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.schedule-table {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 2rem;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.schedule-table th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.schedule-table td {
    vertical-align: top;
}

.schedule-table .time-cell {
    width: 130px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    font-size: 0.95rem;
}

.schedule-table .content-cell {
    width: calc(100% - 130px);
}

.schedule-table .content-cell h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.schedule-table .content-cell .highlight {
    font-weight: 600;
    color: var(--color-primary);
}

.schedule-table .break-row {
    background: #f8f9fa;
    text-align: center;
    color: var(--color-primary);
    font-weight: 500;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.session-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.session-time {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.session-header h4 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.session-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.session-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.session-list li:last-child {
    border-bottom: none;
}

.session-list li:before {
    content: '•';
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.tools, .preview {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
    margin-left: 1rem;
}

.lunch-break {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.lunch-break .time {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.registration-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.price-option {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.price-option:hover {
    transform: translateY(-5px);
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.price-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.price-desc {
    font-size: 0.9rem;
    color: #666;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.info-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.payment-methods span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-methods i {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        white-space: normal;
    }

    .schedule-table {
        width: 100%;
        font-size: 0.9rem;
    }

    .schedule-table td {
        padding: 0.75rem;
    }

    .schedule-table .time-cell {
        width: 110px;
    }

    .schedule-table .content-cell {
        width: calc(100% - 110px);
    }

    .schedule-table .content-cell h4 {
        font-size: 1rem;
    }

    .pricing-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .session-card {
        padding: 1rem;
    }

    .timeline-content {
        padding-left: 0;
    }
}

.schedule-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item .time {
    font-weight: bold;
    color: var(--color-primary);
    min-width: 150px;
}

.session h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.session-details ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.session-details ul ul {
    list-style: circle;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.session-details li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.schedule-item {
    flex-wrap: wrap;
}

.schedule-item .session {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
    }
    
    .schedule-item .time {
        margin-bottom: 1rem;
    }
}

.pricing-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 1rem 0;
}

.payment-info, .location-info {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.payment-info ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.payment-info ul li {
    padding: 0.5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}
