/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables - Ocean/Tech Theme */
:root {
    --primary-color: #0369a1; /* Deep ocean blue */
    --primary-dark: #075985; /* Deeper ocean blue */
    --secondary-color: #64748b;
    --accent-color: #0ea5e9; /* Bright cyan-blue */
    --circuit-color: #06b6d4; /* Circuit board cyan */
    --ocean-light: #7dd3fc; /* Light ocean blue */
    --ocean-dark: #0c4a6e; /* Dark ocean depth */
    --tropical-deep: #1e40af; /* Deep tropical blue */
    --tropical-mid: #2563eb; /* Mid tropical blue */
    --tropical-light: #0ea5e9; /* Light tropical blue */
    --tropical-aqua: #06b6d4; /* Tropical aqua */
    --success-color: #10b981;
    --text-light: #64748b;
    --text-dark: #0f172a;
    --bg-light: #f0f9ff; /* Very light ocean tint */
    --bg-dark: #0c1e2e; /* Deep ocean dark */
    --border-color: #bae6fd; /* Light ocean border */
    --shadow-light: 0 1px 3px 0 rgb(12 74 110 / 0.1), 0 1px 2px -1px rgb(12 74 110 / 0.1);
    --shadow-medium: 0 4px 6px -1px rgb(12 74 110 / 0.1), 0 2px 4px -2px rgb(12 74 110 / 0.1);
    --shadow-large: 0 25px 50px -12px rgb(12 74 110 / 0.25);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--circuit-color) 100%);
    --gradient-ocean: linear-gradient(135deg, var(--ocean-dark) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    --gradient-tropical: linear-gradient(135deg, var(--tropical-deep) 0%, var(--tropical-mid) 30%, var(--primary-color) 60%, var(--tropical-aqua) 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--ocean-dark) 100%);
    --circuit-pattern: radial-gradient(circle at 20% 50%, var(--circuit-color) 2px, transparent 3px), radial-gradient(circle at 80% 50%, var(--circuit-color) 2px, transparent 3px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ocean-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--ocean-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--ocean-dark);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-tropical);
    background-size: 400% 400%;
    animation: ocean-waves 8s ease-in-out infinite;
    color: white;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 90%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
    animation: float-bubbles 12s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: 
        radial-gradient(ellipse 100% 60px at 50% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(to right, transparent 0%, rgba(6, 182, 212, 0.1) 50%, transparent 100%);
    animation: gentle-waves 4s ease-in-out infinite;
}

@keyframes ocean-waves {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float-bubbles {
    0%, 100% { opacity: 0.3; transform: translateY(0px) scale(1); }
    33% { opacity: 0.5; transform: translateY(-10px) scale(1.05); }
    66% { opacity: 0.4; transform: translateY(-5px) scale(0.95); }
}

@keyframes gentle-waves {
    0%, 100% { transform: translateX(0px) scaleY(1); }
    50% { transform: translateX(-10px) scaleY(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15rem;
    opacity: 0.15;
    color: rgba(255, 255, 255, 0.8);
    animation: float-code 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.3));
}

@keyframes float-code {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.15; }
    50% { transform: translateY(-20px) rotate(5deg); opacity: 0.25; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-ocean);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: transparent;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--gradient-ocean);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--circuit-color) 1px, transparent 2px);
    background-size: 10px 10px;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation: pulse-circuit 3s ease-in-out infinite;
}

@keyframes pulse-circuit {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.about-description p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
}

.about-logo-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.portfolio-image {
    height: 200px;
    background: var(--gradient-ocean);
    background-image: var(--circuit-pattern);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-ocean);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.contact-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--circuit-color) 1px, transparent 2px);
    background-size: 8px 8px;
    opacity: 0.3;
}

.contact-details h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--gradient-tropical);
    background-size: 400% 400%;
    animation: ocean-waves 8s ease-in-out infinite;
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: #ffffff;
    font-weight: 700;
}

.footer p {
    color: #94a3b8;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #334155;
    border-radius: 0.5rem;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #334155;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-graphic {
        font-size: 8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Terms Page Styles */
.terms-section {
    padding: 8rem 0 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    min-height: 100vh;
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-color);
}

.terms-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-tropical);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-intro {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.terms-intro p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.terms-intro p:last-child {
    margin-bottom: 0;
}

.terms-section-block {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terms-section-block:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.terms-section-block h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.terms-section-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.terms-section-block p:last-child {
    margin-bottom: 0;
}

.terms-section-block ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.terms-section-block li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.legal-disclaimer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #dc3545;
    margin: 1.5rem 0;
}

.legal-disclaimer p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-disclaimer p:last-child {
    margin-bottom: 0;
}

.contact-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.terms-back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Terms page responsive design */
@media (max-width: 768px) {
    .terms-section {
        padding: 6rem 0 2rem 0;
    }
    
    .terms-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .terms-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .terms-section-block h2 {
        font-size: 1.25rem;
    }
    
    .terms-section-block {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .terms-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .terms-content h1 {
        font-size: 1.75rem;
    }
    
    .terms-intro,
    .legal-disclaimer,
    .contact-info {
        padding: 1rem;
    }
}