/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Open+Sans:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0b1121; /* Deep dark blue */
    --secondary-color: #00f0ff; /* Neon cyan */
    --accent-color: #b026ff; /* Neon purple */
    --dark-bg: #030614;
    --light-bg: #0a0f1c;
    --card-bg: rgba(15, 23, 42, 0.7);
    --text-color: #94a3b8;
    --text-light: #e2e8f0;
    --text-heading: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.3);
    --transition: all 0.3s ease;
    --tech-font: 'Fira Code', monospace;
}

/* Custom Cursor */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

a, button, input, textarea, .hover-target {
    cursor: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 240, 255, 0.1);
    border-color: var(--secondary-color);
}

.cursor-dot.hover {
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

/* Tech Backgrounds */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
}

.tech-font {
    font-family: var(--tech-font);
}

.tech-tag {
    color: var(--accent-color);
    font-family: var(--tech-font);
}

.text-gradient {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
}

/* Titles */
.section-padding { padding: 100px 0; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title h2::before {
    content: '< ';
    color: var(--secondary-color);
    font-family: var(--tech-font);
    font-weight: normal;
}

.section-title h2::after {
    content: ' />';
    color: var(--secondary-color);
    font-family: var(--tech-font);
    font-weight: normal;
}

/* Buttons */
.btn-custom {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--tech-font);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent;
}

.btn-primary-custom {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--tech-font);
    font-weight: 500;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--shadow-glow);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.1);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--tech-font);
    font-weight: 500;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background: rgba(176, 38, 255, 0.1);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.4);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    background: rgba(3, 6, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white !important;
}

.nav-link {
    color: var(--text-light) !important;
    font-family: var(--tech-font);
    font-size: 0.9rem;
    margin: 0 10px;
    position: relative;
}

.nav-link span {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-right: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--secondary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

.social-icons-nav a {
    color: var(--text-light);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 { width: 300px; height: 300px; background: rgba(0, 240, 255, 0.15); top: 10%; right: 10%; }
.shape-2 { width: 400px; height: 400px; background: rgba(176, 38, 255, 0.15); bottom: 10%; left: 5%; }

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
    animation: fadeInDown 1s ease 0.5s both;
}

.hero-title {
    color: var(--text-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease 0.8s both;
}

.hero-desc {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
    animation: slideInRight 1s ease 1.1s both;
    line-height: 1.6;
}

.hero-buttons {
    animation: fadeInUp 1s ease 1.4s both;
}

/* About Section */
#about {
    background-color: var(--light-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 240, 255, 0.2);
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.img-wrapper:hover::after {
    background: transparent;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    transform: translate(15px, 15px);
    z-index: -1;
    transition: var(--transition);
}

.img-wrapper:hover::before {
    transform: translate(10px, 10px);
}

.about-img {
    border-radius: 8px;
    width: 100%;
    filter: grayscale(80%) contrast(1.2);
    transition: var(--transition);
}

.img-wrapper:hover .about-img {
    filter: grayscale(0%) contrast(1);
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.stat-card h3 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: var(--tech-font);
}

.stat-card p {
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

.personal-info {
    list-style: none;
    padding: 0;
}

.personal-info li {
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.personal-info li strong {
    width: 120px;
    color: var(--secondary-color);
    font-family: var(--tech-font);
}

.personal-info li i {
    color: var(--accent-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Services Section */
.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    text-align: left;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 30px;
    height: calc(100% - 30px);
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--secondary-color);
    transform: rotate(10deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Skills Section */
#skills {
    background-color: var(--light-bg);
}
.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 500;
    color: var(--text-light);
    font-family: var(--tech-font);
    font-size: 0.9rem;
}

.skill-percent {
    font-family: var(--tech-font);
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.progress {
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: visible;
}

.progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 3px;
    position: relative;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.7, 0.1, 1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 8px 25px;
    border-radius: 4px;
    font-family: var(--tech-font);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.portfolio-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.1, 0.7, 0.1, 1);
    filter: grayscale(30%);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 17, 33, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-link {
    transform: translateY(0);
}

.portfolio-link:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--secondary-color);
    transform: translateY(0) scale(1.1);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--tech-font);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

/* Contact Section */
#contact {
    background-color: var(--light-bg);
}

.contact-info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.contact-details p {
    margin: 0;
    color: var(--text-color);
    font-family: var(--tech-font);
    font-size: 0.9rem;
}

.contact-form-wrap {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-control {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 15px;
    border-radius: 4px;
    font-family: var(--tech-font);
    font-size: 0.9rem;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 240, 255, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-color);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand .tech-tag {
    font-size: 1.2rem;
}

.footer h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    display: inline-block;
    transition: var(--transition);
    font-family: var(--tech-font);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-family: var(--tech-font);
    font-size: 0.8rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--secondary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .section-title h2 { font-size: 2rem; }
    .navbar-collapse {
        background: var(--dark-bg);
        padding: 20px;
        border-radius: 8px;
        margin-top: 15px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto !important; }
}
