/* style.css */

/* ── Root variables (dark theme, blue accent) ─────────────────────────────── */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --text-primary: #e0e0e0;
    --text-secondary: #bbbbbb;
    --accent: #2196F3;        /* primary blue accent */
    --accent-light: #64b5f6;  /* lighter blue for hovers */
    --max-width: 1200px;
    --transition: 0.3s ease;
}
/* SVG container (scales with viewport) */
        .svg-wrapper {
            width: 100%;
            max-width: 600px;               /* optional max‑width */
            margin: 2rem auto;    
		animation: float 6s infinite ease-in-out;
        }
        /* Star twinkle animation */
        @keyframes twinkle {
            0%   { opacity: .2; }
            50%  { opacity: 1; }
            100% { opacity: .2; }
        }
        .star {
            fill: #fff;
            opacity: .6;
            animation: twinkle 2s infinite ease-in-out;
        }
        /* Node pulse animation */
        @keyframes pulse {
            0%   { r: 4; opacity: .8; }
            50%  { r: 6; opacity: 1; }
            100% { r: 4; opacity: .8; }
        }
        .node {
            fill: #2196F3;
            filter: url(#glow);
            animation: pulse 3s infinite ease-in-out;
        }
        .central-node {
            fill: #64b5f6;
            filter: url(#glow);
            animation: pulse 2.5s infinite ease-in-out;
        }
        .link {
            stroke: #2196F3;
            stroke-width: 1.2;
            opacity: .4;
            stroke-dasharray: 4 2;
            animation: dash 6s linear infinite;
        }
        @keyframes dash {
            to { stroke-dashoffset: -6; }
        }
/* ── Global resets & fonts ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    text-align: center;               /* Center all text by default */
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-light);
}

/* ── Layout helpers ─────────────────────────────────────────────────── */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ── Navigation bar ─────────────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--accent);
}

/* ── Hero Section ───────────────────────────────────────────────────── */
.hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 0;
}
.hero-content {
    max-width: 540px;
    text-align: center;               /* ensure heading & paragraph are centered */
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: .5rem;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}
.cta-button {
    display: inline-block;
    padding: .8rem 1.6rem;
    background: var(--accent);
    color: #fff;
    border-radius: .4rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}
.cta-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}
.cta-note {
    display: block;
    font-size: .75rem;
    margin-top: .3rem;
    color: #ddd;
}

/* Hero animation – floating effect */
.hero-animation {
    width: 100px;
    animation: float 6s infinite ease-in-out;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Section styling ─────────────────────────────────────────────────- */
.section {
    padding: 4rem 0;
}
.section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}
.alt-bg {
    background: var(--bg-secondary);
}

/* Cards for services */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.card {
    background: #1c1c1c;
    padding: 1.5rem;
    border-radius: .6rem;
    width: 280px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(33,150,243,.3);
}
.card h3 {
    margin-bottom: .5rem;
    color: var(--accent);
}

/* Contact form */
#contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: .8rem;
}
#contact-form input,
#contact-form textarea {
    padding: .8rem;
    border: 1px solid #333;
    border-radius: .4rem;
    background: #1a1a1a;
    color: var(--text-primary);
    width: 100%;
}
#contact-form button {
    padding: .9rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: .4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
#contact-form button:hover {
    background: var(--accent-light);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 1rem 0;
    text-align: center;
    font-size: .9rem;
    color: var(--text-secondary);
}

/* ── Responsive adjustments ───────────────────────────────────────── */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
    }
    .hero-content,
    .hero-animation {
        flex: 1;
    }
}