/* Base Styles & Variables */
:root {
    --primary-dark: #0a0a0f;
    --secondary-dark: #12121a;
    --accent-blue: #00d4ff;
    --accent-purple: #8a2be2;
    --text-white: #ffffff;
    --text-offwhite: #f0f0f0;
    --text-gray: #b0b0b0;
    --card-bg: rgba(18, 18, 26, 0.7);
    --border-color: rgba(0, 212, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

.code-font {
    font-family: 'Source Code Pro', monospace;
}

.digital-font {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    letter-spacing: 1px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.accent-text {
    color: var(--accent-blue);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-offwhite);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-white), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.animated-tagline {
    font-size: 1.8rem;
    margin-bottom: 40px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.tagline-container {
    position: relative;
    display: inline-block;
}

.tagline-text {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-blue);
    border-right: 3px solid var(--accent-blue);
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    min-width: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-offwhite);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Circuit Animation */
.circuit-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.circuit-line {
    position: absolute;
    background: rgba(0, 212, 255, 0.1);
}

.circuit-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-blue);
}

/* Sections Common Styles */
section {
    position: relative;
    z-index: 2;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Content Cards */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    margin: 30px 0;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.card-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-offwhite);
}

.card-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-list {
    list-style: none;
    padding-left: 20px;
}

.card-list li {
    margin-bottom: 10px;
    color: var(--text-gray);
    position: relative;
}

.card-list li:before {
    content: '▸';
    color: var(--accent-blue);
    position: absolute;
    left: -20px;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-family: 'Source Code Pro', monospace;
    margin: 20px 0;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-top: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--secondary-dark);
    padding: 70px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--accent-blue);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Code Stream Animation */
.code-stream {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

.code-line {
    position: absolute;
    font-family: 'Source Code Pro', monospace;
    color: var(--accent-blue);
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .animated-tagline {
        font-size: 1.4rem;
        min-height: 100px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--secondary-dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .animated-tagline {
        font-size: 1.2rem;
        min-height: 80px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 100% { border-color: var(--accent-blue); }
    50% { border-color: transparent; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.typing-animation {
    animation: typing 3s steps(40, end);
}

.cursor-blink {
    animation: blink 1s infinite;
}