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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: 0.3s;
}

/* Mobile menu dropdown */
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 20px;
    min-width: 150px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu li:last-child {
    margin-bottom: 0;
}

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #6b7280;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #ffffff;
}

.cta-button {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Hero Background */
.hero-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
}

.vertical-lines {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        #333333 10px,
        #333333 11px
    );
    opacity: 0.5;
}

.vertical-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, #1a1a1a, transparent);
}

/* Mission Section */
.mission {
    position: relative;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-shapes {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 1;
}

.shape-circle,
.shape-diamond {
    width: 80px;
    height: 80px;
    color: #666666;
    opacity: 0.7;
}

.mission-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    position: relative;
}

.mission-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #ffffff;
}

.mission-text {
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 40px;
    text-align: left;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #333333;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    background-color: #6b7280;
    transform: translateY(-2px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .mission-title {
        font-size: 24px;
    }
    
    .mission-shapes {
        gap: 20px;
    }
    
    .shape-circle,
    .shape-diamond {
        width: 60px;
        height: 60px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 40px;
    }
    
    .mission {
        padding: 60px 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .mission-title {
        font-size: 22px;
    }
    
    .mission-text {
        font-size: 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.cta-button:focus,
.scroll-top:focus,
.menu-toggle:focus {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

/* Loading animation for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.mission-content {
    animation: fadeInUp 0.8s ease-out;
}

.mission-content {
    animation-delay: 0.2s;
}

/* Projects Page Styles */
.projects-hero {
    padding: 100px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.projects-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.projects-title {
    font-size: 48px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 20px;
}

.projects-subtitle {
    font-size: 18px;
    color: #cccccc;
    font-weight: 400;
}

.projects-grid {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    justify-content: center;
}

.project-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333333;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 114, 128, 0.1);
    border-color: #6b7280;
}

.project-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-bottom: 1px solid #333333;
}

.project-image svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 120px;
}

.project-content {
    padding: 30px;
}

.project-name {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.project-description {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-button {
    display: inline-block;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 20px;
    text-align: center;
}

.project-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
    text-decoration: none;
    color: #ffffff;
}

.project-button:active {
    transform: translateY(0);
}

.projects-cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.projects-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Logo link styling */
.logo {
    text-decoration: none;
    color: #ffffff;
}

.logo:hover {
    color: #6b7280;
    transition: color 0.3s ease;
}

/* Responsive adjustments for projects page */
@media (max-width: 768px) {
    .projects-title {
        font-size: 36px;
    }
    
    .projects-subtitle {
        font-size: 16px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-content {
        padding: 25px;
    }
    
    .project-name {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .projects-hero {
        padding: 80px 15px 40px;
    }
    
    .projects-grid {
        padding: 60px 15px;
    }
    
    .projects-cta {
        padding: 60px 15px;
    }
    
    .projects-title {
        font-size: 32px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-name {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 15px;
    }
    
    .cta-title {
        font-size: 24px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: white;
}

/* Contact Form Styles */
.contact-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
    background: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: white;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: #888;
    border: 1px solid #444;
}

.btn-secondary:hover {
    color: white;
    border-color: #666;
}

.form-message {
    padding: 16px;
    border-radius: 8px;
    margin: 16px 24px 0;
    text-align: center;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Loading state for form submission */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #1a1a1a;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
