
:root {
    --navy-dark: #0a192f;
    --navy-medium: #112240;
    --navy-light: #233554;
    --accent: #64ffda;
    --text-light: #ccd6f6;
    --text-medium: #8892b0;
    --text-dark: #495670;
    --white: #e6f1ff;
}

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

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

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

section {
    padding: 80px 0;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

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

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

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

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

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

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    z-index: 1001;
}

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

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

.hero h2 {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-medium);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.8s;
}

.hero p {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1s forwards 1.1s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s forwards 1.4s;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background-color: var(--accent);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.hero-image {
    width: clamp(200px, 30vw, 300px);
    height: clamp(200px, 30vw, 300px);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animated background elements */
.hero-bg-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, rgba(100, 255, 218, 0.05) 100%);
    z-index: -1;
}

.bg-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 10%;
    animation: float 15s infinite ease-in-out;
}

.bg-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation: float 12s infinite ease-in-out 1s;
}

.bg-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 20%;
    animation: float 10s infinite ease-in-out 2s;
}

/* Sections common styles */
.section-title {
    font-size: clamp(28px, 5vw, 36px);
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: 20px;
    color: var(--accent);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-medium);
    font-size: clamp(14px, 2vw, 16px);
}

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

.skill-category h4 {
    font-size: clamp(18px, 3vw, 20px);
    margin-bottom: 15px;
    color: var(--text-light);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 10px;
    color: var(--text-medium);
    position: relative;
    padding-left: 20px;
    font-size: clamp(14px, 2vw, 16px);
}

.skill-list li::before {
    content: "▹";
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--navy-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--navy-medium);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: clamp(18px, 3vw, 22px);
}

.timeline-content h4 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: clamp(16px, 2.5vw, 18px);
}

.timeline-content p {
    color: var(--text-medium);
    font-size: clamp(14px, 2vw, 16px);
}

.timeline-date {
    color: var(--accent);
    font-weight: 500;
    font-size: clamp(14px, 2vw, 16px);
}

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

.project-card {
    background-color: var(--navy-medium);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 40px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: clamp(18px, 3vw, 22px);
    margin-bottom: 15px;
    color: var(--text-light);
}

.project-info p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: clamp(14px, 2vw, 16px);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tag {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--text-light);
    font-size: 18px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 20px;
    color: var(--accent);
}

.contact-info p {
    color: var(--text-medium);
    margin-bottom: 30px;
    font-size: clamp(14px, 2vw, 16px);
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-medium);
    font-size: clamp(14px, 2vw, 16px);
}

.contact-details i {
    margin-right: 15px;
    color: var(--accent);
    font-size: 20px;
    width: 20px;
}

.contact-form {
    flex: 1;
}

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

.form-control {
    width: 100%;
    padding: 15px;
    background-color: var(--navy-light);
    border: 1px solid var(--navy-light);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 16px; /* Prevents zoom on iOS */
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--navy-medium);
    padding: 50px 0 20px;
    text-align: center;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--navy-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 20px;
    transition: all 0.3s ease;
}

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

.copyright {
    color: var(--text-medium);
    font-size: 14px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Code animation effects */
.code-effect {
    position: relative;
    display: inline-block;
}

.code-effect::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 4px;
    height: 100%;
    background-color: var(--accent);
    animation: blink 0.7s infinite;
}

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

/* Particle animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background-color: rgba(100, 255, 218, 0.3);
    border-radius: 50%;
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        margin-top: 0;
        max-width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--navy-medium);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 180px;
    }
    
    .bg-1, .bg-2, .bg-3 {
        display: none; /* Hide floating elements on mobile for better performance */
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero h2 {
        font-size: 18px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        width: 180px;
        height: 180px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .contact-details li {
        font-size: 14px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .form-control {
        padding: 12px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-image {
        width: 150px;
        height: 150px;
    }
    
    .project-tags {
        gap: 8px;
    }
    
    .project-tag {
        font-size: 10px;
        padding: 4px 10px;
    }
}
 