/* Global Styles */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar-brand{
    margin: 0px;
    padding: 0px;
    position: relative;
}
.navbar-brand img{
    width: 60px;
    height: auto;
    margin: 0px;
    position: absolute;
    top: -32px;
    left: 0px;
    filter: none;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.navbar-toggler {
    border-color: var(--secondary-color);
}

.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%2844, 62, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: var(--gradient-secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4.5rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.5rem 0;
}

.hero-title,
.hero-subtitle {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--white);
    display: block;
    visibility: visible;
    opacity: 1;
}

.hero-title .text-primary {
    color: var(--primary-color) !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.6rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    min-width: 200px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-medium);
    min-height: 44px;
    min-width: 44px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .workflow-step:hover,
    .language-card:hover {
        transform: none;
    }
    
    .feature-card:active,
    .workflow-step:active,
    .language-card:active {
        transform: scale(0.98);
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .feature-card,
    .workflow-step,
    .language-card,
    .contact-item {
        will-change: transform;
    }
    
    .hero-section {
        background-attachment: scroll;
        padding: 3rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .floating-card {
        display: none !important;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-stats {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Hero Image */
.hero-image {
    position: relative;
    height: 500px;
}

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

.main-hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    margin-top: 0;
} 

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.floating-card i {
    font-size: 1.5rem;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Features Section */
.features-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.feature-list li i {
    color: var(--success-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Workflow Section */
.workflow-section {
    background: var(--white);
    padding: 5rem 0;
}

.workflow-step {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--light-color);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

.workflow-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.workflow-step h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.workflow-step p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-stack .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}


/* Languages Section */
.languages-section {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 5rem 0;
}

.languages-section .section-title,
.languages-section .section-subtitle {
    color: var(--white);
}

.language-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.language-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.language-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.language-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.language-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.language-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Register Section */
.register-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.registration-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-top: 2rem;
}

.registration-form .form-control,
.registration-form .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.registration-form .form-control:focus,
.registration-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 5rem 0;
}

.contact-info .row {
    margin: 0;
}

.contact-info .col-md-4 {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

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

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

.contact-item h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-item p {
    color: #666;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Ensure contact items don't overlap on different screen sizes */
@media (max-width: 767px) {
    .contact-info .col-md-4 {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
}

.footer .row {
    gap: 0;
    justify-content: center;
    align-items: center;
}

.footer .col-md-6:first-child {
    text-align: center;
    margin-bottom: 1rem;
}

.footer .col-md-6:last-child {
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Custom X icon fallback */
.social-link .fa-x-twitter:before {
    content: "𝕏";
    font-family: "Times New Roman", serif;
    font-weight: bold;
    font-size: 1.2em;
}

/* Responsive Design */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .workflow-step {
        padding: 1.5rem;
    }
    
    .language-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .registration-form {
        padding: 2.5rem;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-image {
        height: auto;
        margin-top: 2rem;
    }
    
    .language-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .registration-form {
        padding: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .navbar-brand img {
        width: 50px;
        top: -28px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .workflow-step {
        padding: 1.5rem;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-image {
        height: auto;
        margin-top: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0;
        padding: 0.6rem 1.5rem;
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        margin-top: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    .language-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .registration-form {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .registration-form .form-control,
    .registration-form .form-select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .navbar {
        padding: 0.75rem 0;
        min-height: 70px;
    }
    
    .navbar-brand img {
        width: 45px;
        top: -15px;
    }
    
    .navbar-brand {
        padding-top: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .workflow-step {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .workflow-step h4 {
        font-size: 1.1rem;
    }
    
    .tech-stack .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-item i {
        font-size: 2rem;
    }
    
    .contact-item h5 {
        font-size: 1.1rem;
    }
    
    .footer {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .footer .row {
        flex-direction: column;
        gap: 0;
        justify-content: center;
        align-items: center;
    }
    
    .footer .col-md-6 {
        margin-bottom: 1rem;
        text-align: center !important;
    }
}



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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
