/* ===================================
   General Styles
=================================== */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --dark-bg: #0a0a0f;
    --dark-secondary: #12121a;
    --dark-tertiary: #1a1a24;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-pink: #ff006e;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===================================
   Typography
=================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* ===================================
   Utility Classes
=================================== */

.accent {
    color: var(--primary-color);
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===================================
   Navigation
=================================== */

.navbar {
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.navbar-brand .accent {
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 5px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   Hero Section
=================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
}

.typing-text {
    color: var(--primary-color);
    font-weight: 600;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .btn {
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    color: #000;
}

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

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.scroll-down a:hover {
    color: var(--text-light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   About Section
=================================== */

.about-section {
    padding: 100px 0;
    background-color: var(--dark-secondary);
}

.about-image {
    position: relative;
    text-align: center;
}

.image-frame {
    display: inline-block;
    position: relative;
    padding: 20px;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    transform: translate(15px, 15px);
    z-index: 0;
}

.image-frame img {
    position: relative;
    border-radius: 20px;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.social-links {
    margin-top: 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark-tertiary);
    color: var(--text-light);
    margin: 0 8px;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-info {
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.info-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
}

.info-item span {
    color: var(--text-light);
}

/* ===================================
   Skills Section
=================================== */

.skills-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.skill-item {
    background: var(--dark-secondary);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.skill-name {
    font-weight: 600;
    font-size: 1rem;
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.progress {
    height: 10px;
    background: var(--dark-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* ===================================
   Projects Section
=================================== */

.projects-section {
    padding: 100px 0;
    background-color: var(--dark-secondary);
}

.project-card {
    background: var(--dark-tertiary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    position: relative;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    color: var(--primary-color);
    font-size: 3rem;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.project-content {
    padding: 25px;
}

.project-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tags {
    margin-bottom: 15px;
}

.project-tags span {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.project-buttons {
    display: flex;
    gap: 10px;
}

.project-buttons .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 25px;
    font-weight: 500;
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    background: transparent;
}

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

/* ===================================
   Services Section
=================================== */

.services-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.service-card {
    background: var(--dark-secondary);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

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

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===================================
   Contact Section
=================================== */

.contact-section {
    padding: 100px 0;
    background-color: var(--dark-secondary);
}

.contact-wrapper {
    background: var(--dark-tertiary);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}

.contact-social {
    margin-top: 30px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-control {
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 15px;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    outline: none;
    background: var(--dark-secondary);
    color: var(--text-light);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form textarea.form-control {
    resize: none;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
}

/* ===================================
   Footer
=================================== */

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

.footer-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.footer-social {
    margin-bottom: 30px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================================
   Scroll to Top Button
=================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

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

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

/* ===================================
   Animations
=================================== */

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
=================================== */

@media (max-width: 991px) {
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-content {
        margin-top: 40px;
    }
    
    .contact-wrapper {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .contact-wrapper {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}
