:root {
    --bg-color: #050a10;
    --grid-color: rgba(0, 243, 255, 0.1);
    --primary-color: #00f3ff;
    --secondary-color: #0066ff;
    --text-color: #e0f7ff;
    --card-bg: rgba(10, 20, 30, 0.8);
    --font-main: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0.5;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 243, 255, 0.3);
    opacity: 0.4;
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 100;
}

@keyframes scanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header */
.cyber-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    border: 1px solid var(--primary-color);
    padding: 2rem;
    position: relative;
    background: rgba(0, 10, 20, 0.5);
}

.cyber-header::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.cyber-header::after {
    content: '';
    position: absolute;
    bottom: -2px; right: -2px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.header-decoration {
    display: flex;
    justify-content: flex-end;
}

.network-visual {
    width: 100%;
    height: 150px;
    background: 
        radial-gradient(circle at center, var(--secondary-color) 0%, transparent 70%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 243, 255, 0.1) 10px, rgba(0, 243, 255, 0.1) 20px);
    border: 1px solid var(--secondary-color);
    box-shadow: inset 0 0 20px rgba(0, 102, 255, 0.3);
}

/* Navigation */
.cyber-nav {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    border-bottom: 1px solid var(--grid-color);
    padding-bottom: 1rem;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.nav-item::before {
    content: '[';
    margin-right: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--primary-color);
}

.nav-item::after {
    content: ']';
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--primary-color);
}

.nav-item:hover::before,
.nav-item:hover::after {
    opacity: 1;
}

/* Projects Section */
.projects-section {
    text-align: center;
    padding: 4rem 0;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    letter-spacing: 4px;
}

.tilted-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    perspective: 1000px;
    flex-wrap: wrap;
}

.project-card {
    width: 300px;
    height: 250px;
    background: var(--card-bg);
    border: 1px solid var(--secondary-color);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    transition: all 0.4s ease;
    transform: rotateX(10deg) rotateY(-5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-card:nth-child(2) {
    transform: rotateX(10deg) rotateY(0deg) translateY(-20px);
}

.project-card:nth-child(3) {
    transform: rotateX(10deg) rotateY(5deg);
}

.project-card:hover {
    transform: rotateX(0) rotateY(0) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    z-index: 10;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.project-card:hover .card-icon {
    color: var(--primary-color);
}

.project-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.card-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.card-link {
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    padding: 0.3rem 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Bottom Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cyber-box {
    border: 1px solid var(--secondary-color);
    padding: 1.5rem;
    background: rgba(0, 10, 20, 0.6);
    position: relative;
}

.box-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--grid-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-shadow: 0 0 10px var(--primary-color);
}

.status-lines {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.code-block p {
    font-family: monospace;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cyber-header {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .tilted-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .project-card, 
    .project-card:nth-child(2), 
    .project-card:nth-child(3) {
        transform: none !important;
        width: 100%;
        max-width: 350px;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .cyber-nav {
        justify-content: center;
    }
}
