/* CSS Variables for Theme Management */
:root {
    /* Default Theme (Dark) */
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --tertiary-bg: #334155;
    --card-bg: rgba(30, 41, 59, 0.8);
    --card-bg-hover: rgba(30, 41, 59, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --text-light: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #60a5fa;
    --accent-quaternary: #a78bfa;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #60a5fa, #a78bfa);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e1b4b 75%, #312e81 100%);
    --border-color: rgba(59, 130, 246, 0.2);
    --border-hover: rgba(59, 130, 246, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-accent: rgba(59, 130, 246, 0.4);
}

/* Blue & White Theme */
[data-theme="blue"] {
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc;
    --tertiary-bg: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-bg-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --accent-primary: #2563eb;
    --accent-secondary: #1d4ed8;
    --accent-tertiary: #3b82f6;
    --accent-quaternary: #60a5fa;
    --gradient-primary: linear-gradient(135deg, #2563eb, #1d4ed8);
    --gradient-secondary: linear-gradient(135deg, #3b82f6, #60a5fa);
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #e2e8f0 50%, #cbd5e1 75%, #94a3b8 100%);
    --border-color: rgba(37, 99, 235, 0.2);
    --border-hover: rgba(37, 99, 235, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-accent: rgba(37, 99, 235, 0.3);
}

/* Yellow-Golden Theme */
[data-theme="yellow"] {
    --primary-bg: #1f2937;
    --secondary-bg: #374151;
    --tertiary-bg: #4b5563;
    --card-bg: rgba(55, 65, 81, 0.8);
    --card-bg-hover: rgba(55, 65, 81, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #f9fafb;
    --text-muted: #d1d5db;
    --text-light: #9ca3af;
    --accent-primary: #f59e0b;
    --accent-secondary: #d97706;
    --accent-tertiary: #fbbf24;
    --accent-quaternary: #fcd34d;
    --gradient-primary: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-secondary: linear-gradient(135deg, #fbbf24, #fcd34d);
    --gradient-bg: linear-gradient(135deg, #1f2937 0%, #374151 25%, #4b5563 50%, #92400e 75%, #b45309 100%);
    --border-color: rgba(245, 158, 11, 0.2);
    --border-hover: rgba(245, 158, 11, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-accent: rgba(245, 158, 11, 0.4);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Theme Switcher */
.theme-switcher {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.theme-toggle:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.theme-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 150px;
    box-shadow: 0 10px 30px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-switcher:hover .theme-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Also show options when opened via click */
.theme-switcher.open .theme-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.theme-option:hover {
    background: var(--tertiary-bg);
    color: var(--accent-primary);
}

.theme-option.active {
    background: var(--accent-primary);
    color: white;
}

/* Navigation Styles */
.navbar {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: var(--card-bg-hover);
    box-shadow: 0 2px 20px var(--shadow-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-tertiary) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--accent-quaternary) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

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

.nav-link:hover {
    color: var(--accent-tertiary) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: 0 4px 15px var(--shadow-accent);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-accent);
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-tertiary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Services Section */
.services-section {
    background: var(--gradient-bg);
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px var(--shadow-color);
    background: var(--card-bg-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 20px var(--shadow-accent);
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Technical Expertise Section */
.expertise-section {
    background: var(--gradient-bg);
    padding: 5rem 0;
}

.expertise-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--shadow-accent), transparent);
    transition: left 0.5s ease;
}

.expertise-card:hover::before {
    left: 100%;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px var(--shadow-color);
    background: var(--card-bg-hover);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px var(--shadow-accent);
}

.expertise-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.expertise-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.tech-list li {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.tech-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-tertiary);
    font-size: 0.8rem;
}

/* Offshore Teams Section */
.teams-section {
    background: var(--gradient-bg);
    padding: 5rem 0;
}

.teams-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-graphic {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-lead {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 30px var(--shadow-accent);
}

.team-lead span {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

.team-members {
    position: absolute;
    width: 100%;
    height: 100%;
}

.member {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 5px 15px var(--shadow-accent);
}

.member-1 {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.member-2 {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    animation-delay: -1s;
}

.member-3 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -2s;
}

.member-4 {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    animation-delay: -3s;
}

.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.line {
    position: absolute;
    background: var(--gradient-secondary);
    height: 2px;
    transform-origin: left center;
    animation: pulse 3s ease-in-out infinite;
}

.line-1 {
    top: 25%;
    left: 50%;
    width: 100px;
    transform: rotate(0deg);
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    right: 25%;
    width: 100px;
    transform: rotate(90deg);
    animation-delay: -0.5s;
}

.line-3 {
    bottom: 25%;
    left: 50%;
    width: 100px;
    transform: rotate(180deg);
    animation-delay: -1s;
}

.line-4 {
    top: 50%;
    left: 25%;
    width: 100px;
    transform: rotate(270deg);
    animation-delay: -1.5s;
}

.teams-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.teams-features {
    margin-bottom: 2rem;
}

.teams-features .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.teams-features .feature-item:hover {
    background: var(--card-bg-hover);
    transform: translateX(5px);
    border-color: var(--border-hover);
}

.teams-features .feature-item i {
    color: var(--accent-tertiary);
    margin-right: 1rem;
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-content h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.teams-cta {
    text-align: center;
}

.btn-outline-primary {
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-accent);
}

/* About Section */
.about-section {
    background: var(--gradient-bg);
    padding: 5rem 0;
}

.about-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.tech-graphic i {
    animation: pulse 2s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    animation: orbit 8s linear infinite;
}

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

.element-2 {
    top: 20%;
    right: 10%;
    animation-delay: -2.5s;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -5s;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.feature-item i {
    color: var(--accent-primary);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-tertiary);
}

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

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .about-image {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .tech-graphic {
        width: 250px;
        height: 250px;
        font-size: 3rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .tech-graphic {
        width: 200px;
        height: 200px;
        font-size: 2.5rem;
    }
    
    .expertise-card {
        margin-bottom: 2rem;
    }
    
    .teams-image {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .team-graphic {
        width: 280px;
        height: 280px;
    }
    
    .team-lead {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .member {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .teams-features .feature-item {
        padding: 0.75rem;
    }
    
    .teams-features .feature-item i {
        font-size: 1.2rem;
    }
}
