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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 30, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a90a4;
    background: linear-gradient(45deg, #4a90a4, #6ba3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #4a90a4, #6ba3d0);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(74, 144, 164, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(odd) {
    animation-delay: -3s;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(74, 144, 164, 0.1) 0%, transparent 70%);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.highlight {
    background: linear-gradient(45deg, #4a90a4, #6ba3d0, #8bb8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.typewriter-container {
    height: 60px;
    margin-bottom: 1rem;
}

.typewriter {
    font-size: 1.8rem;
    color: #4a90a4;
    border-right: 2px solid #4a90a4;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #4a90a4; }
    51%, 100% { border-color: transparent; }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 1s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #4a90a4, #6ba3d0);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 144, 164, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #4a90a4;
    border: 2px solid #4a90a4;
}

.btn-secondary:hover {
    background: #4a90a4;
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #4a90a4;
    border-bottom: 2px solid #4a90a4;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

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

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

/* Common Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #4a90a4, #6ba3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* About Section */
.about {
    background: rgba(10, 10, 10, 0.8);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image .image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid #4a90a4;
    box-shadow: 0 0 50px rgba(74, 144, 164, 0.3);
    transition: transform 0.3s ease;
}

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

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

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a90a4;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    color: #6ba3d0;
    transform: translateX(5px);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(74, 144, 164, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(74, 144, 164, 0.3);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    background: rgba(74, 144, 164, 0.15);
}

.skill-category h3 {
    color: #4a90a4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background: rgba(74, 144, 164, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(74, 144, 164, 0.4);
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    background: rgba(5, 5, 5, 0.8);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    background: rgba(74, 144, 164, 0.1);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(74, 144, 164, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74, 144, 164, 0.2);
    background: rgba(74, 144, 164, 0.15);
}

.project-content h3 {
    color: #4a90a4;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a90a4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #6ba3d0;
    transform: translateX(5px);
}

.project-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

/* Experience Section */

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.experience-column h3 {
    color: #4a90a4;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    background: rgba(74, 144, 164, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4a90a4;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: rgba(74, 144, 164, 0.15);
    transform: translateX(5px);
}

.experience-item h4 {
    color: #6ba3d0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.experience-item .date {
    display: block;
    color: #4a90a4;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.experience-item .company {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.read-more-section {
    margin-top: 1rem;
}

.read-more-btn {
    background: transparent;
    border: 1px solid #4a90a4;
    color: #4a90a4;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.read-more-btn:hover {
    background: #4a90a4;
    color: white;
}

.read-more-btn.active i {
    transform: rotate(180deg);
}

.hidden-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 1rem;
}

.hidden-content.show {
    max-height: 1000px;
}

/* Contact Section */
.contact {
    background: rgba(15, 15, 15, 0.8);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: rgba(74, 144, 164, 0.1);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 164, 0.3);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.contact-info h3 {
    color: #4a90a4;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, #4a90a4, #6ba3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(74, 144, 164, 0.05);
    border-radius: 12px;
    border-left: 4px solid #4a90a4;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(74, 144, 164, 0.15);
    transform: translateX(10px);
}

.contact-item i {
    color: #4a90a4;
    font-size: 1.5rem;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(74, 144, 164, 0.2);
    border-radius: 50%;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #6ba3d0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 164, 0.2);
    border-radius: 50%;
    color: #4a90a4;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4a90a4, #6ba3d0);
    transition: left 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(74, 144, 164, 0.3);
}

.contact-form {
    background: rgba(74, 144, 164, 0.1);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 164, 0.3);
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    color: #4a90a4;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, #4a90a4, #6ba3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(74, 144, 164, 0.1);
    border: 2px solid rgba(74, 144, 164, 0.3);
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90a4;
    background: rgba(74, 144, 164, 0.15);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    transform: translateY(-20px);
    opacity: 0;
}

.contact-form .btn-primary {
    background: linear-gradient(45deg, #4a90a4, #6ba3d0);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 144, 164, 0.3);
}

/* Section Height and Visibility */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
}

.hero {
    height: 100vh;
}

/* Responsive for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.6rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    background: rgba(12, 30, 43, 0.8);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(74, 144, 164, 0.3);
}

.footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(12, 30, 43, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .typewriter {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .experience-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-image .image-container {
        width: 250px;
        height: 250px;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0c1e2b;
}

::-webkit-scrollbar-thumb {
    background: #4a90a4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ba3d0;
}