/* Global Styles */
:root {
    --primary-color: #00ff99;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --light-bg: #1a1a1a;
    --text-color: #ffffff;
    --font-family: 'Roboto Condensed', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 600;
}

.alert.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--darker-bg);
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 153, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-links ul {
    display: flex;
}

.nav-links ul li {
    margin-left: 30px;
}

.nav-links ul li a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-links ul li a.active::after,
.nav-links ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text h4 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero-text h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text h3 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
}

.hero-text h3 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
}

.hero-image {
    position: relative;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 5px solid transparent;
    background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
                linear-gradient(45deg, var(--primary-color), #00ccff) border-box;
    animation: rotate 8s linear infinite;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Social Icons */
.social-icons {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 153, 0.4);
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.7;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social .social-icons {
    position: relative;
    top: 0;
    right: 0;
    transform: none;
    flex-direction: row;
}

.footer-social .social-icons a {
    margin: 0 10px 0 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--darker-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 153, 0.4);
}

/* About Section */
.about {
    padding: 150px 0 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title h2 span {
    color: var(--primary-color);
}

.section-title p {
    font-size: 18px;
    opacity: 0.8;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 100px;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text h3 span {
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-item p {
    font-size: 18px;
}

.info-item p strong {
    color: var(--primary-color);
}

.about-btns {
    display: flex;
    margin-top: 30px;
}

/* Skills Section */
.skills {
    margin-bottom: 100px;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-item {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 153, 0.3);
}

.skill-item h4 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    position: relative;
    animation: progress-animation 2s ease-in-out forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes progress-animation {
    to {
        transform: scaleX(1);
    }
}

.percentage {
    position: absolute;
    top: -35px;
    right: 0;
    font-weight: 700;
    color: var(--primary-color);
}

/* New Skills Section Styles */
.skill-category {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 153, 0.3);
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skill-category ul {
    padding-left: 20px;
}

.skill-category ul li {
    margin-bottom: 10px;
    position: relative;
}

.skill-category ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Education & Experience */
.edu-exp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
}

.edu-item, .exp-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 40px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.edu-item:last-child, .exp-item:last-child {
    margin-bottom: 0;
}

.edu-item::before, .exp-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    left: -9px;
    top: 5px;
}

.edu-date, .exp-date {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.edu-item h4, .exp-item h4 {
    font-size: 22px;
    margin-bottom: 5px;
}

.edu-item p, .exp-item p {
    font-weight: 700;
    margin-bottom: 10px;
}

.edu-item .description, .exp-item .description {
    font-weight: 400;
    opacity: 0.8;
}

/* Certifications Section */
.certifications {
    margin-top: 80px;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-item {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 153, 0.3);
}

.cert-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cert-item p {
    opacity: 0.8;
}

/* Portfolio Section */
.portfolio {
    padding: 150px 0 100px;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--light-bg);
    color: var(--text-color);
    padding: 10px 25px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 153, 0.2);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.overlay-content p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.view-project {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--darker-bg);
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.view-project:hover {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Services Section */
.services {
    padding: 150px 0 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #00ccff);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 153, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 153, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--darker-bg);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.service-card p {
    opacity: 0.8;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 150px 0 100px;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 153, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--light-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.meeting-booking {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meeting-booking h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.meeting-booking p {
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text {
        margin-top: 50px;
    }
    
    .hero-text p {
        margin: 0 auto 30px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .profile-img {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--darker-bg);
        transition: all 0.3s ease;
        padding: 40px 20px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
    }
    
    .nav-links ul li {
        margin: 15px 0;
    }
    
    .hero-text h1 {
        font-size: 48px;
    }
    
    .hero-text h3 {
        font-size: 24px;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .social-icons {
        display: none;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .edu-exp {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text h3 {
        font-size: 20px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .about-btns {
        flex-direction: column;
    }
    
    .btn-outline {
        margin: 15px 0 0;
    }
}