
/* portfolio.css */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #0a0a0a;
    --accent-color: #00eeff;
    --accent-dark: #0099aa;
    --text-color: #f0f0f0;
    --text-muted: #aaaaaa;
    --card-bg: #111111;
    --border-color: #222222;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-dark);
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width var(--transition-speed) ease;
}

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

/* Update these existing styles in portfolio.css */

/* Navigation - Mobile Menu Fix */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

/* Ensure nav-links are properly styled for mobile */
.nav-links {
    display: flex;
    list-style: none;
    transition: transform 0.4s ease-in-out;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        padding: 100px 30px 30px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links li:nth-child(6) { transition-delay: 0.35s; }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-color);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent-color);
        border-bottom-color: var(--accent-color);
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* Floating Tech Icons Background */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.icon {
    position: absolute;
    font-size: 24px;
    opacity: 0.1;
    color: var(--accent-color);
    animation: float 20s infinite linear;
    pointer-events: none;
    filter: blur(0.5px);
}

.icon:nth-child(2n) {
    animation-duration: 25s;
    animation-delay: -5s;
}

.icon:nth-child(3n) {
    animation-duration: 30s;
    animation-delay: -10s;
}

.icon:nth-child(4n) {
    animation-duration: 35s;
    animation-delay: -15s;
}

.icon:nth-child(5n) {
    animation-duration: 40s;
    animation-delay: -20s;
}

/* Different icon styles */
.icon.ai {
    font-size: 28px;
    opacity: 0.08;
}

.icon.ml {
    font-size: 22px;
    opacity: 0.12;
}

.icon.data {
    font-size: 26px;
    opacity: 0.09;
}

.icon.code {
    font-size: 20px;
    opacity: 0.15;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
    }
}

/* Add a subtle grid/network effect */
.network-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(90deg, rgba(0, 238, 255, 0.02) 1px, transparent 1px) 0 0 / 50px 50px,
            linear-gradient(rgba(0, 238, 255, 0.02) 1px, transparent 1px) 0 0 / 50px 50px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.3;
}

/* Particle effect for more depth */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: particle-float 15s infinite linear;
}

.particle:nth-child(2n) {
    width: 1px;
    height: 1px;
    animation-duration: 20s;
}

.particle:nth-child(3n) {
    width: 3px;
    height: 3px;
    animation-duration: 25s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
    }
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(0, 238, 255, 0.1), transparent 50%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.5s ease;
    object-position: center 20%;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

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

/* About Section */
.about {
    background-color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    max-width: 800px;
}

.skills {
    margin-top: 40px;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill {
    padding: 8px 20px;
    background-color: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.skill:hover {
    background-color: rgba(0, 238, 255, 0.2);
    transform: translateY(-3px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: block;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.1);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.project-tech span {
    padding: 5px 12px;
    background-color: rgba(0, 238, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Certifications Section */
.certifications {
    background-color: var(--secondary-color);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certification-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.certification-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.certification-media {
    height: 200px;
    overflow: hidden;
}

.certification-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certification-card:hover .certification-media img {
    transform: scale(1.05);
}

.certification-content {
    padding: 25px;
}

.certification-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.certification-issuer {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.certification-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.certification-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Education Section */
.education {
    background:transparent;
}

.education-timeline {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.education-item {
    display: flex;
    gap: 40px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.education-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.1);
}

.education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.education-item:hover::before {
    opacity: 1;
}

.education-image {
    flex: 0 0 200px;
    min-width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 238, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.education-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.education-item:hover .education-image img {
    transform: scale(1.1);
}

.education-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.education-degree {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.education-institution {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.education-date {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-description {
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.education-highlights span {
    padding: 6px 16px;
    background-color: rgba(0, 238, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
    transition: all var(--transition-speed) ease;
}

.education-highlights span:hover {
    background-color: rgba(0, 238, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive adjustments for education section */
@media (max-width: 992px) {
    .education-item {
        gap: 30px;
        padding: 30px;
    }

    .education-image {
        flex: 0 0 180px;
        min-width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }

    .education-image {
        flex: 0 0 220px;
        min-width: 100%;
        height: 220px;
        margin: 0 auto;
        order: -1; /* Move image to top on mobile */
    }

    .education-degree {
        font-size: 1.3rem;
    }

    .education-institution {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .education-item {
        padding: 20px;
    }

    .education-image {
        height: 200px;
    }

    .education-highlights {
        gap: 8px;
    }

    .education-highlights span {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

/* For very small screens */
@media (max-width: 375px) {
    .education-image {
        height: 180px;
    }

    .education-degree {
        font-size: 1.2rem;
    }
}

/* Ensure all images maintain aspect ratio and don't get cut */
.education-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3); /* Fallback background */
}

.education-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-position: center;
}

/* Add a subtle overlay on hover for better image presentation */
.education-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 238, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.education-item:hover .education-image::after {
    opacity: 1;
}

/* Add a decorative frame for the image on hover */
.education-image::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: calc(var(--border-radius) - 2px);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.education-item:hover .education-image::before {
    opacity: 1;
}

/* Contact Section */
.contact {
    background-color: var(--secondary-color);
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 238, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-muted);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-text {
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .contact-content {
        flex-direction: column;
    }

    .education-item {
        flex-direction: column;
    }

    .education-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px;
        transition: left 0.5s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .projects-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .education-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .image-container {
        width: 280px;
        height: 280px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
/* Form States & Messages */
.form-success, .form-error {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeIn 0.5s ease;
}

.form-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4CAF50;
}

.form-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #f44336;
}

.form-success i, .form-error i {
    font-size: 1.5rem;
}

.form-success p, .form-error p {
    margin: 0;
    font-weight: 500;
}

/* Button loading state */
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#submit-btn {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Add reCAPTCHA styling if you use it */
.recaptcha-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

/* Success page styling for the thank you page */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.success-content {
    max-width: 600px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.1);
}

.success-content i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.success-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.success-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-muted);
}