:root {
    --primary-color: #00f2fe;
    --secondary-color: #a01eff;
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography & Buttons */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav-cta {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    color: #fff !important;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 11, 16, 0.4), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

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

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* About Section */
#about {
    padding: 100px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.image-frame {
    position: relative;
    padding-bottom: 125%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.image-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-item p {
    color: var(--text-muted);
}

/* GitHub Projects Section */
#projects {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.private-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-footer span i {
    margin-right: 5px;
}

.view-more {
    text-align: center;
    margin-top: 4rem;
}

/* CV Section */
#cv {
    padding: 100px 0;
}

.cv-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    backdrop-filter: blur(20px);
}

.cv-icon {
    font-size: 5rem;
    color: var(--primary-color);
}

.cv-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cv-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cv-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

/* Contact */
#contact {
    padding: 100px 0;
    border-top: 1px solid var(--glass-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
}

/* Cybersecurity additions */
.card-glow {
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 30px rgba(0,242,254,0.03) inset;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 16px;
    padding: 1.25rem;
}

/* Hero cyber widgets */
/* hero cyber widgets removed */

/* Skills */
#cyber-skills { padding: 80px 0; border-top: 1px solid var(--glass-border); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; }
.skills-column h3 { margin-bottom: 0.5rem; color: var(--primary-color); }
.skills-column ul { list-style: none; color: var(--text-muted); }
.skills-column li { margin-bottom: 0.5rem; }

/* Clean skills layout */
.clean-skills .skills-column ul { padding: 0; margin: 0; }
.clean-skills .skills-column li { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.9rem; color:var(--text-muted); font-size:1.05rem; }
.clean-skills .skills-column li i { color: var(--primary-color); min-width: 22px; font-size:1.1rem; }

/* Lab */
#cyber-lab { padding: 80px 0; background: rgba(255,255,255,0.01); border-top: 1px solid var(--glass-border); }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; margin-top: 1rem; }
.lab-panel h4 { color: var(--primary-color); margin-bottom: 0.75rem; }
.lab-metrics { display: flex; gap: 1rem; }
.metric { display:flex; flex-direction:column; }
.metric-value { font-size: 1.5rem; font-weight:700; color: var(--primary-color); }
.metric-label { color: var(--text-muted); font-size: 0.85rem; }

.lab-panel.terminal-panel { min-height: 220px; }
.terminal-window { background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.03); border-radius: 8px; padding: 0.75rem; height: 220px; display:flex; flex-direction:column; }
.terminal-output { flex:1 1 auto; font-family: monospace; font-size: 0.95rem; color: var(--text-muted); overflow-y:auto; overflow-x:hidden; white-space:pre-wrap; max-height: calc(100% - 36px); }
.terminal-input { border: none; outline: none; background: transparent; color: var(--text-main); font-family: monospace; padding: 0.4rem 0; }

.traffic-visual { height: 140px; background: linear-gradient(90deg, rgba(0,0,0,0.2), rgba(255,255,255,0.02)); border-radius: 8px; }
.lab-notes { margin-top: 1rem; color: var(--text-muted); }

/* Metrics */
#cyber-metrics { padding: 40px 0 80px 0; }
.metrics-row { display:flex; gap:1rem; justify-content:space-between; }
.metric-card { flex:1; padding:1.5rem; text-align:center; }
.metric-number { font-size:2rem; color:var(--primary-color); font-weight:800; }

/* Cyber terminal (interactive) */
#cyber-terminal { padding: 80px 0; border-top: 1px solid var(--glass-border); }
.terminal-shell { max-width: 900px; margin: 0 auto; }

/* Responsive tweaks for new sections */
@media (max-width: 968px) {
    .cyber-widgets { display: none; }
    .skills-grid { grid-template-columns: 1fr; }
    .lab-grid { grid-template-columns: 1fr; }
    .metrics-row { flex-direction: column; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }

    .cv-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}
