/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 20% 50%, rgba(0, 100, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.2) 0%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 400px 400px, 300px 300px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 70%),
        linear-gradient(0deg, rgba(0, 50, 100, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Rain effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 255, 255, 0.05) 50%, transparent 100%);
    background-size: 2px 20px, 1px 15px;
    animation: rain 0.5s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rain {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Lightning effect */
.lightning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(0, 255, 255, 0.8) 50%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: lightning 8s infinite;
}

@keyframes lightning {
    0%, 90%, 100% { opacity: 0; }
    92%, 98% { opacity: 0.3; }
    95% { opacity: 0.8; }
}

/* Container with proper spacing system */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; /* Increased from 20px for better spacing */
    width: 100%;
}

/* Safe area for mobile devices */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
}

/* Header and Navigation */
.header {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0; /* Increased from 1rem for better touch targets */
    min-height: 64px; /* Minimum touch target height */
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
    animation: thunderGlow 3s ease-in-out infinite;
    margin: 0; /* Ensure no default margins */
}

@keyframes thunderGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 255, 0.8); }
    50% { text-shadow: 0 0 20px rgba(0, 255, 255, 1), 0 0 30px rgba(0, 255, 255, 0.5); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px; /* Increased from 2rem for better spacing */
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 20px; /* Increased padding for better touch targets */
    border: 1px solid transparent;
    border-radius: 4px; /* Subtle rounding for better UX */
    min-height: 44px; /* Minimum touch target */
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px; /* Increased padding for better spacing */
    background: linear-gradient(135deg, #000000 0%, #001a33 30%, #003366 70%, #000000 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 255, 255, 0.05) 50%, transparent 100%),
        radial-gradient(circle at 30% 20%, rgba(0, 100, 255, 0.2) 0%, transparent 50%);
    animation: stormGrid 15s linear infinite;
}

@keyframes stormGrid {
    0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Limit content width for better readability */
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 32px; /* Increased from 1.5rem */
    line-height: 1.2;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    letter-spacing: 3px;
    animation: thunderText 4s ease-in-out infinite;
}

@keyframes thunderText {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
    50% { text-shadow: 0 0 30px rgba(0, 255, 255, 1), 0 0 40px rgba(0, 255, 255, 0.6); }
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px; /* Increased from 2rem */
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 24px; /* Increased from 1rem */
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px; /* Increased padding for better touch targets */
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Minimum touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: transparent;
    color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    background-color: #00ffff;
    color: #000000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 100px 0; /* Increased from 80px */
    background-color: #000000;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(0, 255, 255, 0.05) 50%, transparent 100%),
        radial-gradient(circle at 70% 30%, rgba(0, 100, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px; /* Increased from 3rem */
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Increased from 300px */
    gap: 32px; /* Increased from 2rem */
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 32px; /* Increased from 2rem */
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    border-color: #00ffff;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 24px; /* Increased from 1rem */
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    animation: stormIcon 2s ease-in-out infinite;
}

@keyframes stormIcon {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(0, 255, 255, 1)); }
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px; /* Increased from 1rem */
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.service-card p {
    color: #cccccc;
    line-height: 1.6;
    margin: 0; /* Ensure no default margins */
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0; /* Increased from 80px */
    background-color: #000000;
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.03) 50%, transparent 100%),
        radial-gradient(circle at 20% 80%, rgba(0, 100, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px; /* Increased from 3rem */
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Increased from 350px */
    gap: 32px; /* Increased from 2rem */
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, #000000 0%, #001a33 50%, #003366 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #00ffff;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%);
    animation: stormPulse 3s ease-in-out infinite;
}

@keyframes stormPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.construction-badge {
    background: rgba(0, 0, 0, 0.9);
    color: #ff4444;
    padding: 12px 20px; /* Increased padding */
    border: 1px solid #ff4444;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.8);
    border-radius: 4px; /* Subtle rounding */
}

.portfolio-content {
    padding: 24px; /* Increased from 1.5rem */
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px; /* Increased from 0.5rem */
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.portfolio-content p {
    color: #cccccc;
    margin-bottom: 16px; /* Increased from 1rem */
    line-height: 1.6;
}

.status {
    display: inline-block;
    background-color: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    padding: 8px 16px; /* Increased padding */
    border: 1px solid #ff4444;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
    border-radius: 4px; /* Subtle rounding */
}

/* Contact Section */
.contact {
    padding: 100px 0; /* Increased from 80px */
    background-color: #000000;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(0, 255, 255, 0.05) 50%, transparent 100%),
        radial-gradient(circle at 80% 70%, rgba(0, 100, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px; /* Increased from 3rem */
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px; /* Increased from 4rem */
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px; /* Increased from 1rem */
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.contact-info p {
    color: #cccccc;
    margin-bottom: 32px; /* Increased from 2rem */
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Increased from 1rem */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Increased from 0.5rem */
}

.contact-label {
    font-weight: 600;
    color: #00ffff;
    min-width: 80px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.contact-item a {
    color: #00ffff;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.contact-item a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Contact Form */
.contact-form {
    background: rgba(0, 0, 0, 0.8);
    padding: 32px; /* Increased from 2rem */
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    border-radius: 8px; /* Subtle rounding */
}

.form-group {
    margin-bottom: 24px; /* Increased from 1.5rem */
}

.form-group label {
    display: block;
    margin-bottom: 8px; /* Increased from 0.5rem */
    font-weight: 500;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px; /* Increased from 12px */
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 4px; /* Subtle rounding */
    min-height: 48px; /* Minimum touch target */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    border-color: #00ffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

.form-group textarea {
    min-height: 120px; /* Better textarea height */
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    padding: 48px 0 24px; /* Increased padding */
    border-top: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Increased from 250px */
    gap: 32px; /* Increased from 2rem */
    margin-bottom: 32px; /* Increased from 2rem */
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px; /* Increased from 1rem */
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin: 0; /* Ensure no default margins */
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    color: #cccccc;
    margin-bottom: 8px; /* Increased from 0.5rem */
}

.footer-bottom {
    border-top: 1px solid #00ffff;
    padding-top: 24px; /* Increased from 1rem */
    text-align: center;
}

.footer-bottom p {
    color: #666666;
    margin: 0; /* Ensure no default margins */
}

/* Responsive Design with proper spacing */
@media (max-width: 768px) {
    .container {
        padding: 0 20px; /* Slightly reduced on mobile but still adequate */
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 120px 0 80px; /* Adjusted for mobile */
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Reduced for mobile */
        margin-bottom: 24px;
    }
    
    .hero-content p {
        font-size: 1.125rem; /* Slightly reduced */
        margin-bottom: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px; /* Reduced gap for mobile */
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px; /* Reduced gap for mobile */
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px; /* Reduced gap for mobile */
    }
    
    .services,
    .portfolio,
    .contact {
        padding: 80px 0; /* Reduced padding for mobile */
    }
    
    .service-card,
    .portfolio-item {
        padding: 24px; /* Reduced padding for mobile */
    }
    
    .contact-form {
        padding: 24px; /* Reduced padding for mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px; /* Minimum safe padding */
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .services,
    .portfolio,
    .contact {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .services h2,
    .portfolio h2,
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .btn {
        padding: 14px 24px; /* Slightly reduced for mobile */
        min-height: 44px; /* Minimum touch target */
    }
    
    .service-card,
    .portfolio-item {
        padding: 20px; /* Further reduced for small mobile */
    }
    
    .contact-form {
        padding: 20px; /* Further reduced for small mobile */
    }
} 