/* ========================================
   Glothm - Professional Website Styles
   ======================================== */

/* Root Variables */
:root {
    --primary-green: #00ff00;
    --primary-green-dark: #00cc00;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #111111;
    --card-hover: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --text-dark-gray: #808080;
    --border-color: rgba(0, 255, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #00ff00, #00cc00);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 255, 0, 0.2);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--gradient-dark);
}

/* Navigation Styles */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    transition: var(--transition-base);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-lg);
    background: rgba(5, 5, 5, 0.98) !important;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light) !important;
    text-decoration: none;
}

.logo-text {
    background: var(--dark-bg);
    padding: 6px 18px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    display: inline-block;
    transition: var(--transition-base);
}

.logo-text:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-glow);
}

.logo-text .green {
    color: var(--primary-green);
    font-weight: 800;
}

.navbar-toggler {
    border: 1px solid var(--primary-green);
    padding: 4px 12px;
}

.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(0, 255, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: var(--transition-base);
    position: relative;
    padding: 0.5rem 0 !important;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-cta {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-custom:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.05) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.hero-stats .stat p {
    color: var(--text-gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.floating-card {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.code-window {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-width: 400px;
}

.window-header {
    background: var(--darker-bg);
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-content {
    padding: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    overflow-x: auto;
}

.code-content .keyword {
    color: #ff79c6;
}

.code-content .class-name {
    color: #50fa7b;
}

.code-content .string {
    color: #f1fa8c;
}

.code-content .function {
    color: #8be9fd;
}

.code-content .boolean {
    color: #bd93f9;
}

/* Orbit Animation */
.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-2 {
    width: 450px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 40s;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    position: relative;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 0, 0.3);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: rgba(0, 255, 0, 0.2);
    transform: rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-green);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    color: var(--text-gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

.service-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.service-link:hover {
    gap: 12px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background: var(--darker-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item.large {
    grid-column: span 2;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    position: relative;
    overflow: hidden;
}

.portfolio-item.large .portfolio-image {
    height: 350px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.project-category {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.portfolio-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-green);
}

.portfolio-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

.stat-item i {
    color: var(--primary-green);
}

/* Technology Stack Section */
.tech-stack-section {
    padding: 80px 0;
    overflow: hidden;
    background: var(--card-bg);
}

.tech-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.tech-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    white-space: nowrap;
    font-weight: 600;
    transition: var(--transition-base);
}

.tech-item:hover {
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-content {
    padding-right: 3rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.feature i {
    color: var(--primary-green);
    font-size: 1.25rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.location-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.location-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 0, 0.3);
}

.location-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.location-card h4 {
    margin-bottom: 0.5rem;
}

.location-card p {
    color: var(--text-gray);
}

.team-preview {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-avatars {
    display: flex;
    margin-top: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.3), rgba(0, 255, 0, 0.1));
    border: 2px solid var(--dark-bg);
    margin-left: -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar.more {
    background: var(--gradient-primary);
    color: var(--dark-bg);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, transparent 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--darker-bg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.info-card h4 {
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form .row {
    margin-bottom: 1.5rem;
}

.form-control {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    background: var(--dark-bg);
    border-color: var(--primary-green);
    color: var(--text-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.form-control::placeholder {
    color: var(--text-dark-gray);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-gray);
    margin: 1rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: var(--transition-base);
}

.social-links a:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.footer h5 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        margin: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .code-window {
        min-width: 100%;
    }
    
    .portfolio-item.large {
        grid-column: span 1;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons button {
        width: 100%;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .location-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}