:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --text-color: #2d3436;
    --background-color: #ffffff;
    --accent-color: #00b894;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover .social-icon {
    transform: translateY(-2px);
}

/* Ulteamate Link */
.ulteamate-link {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.ulteamate-link a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.ulteamate-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.ulteamate-text {
    font-weight: 600;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.ulteamate-link a:hover .ulteamate-icon {
    transform: scale(1.1);
}

.ulteamate-link a:hover .ulteamate-text {
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float 3s infinite ease-in-out;
}

.floating-tech-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* Subtract navbar height */
    pointer-events: none;
    margin-top: 60px; /* Add margin equal to navbar height */
}

.floating-tech {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.7;
    filter: brightness(0.8);
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 1; /* Ensure it's above particles but below other content */
}

.floating-tech:hover {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1.1);
    z-index: 10;
}

.floating-tech img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.hero-left {
    text-align: center;
}

.profile-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.2), transparent);
    pointer-events: none;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover .profile-photo {
    transform: scale(1.05);
}

.hero-left h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.role-title {
    background: linear-gradient(45deg, #64b5f6, #81c784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2em;
    margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    color: #e0e0e0;
    margin: 10px 0;
    min-height: 1.5em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

/* Typing cursor animation */
.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

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

/* Experience Section Enhancements */
.experience-section {
    padding: 6rem 2rem;
    background: var(--background-color);
    position: relative;
    z-index: 1;
}

.experience-section > * {
    position: relative;
    z-index: 1;
    will-change: transform;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--secondary-color);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    transform: translateX(0);
    will-change: transform, opacity;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.company-info {
    flex: 1;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.company-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.technologies-container {
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    justify-content: flex-start;
    opacity: 1;
    transform: translateX(0);
    will-change: transform, opacity;
}

.timeline-item:nth-child(even) .technologies-container {
    justify-content: flex-end;
    transform: translateX(-50px);
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tech-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tech-tag img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tech-name {
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
}

/* Skills Section Enhancements */
.skills-section {
    padding: 6rem 2rem 10rem;
    background: linear-gradient(45deg, #2193b0 0%, #6dd5ed 100%);
    position: relative;
    color: white;
    overflow: hidden;
    margin-bottom: 2rem;
}

.skills-section > * {
    position: relative;
    z-index: 1;
    will-change: transform;
}

.skills-section .section-title {
    color: white;
}

.skills-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: transform;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.skill-item h3 {
    color: white;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.skill-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.skill-logo:hover {
    transform: rotate(10deg);
}

.skill-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Remove old parallax styles */
.parallax {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Navigation Animation */
.nav-links a {
    position: relative;
    overflow: hidden;
}

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

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

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column;
        margin-left: 20px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }
    
    .timeline-content {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .technologies-container {
        width: 100%;
        justify-content: flex-start !important;
        margin-bottom: 2rem;
        gap: 1rem;
    }
    
    .tech-tag {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .tech-tag img {
        width: 28px;
        height: 28px;
    }
    
    .company-header {
        flex-direction: row;
        align-items: center;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle.active span:first-child {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:last-child {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .skills-section {
        padding: 4rem 1rem;
    }
    
    .skill-item {
        padding: 1.5rem;
    }

    /* Hide terminal completely on mobile */
    .floating-terminal,
    .floating-terminal.minimized,
    .floating-terminal.maximized,
    .terminal-container,
    #floating-terminal,
    .xterm,
    .xterm-viewport {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        z-index: -1 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

/* Particle Animation */
@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-1000px) rotate(360deg);
        opacity: 0;
    }
}

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

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float-up 3s linear infinite;
}

/* Enhanced Transitions */
.navbar {
    transition: transform 0.3s ease;
}

.timeline-item, .skill-item {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced cursor */
.cursor, .cursor-follower {
    transition: transform 0.1s ease;
}

/* Remove the animation delays since we'll handle them with GSAP */
.timeline-item:nth-child(1) { animation-delay: 0s; }
.timeline-item:nth-child(2) { animation-delay: 0s; }
.timeline-item:nth-child(3) { animation-delay: 0s; }
.timeline-item:nth-child(4) { animation-delay: 0s; }

.skill-item:nth-child(1) { animation-delay: 0s; }
.skill-item:nth-child(2) { animation-delay: 0s; }
.skill-item:nth-child(3) { animation-delay: 0s; }
.skill-item:nth-child(4) { animation-delay: 0s; }
.skill-item:nth-child(5) { animation-delay: 0s; }
.skill-item:nth-child(6) { animation-delay: 0s; }
.skill-item:nth-child(7) { animation-delay: 0s; }

.hero-section, .skills-section, .experience-section {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-content, .skills-grid, .timeline, .section-title {
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.skills-section::before {
    transform: translateZ(0);
    will-change: transform;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: var(--background-color);
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #0773c5;
    transform: translateY(-2px);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
        padding: 1rem;
    }

    .contact-details {
        align-items: center;
    }

    .contact-form {
        padding: 2rem;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.floating-terminal {
    position: fixed;
    bottom: 50px;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #1e1e1e;
    height: 160px;
    overflow: hidden;
}

.floating-terminal.minimized {
    /* height will be controlled by GSAP */
}

.minimize-icon {
    display: none;
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
    user-select: none;
}

.terminal-header-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Menlo', monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-header-title i {
    font-size: 1rem;
}

.terminal-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.minimize-btn {
    background-color: #ffbd2e;
}

.maximize-btn {
    background-color: #28c940;
}

.terminal-btn:hover {
    filter: brightness(85%);
}

.terminal-btn:active {
    filter: brightness(75%);
}

.terminal-container {
    width: 100%;
    height: 120px;
    margin: 0;
    padding: 0;
    background: #1e1e1e;
    border-radius: 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

#floating-terminal {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

#floating-terminal > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.xterm {
    height: 100%;
}

.xterm-viewport {
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .floating-terminal {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .floating-terminal {
        width: 100%;
    }
    
    .terminal-container {
        height: 100px;
    }
}

/* News Ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0 10px;
    z-index: 1000;
    transition: height 0.3s ease;
    height: 50px;
    overflow: hidden;
}

.news-ticker:hover {
    height: 150px;
}

.news-container {
    display: flex;
    gap: 30px;
    animation: scroll 120s linear infinite;
    padding: 0 15px;
    width: fit-content; /* Ensure container fits all items */
}

.news-item {
    display: flex;
    flex-direction: column;
    width: max-content;
    padding: 10px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.news-item-title {
    font-size: 14px;
    margin-bottom: 10px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item:hover .news-item-title {
    color: #3498db;
}

.news-item-details {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 10px;
}

.news-ticker:hover .news-item-details {
    opacity: 1;
}

.news-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.news-item-source {
    font-size: 12px;
    color: #3498db;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 15px)); /* Half width plus half gap */
    }
}

/* Adjust terminal position to account for news ticker */
.floating-terminal {
    bottom: 50px;
}

@media (max-width: 768px) {
    .news-ticker {
        height: 40px;
    }
    
    .news-ticker:hover {
        height: 120px;
    }
    
    .news-item {
        padding: 10px 15px;
    }
    
    .news-item-title {
        font-size: 13px;
    }
    
    .floating-terminal {
        bottom: 40px;
    }
} 