/* --- Core Variables --- */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 30, 0.6);
    --primary: #00f3ff; /* Cyan */
    --secondary: #bd00ff; /* Purple */
    --accent: #00ff9d; /* Neon Green */
    --text-main: #e0e0e0;
    --text-bright: #ffffff;
    --font-main: 'Rajdhani', sans-serif;
    --font-code: 'Roboto Mono', monospace;
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* --- Canvas Background --- */
#canvas-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary);
}
.logo span { color: var(--primary); }

nav ul { display: flex; list-style: none; gap: 40px; }
nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    position: relative;
}
nav a:hover, nav a.active { 
    color: var(--primary); 
    text-shadow: 0 0 8px var(--primary); 
}

/* Underline effect for active/hover */
nav a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}
nav a:hover::after, nav a.active::after { width: 100%; }

.social-header { display: flex; gap: 20px; }
.social-header a { color: var(--text-main); font-size: 1.2rem; transition: 0.3s; }
.social-header a:hover { color: var(--secondary); transform: translateY(-2px); }

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-bright);
    transition: 0.3s;
}

/* --- Hero Section --- */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    position: relative;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.hero-content { 
    flex: 1;
    max-width: 650px;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.hero-greeting {
    font-family: var(--font-code);
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-shadow: 0 0 5px var(--secondary);
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.hero-typewrite {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 30px;
    font-family: var(--font-code);
    min-height: 30px;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2rem;
    background-color: var(--primary);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 5px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.btn-hero {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-hero:hover {
    color: var(--bg-dark);
    background: var(--primary);
    box-shadow: 0 0 30px var(--primary);
}

/* --- Hero Image Card --- */
.hero-image-card {
    flex-shrink: 0;
    width: 350px;
    height: 350px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-image-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(0, 243, 255, 0.2), transparent 30%);
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.image-inner-box {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary);
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
}

.image-inner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Section Styling --- */
section {
    padding: 100px 10%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 3rem;
    color: var(--text-bright);
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

/* --- Cards --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}
.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: 0.5s;
}
.glass-card:hover::before { opacity: 1; }

.card-header { margin-bottom: 15px; }
.card-header h3 { 
    color: var(--text-bright); 
    font-size: 1.5rem; 
    margin-bottom: 5px; 
    display: flex; 
    align-items: center; 
}

/* Styling for links inside card header (for Icons) */
.card-header h3 a {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: 0.3s;
}
.card-header h3 a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.card-header .role { color: var(--secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }

.card-body { flex-grow: 1; }
.card-body ul { list-style: none; }
.card-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.95rem;
}
.card-body li::before {
    content: '>';
    position: absolute; left: 0;
    color: var(--primary);
    font-family: var(--font-code);
    font-weight: bold;
}

.tech-tags { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Skills --- */
.skill-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}
.skill-box:hover { border-color: var(--secondary); }
.skill-box h3 { color: var(--text-bright); margin-bottom: 20px; font-size: 1.5rem; }
.skill-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: 0.3s;
}
.tag:hover { 
    background: rgba(0, 243, 255, 0.1); 
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); 
}

/* --- Education --- */
#education { text-align: center; }
.edu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.edu-card {
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.1), rgba(0, 243, 255, 0.1));
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    flex: 1 1 300px;
    max-width: 500px;
    transition: 0.3s;
}
.edu-card:hover { transform: scale(1.02); }
.edu-card h3 { color: var(--text-bright); font-size: 1.8rem; margin-bottom: 5px; }
.edu-card .degree { color: var(--primary); font-size: 1.1rem; }

/* --- Footer --- */
footer {
    padding: 50px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.5);
}
footer p { font-family: var(--font-code); color: #666; font-size: 0.9rem; }
.footer-links a {
    color: var(--text-main);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: 0.3s;
}
.footer-links a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-image-card {
        width: 280px;
        height: 280px;
    }
    .image-inner-box {
        width: 240px;
        height: 240px;
    }
    .hero-content { padding: 20px; }
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none; 
        border-bottom: 1px solid var(--glass-border);
    }
    nav ul.active { display: flex; }
    
    .menu-toggle { display: flex; }

    #home { padding: 0 5%; justify-content: flex-start; padding-top: 100px; height: auto; min-height: 100vh; }
    .hero-name { font-size: 2.5rem; }
    .hero-title { font-size: 1.5rem; }
    
    .grid-container { grid-template-columns: 1fr; }
    
    .section-header h2 { font-size: 2rem; }
    .card-header h3 { font-size: 1.3rem; }
    header { padding: 15px 20px; }
}