:root {
    --bg-color: #050505;
    --surface-color: #0A0A0A;
    --accent-color: #00F2FF;
    --accent-glow: rgba(0, 242, 255, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

#noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    z-index: 9999;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

#cursor-glow {
    position: fixed;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 242, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
}

.accent {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    margin: 0 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px var(--accent-color));
}

.footer-logo-img {
    height: 90px;
    width: auto;
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.cta-btn {
    background: var(--accent-color);
    color: var(--bg-color) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700 !important;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.primary-btn {
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
}

.secondary-btn {
    padding: 1rem 2.5rem;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Hero Visuals */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-ui-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    width: 300px;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.card-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.skeleton-line { height: 8px; background: #333; border-radius: 4px; margin-bottom: 12px; }
.skeleton-line.long { width: 80%; }
.skeleton-line.med { width: 60%; }
.skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.skeleton-item { height: 60px; background: #222; border-radius: 6px; }

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--accent-glow);
    top: -20%;
    right: -10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(138, 43, 226, 0.3);
    bottom: -10%;
    left: -10%;
}

/* Services */
.services { padding: 100px 0; }
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.service-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 { margin-bottom: 1rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Portfolio */
.portfolio { padding: 100px 0; }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

.portfolio-item.large {
    grid-row: span 2;
    height: 615px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .project-overlay { opacity: 1; }
.portfolio-item:hover .project-img { transform: scale(1.1); }

/* CTA */
.cta-section {
    padding: 150px 0;
    text-align: center;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
}

.cta-content h2 { font-size: 4rem; margin-bottom: 1.5rem; }
.cta-content p { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 3rem; }

/* Footer */
footer {
    padding: 80px 0 20px;
    background: #000;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; color: var(--accent-color); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

#contactForm {
    display: flex;
    gap: 10px;
}

#contactForm input {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    padding: 0.8rem;
    border-radius: 4px;
    color: white;
}

#contactForm button {
    background: var(--accent-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.8rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
/* About Section */
.about { padding: 150px 0; background: #080808; }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }

.code-window {
    background: #0D0D0D;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.code-window pre { margin-top: 1rem; color: #d4d4d4; }
.keyword { color: #569cd6; }
.variable { color: #9cdcfe; }
.string { color: #ce9178; }

.about-content h2 { font-size: 3rem; margin-bottom: 2rem; }
.about-content p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.1rem; }

.about-stats {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin-top: 3rem;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Adjustments */
@media (max-width: 968px) {
    .about-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .about-stats { justify-content: center; gap: 2rem; }
    .about-visual { order: 2; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    #contactForm { flex-direction: column; }
    .hero-visual { display: none; }
}
